/* ==========================================================================
   Live Companion AI - Marketing Stylesheet
   Premium dark theme - pure CSS, no framework dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Backgrounds */
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a22;
    --bg-tertiary: #242430;
    --bg-elevated: #2a2a38;

    /* Text */
    --text-primary: #eeeef0;
    --text-secondary: #b8b8c4;
    --text-muted: #6b6b7b;

    /* Accents */
    --accent-teal: #5ee4c8;
    --accent-teal-dim: rgba(94, 228, 200, 0.15);
    --accent-teal-glow: rgba(94, 228, 200, 0.3);
    --accent-pink: #e88a9a;
    --accent-pink-dim: rgba(232, 138, 154, 0.15);
    --accent-gold: #d4b884;
    --accent-gold-dim: rgba(212, 184, 132, 0.15);

    /* Borders */
    --border-color: #2a2a38;
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Fonts */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;

    /* Sizing */
    --container-max: 1200px;
    --container-narrow: 800px;
    --nav-height: 72px;
    --section-pad: 100px;
    --section-pad-sm: 60px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.6s;

    /* Aliases (templates may use either naming convention) */
    --fg-primary: #eeeef0;
    --fg-secondary: #b8b8c4;
    --fg-muted: #6b6b7b;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow-teal: 0 0 30px rgba(94, 228, 200, 0.2);
    --shadow-glow-pink: 0 0 30px rgba(232, 138, 154, 0.2);
}


/* --------------------------------------------------------------------------
   2. Reset / Normalize
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: #7af0d8;
}

ul, ol {
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

tbody tr:hover {
    background: rgba(94, 228, 200, 0.03);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::selection {
    background-color: rgba(94, 228, 200, 0.25);
    color: var(--text-primary);
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.2rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

h6 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.text-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.text-small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-teal {
    color: var(--accent-teal);
}

.text-pink {
    color: var(--accent-pink);
}

.text-gold {
    color: var(--accent-gold);
}

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

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    display: block;
}

.section-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.section-sm {
    padding: var(--section-pad-sm) 0;
}

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

.section-gradient {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: 60px; }

/* Grid system */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), #3cc4a8);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-teal);
}

.btn-primary:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(94, 228, 200, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

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

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent-teal);
    background: var(--accent-teal-dim);
}

.btn-outline-pink {
    background: transparent;
    color: var(--accent-pink);
    border: 1px solid var(--accent-pink);
}

.btn-outline-pink:hover {
    color: var(--bg-primary);
    background: var(--accent-pink);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}


/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.site-header.is-scrolled {
    background: rgba(15, 15, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: baseline;
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    gap: 0;
}

.logo-live {
    color: var(--accent-teal);
}

.logo-companion {
    color: var(--text-primary);
    font-weight: 400;
}

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

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-teal);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    z-index: 1010;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-fast) ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 15, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    text-align: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 20px;
    transition: color var(--duration-fast) ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--accent-teal);
}

.mobile-nav-cta {
    padding: 16px 48px;
    font-size: 1rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent-teal);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--duration-fast) ease;
}

.skip-link:focus {
    top: 16px;
    color: var(--bg-primary);
}


/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(94, 228, 200, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(232, 138, 154, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212, 184, 132, 0.04) 0%, transparent 50%),
        var(--bg-primary);
    animation: gradientShift 15s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h1,
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px;
    line-height: 1.15;
}

.hero-subtitle,
.hero .text-lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta,
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating decorative orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--accent-teal) 0%, var(--accent-pink) 50%, transparent 70%);
    animation: float 12s ease-in-out infinite;
}

.hero-gradient-orb:nth-child(2) {
    background: radial-gradient(circle, var(--accent-pink) 0%, var(--accent-gold) 50%, transparent 70%);
    animation-direction: reverse;
    animation-duration: 15s;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-teal);
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-pink);
    bottom: 15%;
    left: -3%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-gold);
    top: 50%;
    left: 60%;
    animation: float 12s ease-in-out infinite;
}


