/* ========================================
   PhotoPrompt AI — Desktop Website
   Dark theme with purple (#AF52DE) accents
   ======================================== */

/* ---------- RESET & TOKENS ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg: #0A0A0F;
    --bg-elevated: #12121A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(175, 82, 222, 0.4);
    --text: #E8E8ED;
    --text-secondary: #8E8E93;
    --text-muted: #636366;
    --purple: #AF52DE;
    --purple-light: #C77DFF;
    --purple-dark: #8B3CB5;
    --purple-glow: rgba(175, 82, 222, 0.15);
    --gradient: linear-gradient(135deg, #AF52DE 0%, #C77DFF 50%, #E0AAFF 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(175, 82, 222, 0.12) 0%, rgba(199, 125, 255, 0.06) 100%);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-padding: 0 40px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(175, 82, 222, 0.15);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- UTILITY ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.text-purple {
    color: var(--purple);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(175, 82, 222, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(175, 82, 222, 0.5);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--purple-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    background: var(--purple-glow);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn__arrow {
    transition: transform 0.3s;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ---------- SECTION COMMON ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--purple);
    background: var(--purple-glow);
    border: 1px solid rgba(175, 82, 222, 0.2);
    margin-bottom: 20px;
}

.section-tag--purple {
    background: rgba(175, 82, 222, 0.15);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.is-scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.header__logo-icon {
    font-size: 1.5rem;
    color: var(--purple);
}

.header__logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

/* Desktop pill-nav container */
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 4px;
}

/* Desktop pill-nav links */
.header__nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header__nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Remove old underline effect */
.header__nav-link::after {
    display: none;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(175, 82, 222, 0.3);
}

.header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(175, 82, 222, 0.45);
}

.header__signin {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.header__signin:hover {
    color: var(--purple-light);
    border-color: var(--purple);
    background: var(--purple-glow);
}

.header__signin.is-logged-in {
    font-weight: 600;
}

.signin-initial {
    display: none;
}

.signin-name {
    display: inline;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(175, 82, 222, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--purple-glow);
    border: 1px solid rgba(175, 82, 222, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--purple-light);
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero__title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero__stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--purple-light);
}

.hero__stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Phone Screenshots — iPhone Style */
.hero__visual {
    position: relative;
}

.hero__screenshots {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iPhone Frame Base */
.hero__phone {
    position: absolute;
    width: 240px;
    background: #1A1A1A;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(175, 82, 222, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* iPhone inner screen */
.hero__phone-screen {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #F2EDF7;
}

.hero__phone img {
    width: 100%;
    display: block;
}

/* Dynamic Island notch */
.hero__phone::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #1A1A1A;
    border-radius: 20px;
    z-index: 10;
}


/* iPhone home indicator */
.hero__phone-screen::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 6;
}

.hero__phone--back {
    transform: rotate(-6deg) translateX(-40px);
    z-index: 1;
}

.hero__phone--front {
    transform: rotate(4deg) translateX(40px);
    z-index: 2;
}

.hero__screenshots:hover .hero__phone--back {
    transform: rotate(-8deg) translateX(-60px) scale(1.02);
}

.hero__screenshots:hover .hero__phone--front {
    transform: rotate(6deg) translateX(60px) scale(1.02);
}

.hero__mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(175, 82, 222, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- PROBLEM / SOLUTION ---------- */
.problem-solution {
    padding: var(--section-padding);
}

.problem-solution__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 82, 82, 0.3);
    transform: translateY(-4px);
}

.problem-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.problem-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution Divider */
.solution-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 48px 0;
}

