/* ============================================
   FreyAI Visions - Landing Page
   Design: "Stone & Code" — Editorial Luxury
   Fonts: Instrument Serif (display) + Inter (body)
   Requires: css/core.css (design tokens)
   ============================================ */

/* ---- Skip to content ---- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--accent, #c8956c);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0 0 4px 0;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
    left: 0;
    width: auto;
    height: auto;
    outline: 2px solid var(--accent-primary, var(--accent-primary));
    outline-offset: 2px;
}

/* ---- Reset ---- */
.landing-page {
    overflow-x: clip;
    --gold: #d4a843;
    --gold-alpha: rgba(212, 168, 67, 0.15);
    padding-bottom: 70px; /* Space for sticky CTA bar */
}

/* ---- Display Serif on Headings ---- */
.section-title,
.cta-box h2,
.pricing-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}

/* ---- Utilities ---- */
.mt-3 { margin-top: 3rem; }
.step-number.bg-danger {
    background: var(--accent-danger, #dc2626);
    border-color: var(--accent-danger, #dc2626);
    color: #fff;
}
.step-number.bg-teal {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #131516;
}
.text-gold { color: var(--gold); }

.between-cta { padding: 2rem 0; }
.between-cta-inner { text-align: center; }
.cta-hint { margin-top: 1rem; opacity: 0.6; font-size: 0.85rem; text-align: center; }
.cta-legal { margin-top: 0.5rem; opacity: 0.5; font-size: 0.8rem; text-align: center; }
.cta-legal a { color: inherit; text-decoration: underline; }

/* ---- Focus ---- */
.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(19, 21, 22, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.06);
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(19, 21, 22, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom-color: var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(200, 149, 108, 0.15);
}

.nav-brand-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-brand:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text-primary); }

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.btn-nav::after { display: none; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
}

.mobile-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Language Switcher ---- */
.lang-switcher {
    position: relative;
    margin-left: 8px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    min-height: 44px;
}

.lang-switcher-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.lang-switcher-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.lang-switcher-btn svg {
    transition: transform 0.2s;
}

.lang-switcher-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    font-family: inherit;
    line-height: 1.4;
    min-height: 44px;
}

.btn-primary {
    background: var(--accent-primary);
    color: #131516;
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(200, 149, 108, 0.35);
}

.btn-primary:active { opacity: 0.9; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-alpha);
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 13px;
    min-height: 44px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
    padding: 100px 24px;
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 28px;
    height: 1px;
}

.section-label::before {
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-label::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Hero — Split Layout
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #131516;
}

/* Mobile: let hero grow to fit content, clip horizontal overflow */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        overflow-x: clip;
        overflow-y: visible;
        padding-bottom: 32px;
    }
}

/* Background atmosphere */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 72% 40%, rgba(200, 149, 108, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(212, 168, 67, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, rgba(200, 149, 108, 0.06) 0%, transparent 45%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    /* will-change removed — browser auto-optimizes CSS animations */
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(200, 149, 108, 0.5), transparent),
        radial-gradient(1px 1px at 80% 15%, rgba(200, 149, 108, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(212, 168, 67, 0.4), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(200, 149, 108, 0.4), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(212, 168, 67, 0.2), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(200, 149, 108, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 25% 85%, rgba(200, 149, 108, 0.3), transparent);
    animation: hero-particles-drift 30s linear infinite;
}

@keyframes hero-particles-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 149, 108, 0.15) 0%, transparent 70%);
    /* will-change removed — browser auto-optimizes CSS animations */
    animation: hero-glow-pulse 8s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Two-column hero layout */
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 130px 48px 40px;
}

/* Left column: text */
.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-success);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero h1 .gradient {
    display: block;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Right column: portrait + logo */
.hero-visual {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-portrait-frame {
    position: relative;
    width: 310px;
    height: 400px;
    border-radius: 20px;
    overflow: visible;
}

.hero-portrait-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(200, 149, 108, 0.4), rgba(212, 168, 67, 0.15), rgba(200, 149, 108, 0.1));
    z-index: -1;
}

.hero-portrait-clip {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-portrait-clip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 21, 22, 0.5) 0%, transparent 35%);
    pointer-events: none;
    border-radius: 20px;
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.hero-logo-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 2;
    animation: hero-logo-float 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-logo-badge img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    border: 2px solid rgba(200, 149, 108, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(200, 149, 108, 0.1);
    background: #131516;
}

.hero-visual-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.hero-visual-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 18px;
    color: var(--text-primary);
}

.hero-visual-role {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stats bar — bottom of hero */
.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 24px;
    border-top: 1px solid rgba(200, 149, 108, 0.08);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-stat { text-align: center; }

.hero-stat .number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 28px;
    color: var(--text-primary);
}

.hero-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   Problem / Solution
   ============================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

.problem-card {
    padding: 28px 24px;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius);
    text-align: left;
    transition: transform 0.3s ease;
}

.problem-card:hover { }

