/* ========================================
   YOUBOT - Landing Page
   ======================================== */

:root {
    --color-white: #FBFBFD;
    --color-black: #000000;
    --color-gray: #86868B;
    --color-gray-dark: #1D1D1F;
    --color-blue: #0071E3;
    --color-blue-hover: #0077ED;
    --color-purple: #BF5AF2;
    
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    background: var(--color-black);
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 52px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--color-blue);
    padding: 8px 16px;
    border-radius: 980px;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: var(--color-blue-hover);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero-cta {
        justify-content: center;
    }
}

/* Chat Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.chat-preview {
    width: 100%;
    max-width: 380px;
    background: #1C1C1E;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #2C2C2E;
}

.chat-avatar {
    font-size: 28px;
}

.chat-name {
    font-weight: 600;
    flex: 1;
}

.chat-status {
    font-size: 12px;
    color: #30D158;
}

.chat-messages {
    padding: 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.message-bot {
    background: #2C2C2E;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.message-user {
    background: var(--color-blue);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-blue-hover);
    transform: scale(1.02);
}

.btn-primary.large {
    padding: 18px 36px;
    font-size: 19px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-blue);
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.1);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-blue);
    font-size: 17px;
    font-weight: 500;
    border: 1px solid var(--color-blue);
    border-radius: 980px;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 0;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-content.center {
    text-align: center;
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 64px;
}

.section-title.dark {
    color: var(--color-gray-dark);
}

.section-subtitle {
    font-size: 21px;
    color: var(--color-gray);
    text-align: center;
    margin-top: -48px;
    margin-bottom: 48px;
}

.section-dark {
    background: var(--color-black);
}

.section-light {
    background: var(--color-white);
    color: var(--color-gray-dark);
}

/* ========================================
   Features
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 568px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: #1C1C1E;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.5;
}

/* ========================================
   Steps
   ======================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-gray-dark);
}

.step p {
    font-size: 17px;
    color: var(--color-gray);
}

/* ========================================
   Card Grid
   ======================================== */
.section-grid {
    padding: 24px;
    background: var(--color-black);
}

.card-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform var(--transition);
}

.card:hover {
    transform: scale(1.01);
}

.card-large {
    grid-column: span 2;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .card-large {
        grid-column: span 1;
        min-height: 350px;
    }
}

.card-medium {
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.card-dark {
    background: linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 100%);
}

.card-gradient-blue {
    background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
}

.card-gradient-purple {
    background: linear-gradient(135deg, #BF5AF2 0%, #FF375F 100%);
}

.card-content {
    padding: 40px;
}

.card-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ========================================
   Pricing
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 868px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card {
    background: #1C1C1E;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: transform var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-featured {
    background: linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 100%);
    border: 2px solid var(--color-blue);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-blue);
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.pricing-price {
    margin-bottom: 32px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.price-period {
    font-size: 17px;
    color: var(--color-gray);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: var(--color-gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ========================================
   Demo Chat
   ======================================== */
.section-demo {
    background: linear-gradient(180deg, #000 0%, #1C1C1E 100%);
}

.demo-chat {
    max-width: 500px;
    margin: 0 auto;
    background: #2C2C2E;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.demo-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #3A3A3C;
}

.demo-chat-messages {
    padding: 24px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: #1C1C1E;
}

.demo-chat-input input {
    flex: 1;
    background: #3A3A3C;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--color-white);
    font-family: inherit;
}

.demo-chat-input input::placeholder {
    color: var(--color-gray);
}

.demo-chat-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-blue);
}

.demo-chat-input button {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.demo-chat-input button:hover {
    background: var(--color-blue-hover);
}

/* ========================================
   CTA
   ======================================== */
.section-cta {
    background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 50%, #BF5AF2 100%);
    padding: 160px 0;
}

.cta-title {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-black);
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-gray);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-gray);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-copy {
    font-size: 12px;
    color: var(--color-gray);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================
   Payment Modal
   ======================================== */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.payment-modal {
    background: #fff;
    color: #1D1D1F;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.payment-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #86868B;
    cursor: pointer;
    line-height: 1;
}

.payment-close:hover {
    color: #1D1D1F;
}

.payment-header {
    margin-bottom: 24px;
}

.payment-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.payment-header p {
    font-size: 15px;
    color: #86868B;
}

.payment-summary {
    background: #F5F5F7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.payment-summary-row:not(:last-child) {
    border-bottom: 1px solid #E5E5E7;
}

.payment-summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #0071E3;
}

.payment-field {
    margin-bottom: 16px;
}

.payment-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1D1D1F;
}

.payment-field .required {
    color: #FF3B30;
}

.payment-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D2D2D7;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.payment-field input:focus {
    outline: none;
    border-color: #0071E3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.payment-method {
    margin-bottom: 20px;
}

.payment-method > label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.payment-method-options {
    display: flex;
    gap: 12px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.method-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #D2D2D7;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.method-option:has(input:checked),
.method-option.selected {
    border-color: #0071E3;
    background: rgba(0, 113, 227, 0.05);
}

.method-option input {
    display: none;
}

.payment-agree {
    margin-bottom: 24px;
}

.payment-agree label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #86868B;
    cursor: pointer;
}

.payment-agree input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-agree a {
    color: #0071E3;
    text-decoration: underline;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: #0071E3;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-pay:hover {
    background: #0077ED;
}

.btn-pay:disabled {
    background: #D2D2D7;
    cursor: not-allowed;
}

/* Payment Result */
.payment-result-modal {
    text-align: center;
    padding: 48px 36px;
}

.payment-result-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.payment-result-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-result-modal p {
    font-size: 15px;
    color: #86868B;
    margin-bottom: 4px;
}

/* Footer Legal & Business */
.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--color-gray);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-business {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 8px;
}

.footer-business p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    min-height: 100vh;
    padding: 100px 24px 80px;
    background: var(--color-white);
    color: var(--color-gray-dark);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--color-gray-dark);
}

.legal-date {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5E7;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--color-gray-dark);
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E5E7;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-gray-dark);
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #555;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--color-blue);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-blue-hover);
}

.legal-company-info {
    background: #F5F5F7;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}

.legal-company-info p {
    margin-bottom: 4px;
    font-size: 14px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E5E7;
}

.legal-table th {
    background: #F5F5F7;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.legal-table td {
    color: #444;
}

.legal-highlight {
    background: #EEF6FF;
    border-left: 4px solid var(--color-blue);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--color-gray-dark);
}

.legal-note {
    font-size: 13px !important;
    color: var(--color-gray) !important;
    font-style: italic;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-cta {
        padding: 100px 0;
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-table {
        font-size: 13px;
    }

    .legal-table th,
    .legal-table td {
        padding: 8px 10px;
    }
}