.solution-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.solution-divider__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--purple-glow);
    border: 1px solid rgba(175, 82, 222, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Solution Cards */
.solution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    padding: 40px 32px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(175, 82, 222, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.solution-card:hover {
    border-color: rgba(175, 82, 222, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.solution-card__number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(175, 82, 222, 0.2);
    margin-bottom: 16px;
    line-height: 1;
}

.solution-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.solution-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.step {
    position: relative;
    text-align: center;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 28px;
    box-shadow: 0 0 30px rgba(175, 82, 222, 0.3);
    position: relative;
    z-index: 2;
}

.step__content {
    position: relative;
}

.step__icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step__connector {
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), rgba(175, 82, 222, 0.2));
    z-index: 1;
}

.step:last-child .step__connector {
    display: none;
}

/* ---------- FEATURES ---------- */
.features {
    padding: var(--section-padding);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card--large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    padding: 48px 40px;
    background: var(--gradient-subtle);
    border-color: rgba(175, 82, 222, 0.15);
}

.feature-card--large .feature-card__title {
    font-size: 1.4rem;
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    background: var(--purple-glow);
    border: 1px solid rgba(175, 82, 222, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card--large .feature-card__icon {
    margin-bottom: 0;
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- AGENTS ---------- */
.agents {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.agents__layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.agents__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.agents__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agents__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.agents__showcase {
    display: flex;
    justify-content: center;
}

.agents__screenshots {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.agents__phone {
    width: 200px;
    background: #1A1A1A;
    border-radius: 32px;
    padding: 8px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 30px rgba(175, 82, 222, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agents__phone:hover {
    transform: translateY(-8px) scale(1.03);
}

/* Inner screen */
.agents__phone-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #F2EDF7;
    position: relative;
}

.agents__phone img {
    width: 100%;
    display: block;
}

/* Dynamic Island */
.agents__phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 18px;
    background: #1A1A1A;
    border-radius: 16px;
    z-index: 10;
}


/* Home indicator */
.agents__phone-screen::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    z-index: 6;
}

.agents__phone-label {
    display: block;
    text-align: center;
    padding: 10px 8px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Keep agent-card styles for reference but remove badge line break */
.agent-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--purple);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-card__emoji {
    font-size: 2rem;
    margin-bottom: 12px;
}

.agent-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.agent-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- GALLERY ---------- */
.gallery {
    padding: var(--section-padding);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.gallery__item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.gallery__comparison {
    display: flex;
    align-items: stretch;
}

.gallery__before,
.gallery__after {
    flex: 1;
    position: relative;
}

.gallery__placeholder {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.gallery__placeholder--before {
    background: rgba(255, 255, 255, 0.02);
}

.gallery__placeholder--after {
    background: var(--gradient-subtle);
}

.gallery__placeholder-icon {
    font-size: 2.5rem;
}

.gallery__placeholder-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.gallery__placeholder-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gallery__label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 59, 48, 0.2);
    color: #FF6B6B;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.gallery__label--after {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
    border-color: rgba(52, 199, 89, 0.3);
}

.gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    background: var(--bg);
}

.gallery__caption {
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ---------- PRICING ---------- */
.pricing {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card--popular {
    background: var(--gradient-subtle);
    border-color: rgba(175, 82, 222, 0.3);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}

.pricing-card--popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(175, 82, 222, 0.35);
}

.pricing-card__header {
    margin-bottom: 24px;
}

.pricing-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.pricing-card__currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-card__amount {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-card--popular .pricing-card__amount {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card__period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-card__tokens {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.pricing-card__token-amount {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-light);
}

.pricing-card__token-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pricing-card__features {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-card__features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--purple);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing__note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing__note strong {
    color: var(--text-secondary);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: var(--section-padding);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.testimonial-card__stars {
    color: #FFD60A;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
    border-top: 1px solid var(--border);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq__question:hover {
    color: var(--purple-light);
}

.faq__chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq__item.is-open .faq__chevron {
    transform: rotate(180deg);
    color: var(--purple);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer p {
    padding: 0 0 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    padding: var(--section-padding);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about__mission {
    padding: 20px 24px;
    border-left: 3px solid var(--purple);
    background: var(--purple-glow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about__mission strong {
    color: var(--purple-light);
}

.about__values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.value-card__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.value-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
    padding: var(--section-padding);
    background: var(--bg-elevated);
}

.final-cta__content {
    text-align: center;
    padding: 80px 60px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(175, 82, 222, 0.2);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.final-cta__content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(175, 82, 222, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.final-cta__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer__social-link:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-glow);
}

.footer__links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 20px;
}

.footer__links a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--purple-light);
    transform: translateX(4px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 24px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero__container {
        gap: 40px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__phone {
        width: 200px;
    }

    .hero__screenshots {
        height: 460px;
    }

    .problem-solution__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .step__connector {
        display: none;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card--large {
        grid-column: 1 / -1;
    }

    .agents__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .final-cta__content {
        padding: 60px 40px;
    }

    .final-cta__title {
        font-size: 2rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
        --container-padding: 0 20px;
    }

    /* --- Hamburger Menu Toggle --- */
    .header__menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1001;
    }

    .header__menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: var(--transition);
    }

    .header__menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
        padding: 80px 32px 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid var(--border);
        /* Reset pill-nav styles for mobile drawer */
        border-radius: 0;
        border: none;
        border-left: 1px solid var(--border);
    }

    .header__nav.is-open {
        right: 0;
    }

    .header__nav-link {
        font-size: 1.1rem;
        border-radius: 0;
        padding: 8px 0;
        background: none;
    }

    .header__nav-link.active {
        background: none;
        border: none;
    }

    .header__cta {
        display: none;
    }

    .header__signin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        padding: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        overflow: hidden;
        text-overflow: unset;
        white-space: nowrap;
    }

    .header__signin.is-logged-in {
        background: var(--gradient);
        border-color: transparent;
        color: #fff;
        font-weight: 700;
        font-size: 0.85rem;
    }

    .signin-name {
        display: none !important;
    }

    .signin-initial {
        display: inline !important;
    }

    /* Mobile nav overlay */
    .header__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .header__overlay.is-visible {
        display: block;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding: 100px 0 48px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__phone {
        width: 180px;
        border-radius: 28px;
        padding: 8px;
    }

    .hero__phone::before {
        width: 60px;
        height: 16px;
        top: 12px;
    }

    .hero__screenshots {
        height: 420px;
    }

    .hero__phone--back {
        transform: rotate(-6deg) translateX(-30px);
    }

    .hero__phone--front {
        transform: rotate(4deg) translateX(30px);
    }

    .hero__screenshots:hover .hero__phone--back {
        transform: rotate(-6deg) translateX(-30px);
    }

    .hero__screenshots:hover .hero__phone--front {
        transform: rotate(4deg) translateX(30px);
    }

    /* --- Section Titles --- */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* --- Problem / Solution --- */
    .problem-solution__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-card {
        padding: 24px 20px;
    }

    .solution-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .solution-card {
        padding: 28px 24px;
    }

    /* --- Steps --- */
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* --- Features --- */
    .features__grid {
        grid-template-columns: 1fr;
    }

    .feature-card--large {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .feature-card--large .feature-card__icon {
        margin-bottom: 16px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    /* --- Agents --- */
    .agents__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .agents__screenshots {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .agents__phone {
        width: 200px;
        flex-shrink: 0;
        scroll-snap-align: none;
        border-radius: 28px;
        padding: 7px;
    }

    .agents__phone::before {
        width: 50px;
        height: 14px;
        top: 10px;
    }

    .agents__phone-screen {
        border-radius: 20px;
    }

    /* --- Gallery --- */
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery__placeholder-icon {
        font-size: 1.8rem;
    }

    /* --- Pricing --- */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card--popular {
        transform: none;
    }

    .pricing-card--popular:hover {
        transform: translateY(-4px);
    }

    .pricing-card__amount {
        font-size: 2.6rem;
    }

    /* --- Testimonials --- */
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- FAQ --- */
    .faq__question {
        font-size: 0.95rem;
        padding: 20px 0;
    }

    /* --- About --- */
    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__values {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* --- Final CTA --- */
    .final-cta__content {
        padding: 48px 24px;
    }

    .final-cta__title {
        font-size: 1.6rem;
    }

    .final-cta__subtitle {
        font-size: 0.95rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 48px 0 32px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* --- Buttons --- */
    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero__phone {
        width: 150px;
        border-radius: 24px;
    }

    .hero__screenshots {
        height: 360px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about__values {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .agents__phone {
        width: 140px;
    }
}

/* Hide hamburger on desktop (min-width takes precedence properly) */
@media (min-width: 769px) {
    .header__menu-toggle {
        display: none !important;
    }

    .header__overlay {
        display: none !important;
    }

    /* Desktop: each section fills full viewport below the header */
    .hero,
    .problem-solution,
    .how-it-works,
    .features,
    .agents,
    .pricing,
    .faq,
    .about,
    .final-cta {
        min-height: calc(100vh - 70px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Hero already has its own layout, just ensure min-height */
    .hero {
        display: flex;
        align-items: center;
    }
}