.problem-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.problem-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f47171;
    color: color-mix(in srgb, var(--accent-danger, #ef4444) 65%, white);
}

.problem-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.solution-divider {
    text-align: center;
    padding: 32px 0;
}

.solution-divider .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
    border-radius: 50%;
    font-size: 24px;
    color: #131516;
    box-shadow: 0 4px 24px rgba(200, 149, 108, 0.25);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.solution-card {
    padding: 28px 24px;
    background: rgba(200, 149, 108, 0.03);
    border: 1px solid rgba(200, 149, 108, 0.1);
    border-radius: var(--border-radius);
    text-align: left;
    transition: transform 0.3s ease;
}

.solution-card:hover { }

.solution-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.solution-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent-primary-hover);
}

.solution-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Vorher / Nachher ---- */
.comparison {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.comparison-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 36px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.comparison-card--bad {
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.comparison-card--bad::before {
    background: linear-gradient(90deg, transparent, var(--accent-danger, #dc2626), transparent);
}

.comparison-card--good {
    background: rgba(200, 149, 108, 0.04);
    border: 1px solid rgba(200, 149, 108, 0.15);
}

.comparison-card--good::before {
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.comparison-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.comparison-card--bad .comparison-icon {
    background: rgba(220, 38, 38, 0.12);
    color: var(--accent-danger, #dc2626);
}

.comparison-card--good .comparison-icon {
    background: rgba(200, 149, 108, 0.12);
    color: var(--accent-primary);
}

.comparison-time {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 8px;
}

.comparison-card--bad .comparison-time {
    color: var(--accent-danger, #dc2626);
}

.comparison-card--good .comparison-time {
    color: var(--accent-primary);
}

.comparison-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.comparison-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    align-self: center;
    margin: 0 -18px;
}

.comparison-vs span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary, #131516);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .comparison {
        flex-direction: column;
        gap: 0;
    }

    .comparison-card {
        padding: 32px 24px 28px;
    }

    .comparison-vs {
        margin: -16px auto;
    }

    .comparison-time {
        font-size: 36px;
    }
}

/* ============================================
   Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(200, 149, 108, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.feature-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--accent-primary-alpha);
    border: 1px solid rgba(200, 149, 108, 0.12);
    border-radius: 100px;
    color: var(--accent-primary);
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.15;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px rgba(200, 149, 108, 0.06);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    background: var(--accent-primary);
    color: #131516;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 1;
}

.pricing-card:hover { }

.pricing-name {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.pricing-price .amount {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 44px;
    color: var(--text-primary);
}

.pricing-price .currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-sub {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
    margin: 8px 0 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features li .check {
    color: var(--accent-primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 40px auto 0;
    line-height: 1.6;
}

/* ============================================
   Comparison Table
   ============================================ */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 700px;
}

/* Mobile: card-based comparison layout */
@media (max-width: 768px) {
    .compare-table-wrap {
        margin: 0;
        padding: 0;
        overflow-x: clip;
    }
    .compare-table,
    .compare-table thead,
    .compare-table tbody,
    .compare-table tr,
    .compare-table td,
    .compare-table th {
        display: block;
        min-width: 0;
    }
    .compare-table thead {
        display: none;
    }
    .compare-table tbody tr {
        background: var(--glass-bg, rgba(255,255,255,0.03));
        border: 1px solid var(--border-color, rgba(255,255,255,0.08));
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 16px;
    }
    .compare-table tbody td {
        text-align: left;
        padding: 6px 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .compare-table tbody td:first-child {
        font-size: 1rem;
        font-weight: 600;
        color: var(--accent-primary, #c8956c);
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
        display: block;
    }
    .compare-table tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-muted, #94a3b8);
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    .compare-table tbody td:first-child::before {
        content: none;
    }
    .compare-table tbody td:last-child {
        background: none;
        border-radius: 0;
    }
    .compare-table tbody tr:last-child td:last-child {
        border-radius: 0;
    }
}
.compare-table thead th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #fff);
    border-bottom: 2px solid var(--border-color, rgba(255,255,255,0.12));
    vertical-align: bottom;
}
.compare-table thead th small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.25rem;
}
.compare-table thead th.compare-criteria {
    text-align: left;
    width: 22%;
}
.compare-table thead th.compare-freyai {
    background: var(--accent-primary-alpha, rgba(200, 149, 108, 0.1));
    border-radius: 12px 12px 0 0;
    color: var(--accent-primary, #c8956c);
}
.compare-table tbody td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.9rem;
}
.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary, #fff);
}
.compare-table tbody td:last-child {
    background: var(--accent-primary-alpha, rgba(200, 149, 108, 0.05));
}
.compare-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 12px;
}
.compare-table tbody tr:hover td {
    background: rgba(255,255,255,0.02);
}
.compare-table tbody tr:hover td:last-child {
    background: var(--accent-primary-alpha, rgba(200, 149, 108, 0.1));
}
.compare-yes {
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}
.compare-no {
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
}
.compare-neutral {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
}
.compare-footnote {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary, #c8956c);
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
}

/* Responsive: card layout on mobile (handled above) */

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
    min-height: 44px;
}