/* --------------------------------------------------------------------------
   8. Feature Cards (Glassmorphism)
   -------------------------------------------------------------------------- */
.feature-card {
    background: rgba(26, 26, 34, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 228, 200, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 228, 200, 0.2);
    box-shadow: var(--shadow-md), 0 0 40px rgba(94, 228, 200, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon,
.feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-teal);
    font-size: 1.4rem;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.feature-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.feature-icon.pink {
    background: var(--accent-pink-dim);
    color: var(--accent-pink);
}

.feature-icon.gold {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}


/* --------------------------------------------------------------------------
   9. Companion Cards
   -------------------------------------------------------------------------- */
.companion-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease;
    position: relative;
}

.companion-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.companion-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.companion-card-body {
    padding: 24px;
}

.companion-card-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.companion-card-archetype {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.companion-card-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 4px 0 12px;
    line-height: 1.5;
}

.companion-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.companion-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Accent borders per companion */
.companion-card[data-accent="teal"] {
    border-top: 3px solid var(--accent-teal);
}

.companion-card[data-accent="pink"] {
    border-top: 3px solid var(--accent-pink);
}

.companion-card[data-accent="gold"] {
    border-top: 3px solid var(--accent-gold);
}


/* --------------------------------------------------------------------------
   10. Badges / Tags
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-teal {
    background: var(--accent-teal-dim);
    color: var(--accent-teal);
}

.badge-pink {
    background: var(--accent-pink-dim);
    color: var(--accent-pink);
}

.badge-gold {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   11. Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) ease;
}

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

.pricing-card.is-popular,
.pricing-card.pricing-popular {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-glow-teal), var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-teal), #3cc4a8);
    color: var(--bg-primary);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-tier {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pricing-amount,
.pricing-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 36px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

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

.pricing-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-teal-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pricing-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--accent-teal);
    stroke-width: 3;
}


/* --------------------------------------------------------------------------
   12. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--duration-fast) ease;
}

.faq-question:hover {
    color: var(--accent-teal);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-muted);
    border-radius: 1px;
    transition: transform var(--duration-normal) var(--ease-out),
                background var(--duration-fast) ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.is-open .faq-question {
    color: var(--accent-teal);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--duration-slow) var(--ease-out),
                padding var(--duration-slow) var(--ease-out);
    padding: 0;
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
    padding: 0 0 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   13. CTA Sections
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: var(--section-pad) 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(94, 228, 200, 0.06) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2,
.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-section p,
.cta-text {
    max-width: 520px;
    margin: 0 auto 36px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.cta-box {
    background: rgba(26, 26, 34, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* --------------------------------------------------------------------------
   14. Stats / Metrics
   -------------------------------------------------------------------------- */
.stats-row,
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.stat,
.stat-item {
    text-align: center;
}

.stat-value,
.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   15. Testimonials / Quotes
   -------------------------------------------------------------------------- */
.testimonial {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 20px;
    left: 28px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-teal);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quote block (inline) */
.quote-block {
    border-left: 3px solid var(--accent-teal);
    padding: 20px 28px;
    margin: 32px 0;
    background: rgba(94, 228, 200, 0.03);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
    padding: calc(var(--nav-height) + 24px) 0 0;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.breadcrumbs a:hover {
    color: var(--accent-teal);
}

.breadcrumb-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.breadcrumb-link:hover {
    color: var(--accent-teal);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

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


/* --------------------------------------------------------------------------
   17. How It Works (Steps)
   -------------------------------------------------------------------------- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-teal-dim);
    border: 2px solid var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-teal);
    position: relative;
    z-index: 1;
}

.step-line {
    position: absolute;
    left: 23px;
    top: 80px;
    width: 2px;
    bottom: 0;
    background: linear-gradient(180deg, var(--accent-teal), transparent);
    opacity: 0.2;
}

.step:last-child .step-line {
    display: none;
}

.step-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.social-link:hover {
    color: var(--accent-teal);
    background: var(--accent-teal-dim);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

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

/* Newsletter */
.footer-newsletter {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-newsletter-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--duration-fast) ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--accent-teal);
}

