/* ============================================================
   AbbyAI — Marketing Website
   Light, clean, modern design
   ============================================================ */

:root {
    --primary: #6C63FF;
    --primary-light: #8B7FFF;
    --primary-dark: #5A52E0;
    --secondary: #00D4AA;
    --accent: #FF6B9D;
    --purple: #A855F7;

    --text-primary: #1A1B2E;
    --text-secondary: #5A5B7A;
    --text-tertiary: #9394AE;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FC;
    --bg-tertiary: #F1F2F6;

    --border: #E8E9F0;
    --border-light: #F1F2F6;

    --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.06);
    --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.08);
    --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.12);
    --shadow-xl: 0 30px 80px rgba(108, 99, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================================
   Typography
   ============================================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    object-fit: cover;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.06);
    border: 1px solid rgba(108, 99, 255, 0.12);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--text-primary);
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1A1B2E 0%, #252742 100%);
    border-radius: 34px;
    overflow: hidden;
    padding: 48px 20px 20px;
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: black;
    border-radius: 14px;
}

.screen-header {
    text-align: center;
    margin-bottom: 20px;
}

.screen-time {
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.screen-greeting {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.screen-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.screen-card.small {
    text-align: left;
}

.screen-card-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.screen-ring {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-right-color: var(--purple);
    border-radius: 50%;
    margin: 0 auto 10px;
    transform: rotate(45deg);
}

.screen-calories {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.screen-suggestion {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card .floating-icon {
    font-size: 20px;
}

.floating-card .floating-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.floating-card .floating-label {
    font-size: 11px;
    color: var(--text-tertiary);
    display: block;
}

.card-1 {
    top: 60px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 180px;
    left: -30px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 60px;
    right: -10px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-gradient {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   Social Proof
   ============================================================ */

.social-proof {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.social-proof-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.proof-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.proof-item {
    font-size: 14px;
    color: var(--text-secondary);
}

.proof-item span {
    font-weight: 500;
    font-style: italic;
}

/* ============================================================
   Features
   ============================================================ */

.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-color: rgba(108, 99, 255, 0.12);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.feature-icon-wrap.purple { background: rgba(108, 99, 255, 0.1); color: var(--primary); }
.feature-icon-wrap.teal { background: rgba(0, 212, 170, 0.1); color: var(--secondary); }
.feature-icon-wrap.pink { background: rgba(255, 107, 157, 0.1); color: var(--accent); }
.feature-icon-wrap.orange { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.feature-icon-wrap.blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.feature-icon-wrap.green { background: rgba(16, 185, 129, 0.1); color: #10B981; }

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Feature visual */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.mini-card {
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.mini-card span {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ============================================================
   How It Works
   ============================================================ */

.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   AI Highlight
   ============================================================ */

.ai-highlight {
    padding: 120px 0;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 16px 0 28px;
}

.ai-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-features-list li {
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.check {
    color: var(--secondary);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Chat mockup */
.chat-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chat-bubble.ai {
    background: white;
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    display: flex;
    gap: 10px;
}

.ai-avatar {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 0;
}

.ai-avatar img {
    border-radius: 8px;
    display: block;
}

.chat-text {
    color: var(--text-secondary);
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.save-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.price-note {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
    padding: 120px 0;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(108, 99, 255, 0.2);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================================
   Responsive
   ============================================================ */

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

    .hero-subtitle { max-width: none; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card.featured {
        grid-column: span 2;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .ai-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }
}

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

    .feature-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .floating-card {
        display: none;
    }

    .proof-items {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