.faq-question:hover { color: var(--accent-primary); }

.faq-question:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-question .toggle {
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question .toggle {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 2000px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA Box
   ============================================ */
.cta-box {
    max-width: 640px;
    margin: 0 auto;
    padding: 64px 48px;
    background: rgba(200, 149, 108, 0.04);
    border: 1px solid rgba(200, 149, 108, 0.12);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.cta-box h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--accent-primary); }

.footer-links a:focus-visible,
.footer-contact a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-contact {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-contact a:hover { color: var(--accent-primary); }

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 100px 24px 32px;
    }

    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-subtitle { text-align: center; }
    .hero-actions { justify-content: center; }

    .hero-visual { flex: none; order: -1; }

    .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); }

    .hero-portrait-frame {
        width: 220px;
        height: 280px;
    }

    .hero-logo-badge img {
        width: 64px;
        height: 64px;
    }

    .hero-logo-badge {
        bottom: -14px;
        right: -14px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(19, 21, 22, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
    .mobile-toggle { display: block; }
    .lang-switcher { margin-left: auto; margin-right: 8px; }

    .nav {
        padding: 10px 16px;
        background: rgba(19, 21, 22, 0.95);
    }
    .footer-links a { padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }

    .hero-inner {
        padding: 72px 16px 16px;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .hero-content { align-items: center; display: flex; flex-direction: column; }

    .hero h1 {
        font-size: clamp(24px, 7vw, 36px);
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
    .hero-label { font-size: 10px; letter-spacing: 2px; margin-bottom: 12px; }
    .hero-badge { margin-bottom: 16px; font-size: 12px; padding: 5px 14px; }

    .hero-visual { flex: none; }
    .hero-portrait-frame { width: 180px; height: 230px; order: -1; }
    .hero-logo-badge { bottom: -12px; right: -12px; }
    .hero-logo-badge img { width: 56px; height: 56px; }

    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 8px;
    }

    .hero-stat .number { font-size: 20px; }
    .hero-stat { font-size: 11px; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .section { padding: 48px 16px; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid::before { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .pricing-grid,
    .pricing-grid--4 {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .cta-box { padding: 40px 24px; }

    .section-label::before,
    .section-label::after { width: 16px; }
}

@media (max-width: 480px) {
    .hero-stat .number { font-size: 18px; }
    .hero-stat { font-size: 10px; }
    .pricing-price .amount { font-size: 32px; }

    .problem-grid,
    .solution-grid { grid-template-columns: 1fr; }

    .hero-portrait-frame {
        width: 150px;
        height: 195px;
    }

    .hero-logo-badge img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .section { padding: 40px 14px; }
}

/* ============================================
   No-JS Fallback
   ============================================ */
html.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .dot, .hero-logo-badge, .hero-glow, .hero-particles { animation: none !important; }
    .btn,
    .nav,
    .nav-links a,
    .feature-card,
    .pricing-card,
    .problem-card,
    .solution-card,
    .faq-question,
    .faq-answer,
    .lang-switcher-btn,
    .lang-modal-close,
    .lang-grid .lang-option,
    .sticky-cta,
    .footer-links a,
    .footer-contact a { transition-duration: 0.01s !important; }
}

/* ============================================
   Trust Grid
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.trust-card {
    background: var(--glass-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}
.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}
.trust-card p {
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.5;
}
@media (max-width: 960px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Sticky CTA
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(19, 21, 22, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta .btn {
    min-height: 44px;
    min-width: 44px;
}
.sticky-cta.visible {
    transform: translateY(0);
}

/* ============================================
   Language Modal (31 languages)
   ============================================ */
body.modal-open {
    overflow: hidden;
}

.lang-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.lang-modal.visible {
    display: flex;
}

.lang-modal-content {
    background: var(--bg-card, #191b1d);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lang-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lang-modal-header h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 22px;
    color: var(--text-primary, #fff);
    margin: 0;
}

.lang-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--text-secondary, #94a3b8);
    font-size: 18px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.lang-modal-close:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary, #fff);
    background: rgba(200, 149, 108, 0.08);
}

.lang-modal-close:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.lang-grid .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary, #94a3b8);
    font-family: inherit;
    font-size: 13px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-grid .lang-option:hover {
    background: rgba(200, 149, 108, 0.06);
    border-color: rgba(200, 149, 108, 0.15);
    color: var(--text-primary, #fff);
}

.lang-grid .lang-option.active {
    background: rgba(200, 149, 108, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
}

.lang-grid .lang-option:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.lang-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .lang-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lang-modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lang-modal-content {
        padding: 20px;
        border-radius: var(--border-radius);
    }

    .lang-grid .lang-option {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ============================================
   Safe area insets (notched devices / landing)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .nav {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
    .sticky-cta {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
    .landing-page {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