.newsletter-btn {
    flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   19. Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--duration-normal) ease,
                visibility var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out),
                background var(--duration-fast) ease,
                border-color var(--duration-fast) ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-teal-dim);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}


/* --------------------------------------------------------------------------
   20. Animations / Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(6px, -12px);
    }
    50% {
        transform: translate(-4px, -20px);
    }
    75% {
        transform: translate(8px, -8px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(8deg);
    }
    100% {
        background-position: 100% 100%;
        filter: hue-rotate(0deg);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Shimmer effect for CTAs */
.shimmer {
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, 0.08) 37%,
        transparent 63%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Pulse accent */
.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

/* Float element */
.floating {
    animation: float 6s ease-in-out infinite;
}


/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */

/* >= 1280px - handled by defaults */

/* <= 1024px */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stats-row,
    .stats-grid {
        gap: 40px;
    }
}

/* <= 768px */
@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
        --nav-height: 64px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 48px;
    }

    .hero h1,
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-cta,
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn,
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-gradient-orb {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .stats-row,
    .stats-grid {
        gap: 24px;
    }

    .stat-value,
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .step {
        gap: 16px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .testimonial {
        padding: 28px 24px;
    }

    .breadcrumbs {
        padding-top: calc(var(--nav-height) + 16px);
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }
}

/* <= 480px */
@media (max-width: 480px) {
    :root {
        --section-pad: 40px;
    }

    .container {
        padding: 0 16px;
    }

    h1, .hero-title {
        font-size: 1.75rem;
    }

    h2, .section-title, .cta-title {
        font-size: 1.4rem;
    }

    h3, .feature-card-title {
        font-size: 1.1rem;
    }

    .text-lead, .lead-text, .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .stats-grid, .stats-row {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .stat-number, .stat-value {
        font-size: 1.8rem;
    }

    .companion-card {
        padding: 20px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-amount, .pricing-price {
        font-size: 2rem;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 20px 16px;
    }

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

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }
}

/* ============================================================
   Companion Detail Page
   ============================================================ */

.companion-detail-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.companion-detail-avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.companion-detail-initial {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1;
}

.companion-detail-intro {
    flex: 1;
}

.companion-detail-energy {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.companion-detail-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.companion-detail-tagline {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--fg-secondary);
    margin: 0 0 1.25rem;
}

.companion-detail-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.companion-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: var(--bg-tertiary);
    color: var(--fg-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.companion-voice-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    border-left: 4px solid;
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
}

.companion-voice-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--fg-primary);
    line-height: 1.6;
    margin: 0;
}

.companion-voice-cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: var(--fg-muted);
    font-size: 0.9rem;
}

.companion-depth-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.companion-depth-block .lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.traits-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trait-bar-item {
    width: 100%;
}

.trait-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.trait-bar-label {
    font-weight: 500;
    color: var(--fg-primary);
    font-size: 0.95rem;
}

.trait-bar-value {
    color: var(--fg-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.trait-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.trait-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s ease-out;
}

.companion-card-voice {
    margin: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .companion-detail-hero {
        flex-direction: column;
        text-align: center;
    }

    .companion-detail-avatar {
        width: 140px;
        height: 140px;
    }

    .companion-detail-initial {
        font-size: 3.5rem;
    }

    .companion-detail-name {
        font-size: 2.25rem;
    }

    .companion-detail-energy,
    .companion-detail-tags {
        justify-content: center;
    }

    .companion-voice-block {
        padding: 1.5rem;
    }

    .companion-voice-quote {
        font-size: 1.15rem;
    }
}

/* ============================================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
