/* ==========================================================================
   Kalp Bağım – Profesyonel tasarım sistemi
   Beyaz · Mor · Açık mor
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
    /* Renkler */
    --color-white: #ffffff;
    --color-off-white: #f8f7fc;
    --color-surface: #f0eef8;
    --color-purple-950: #3b0764;
    --color-purple: #6B21A8;
    --color-purple-mid: #7C3AED;
    --color-purple-light: #A78BFA;
    --color-purple-pale: #E9D5FF;
    --color-purple-bg: #F5F3FF;
    --color-text: #1e1b2e;
    --color-text-secondary: #4c4865;
    --color-text-muted: #6b6578;
    --color-border: #e2deeb;
    --color-border-strong: #c4bdd4;

    /* Tipografi */
    --font-sans: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-hero: clamp(2.25rem, 5vw + 1rem, 3.5rem);
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;
    --tracking-tight: -0.025em;
    --tracking-tighter: -0.04em;

    /* Boşluk */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radii */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Gölgeler */
    --shadow-xs: 0 1px 2px rgba(107, 33, 168, 0.04);
    --shadow-sm: 0 2px 8px rgba(107, 33, 168, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(107, 33, 168, 0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 16px 48px rgba(107, 33, 168, 0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 24px 64px rgba(107, 33, 168, 0.12), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.1), 0 0 60px -12px rgba(124, 58, 237, 0.35);
    --shadow-inner: inset 0 1px 2px rgba(0,0,0,0.04);

    /* Geçişler */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration: 250ms;
    --duration-slow: 400ms;
}

/* Dark theme */
body.theme-dark,
body[data-theme="dark"] {
    --color-white: #16141f;
    --color-off-white: #1c1926;
    --color-surface: #252230;
    --color-purple-bg: #2a2438;
    --color-text: #f2eef9;
    --color-text-secondary: #c9c2d8;
    --color-text-muted: #9a92ab;
    --color-border: #36304a;
    --color-border-strong: #4a4360;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.25);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 0 1px rgba(167, 139, 250, 0.15), 0 0 60px -12px rgba(124, 58, 237, 0.25);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background: var(--color-off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--duration-slow) ease, color var(--duration-slow) ease;
    overflow-x: hidden;
}
::selection {
    background: var(--color-purple-pale);
    color: var(--color-purple-950);
}
body.theme-dark ::selection,
body[data-theme="dark"] ::selection {
    background: rgba(167, 139, 250, 0.35);
    color: var(--color-text);
}

.site-main { flex: 1; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}
.container--narrow {
    max-width: 720px;
}
.container--wide {
    max-width: 1400px;
}

/* Page load */
body.page-loaded .site-main {
    animation: pageIn 0.5s var(--ease-out) forwards;
}
@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.reveal-scale { transform: translateY(32px) scale(0.97); }
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    transition: background var(--duration) ease, border-color var(--duration) ease, box-shadow var(--duration) ease;
}
body.theme-dark .site-header,
body[data-theme="dark"] .site-header {
    background: rgba(22, 20, 31, 0.85);
    border-bottom-color: var(--color-border);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-tight);
    transition: color var(--duration) ease, transform var(--duration) var(--ease-spring);
}
.logo:hover {
    color: var(--color-purple);
    transform: translateY(-1px);
}
.logo-heart {
    font-size: 1.75rem;
    line-height: 1;
    animation: heartPulse 2.2s ease-in-out infinite;
}
@keyframes heartPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.95; }
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.nav-main a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    position: relative;
    transition: color var(--duration) ease;
}
.nav-main a::after {
    content: '';
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-1);
    height: 2px;
    background: var(--color-purple);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease-out);
}
.nav-main a:hover {
    color: var(--color-purple);
}
.nav-main a:hover::after { transform: scaleX(1); }
.nav-main a.active {
    color: var(--color-purple);
    font-weight: 600;
}
.nav-main a.active::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.theme-toggle,
.lang-switch {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-inner);
}
.theme-btn,
.lang-btn {
    padding: var(--space-2) var(--space-3);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration) ease, background var(--duration) ease;
}
.theme-btn:hover,
.lang-btn:hover {
    color: var(--color-purple);
    background: var(--color-purple-pale);
}
.theme-btn.active,
.lang-btn.active {
    color: var(--color-white);
    background: var(--color-purple);
}
body.theme-dark .theme-btn.active,
body.theme-dark .lang-btn.active,
body[data-theme="dark"] .theme-btn.active,
body[data-theme="dark"] .lang-btn.active {
    background: var(--color-purple-mid);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.25;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) ease, background var(--duration) ease, color var(--duration) ease;
}
.btn:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn--primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-mid) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(107, 33, 168, 0.4);
}
.btn--primary:hover {
    box-shadow: 0 8px 24px rgba(107, 33, 168, 0.45);
}
.btn--secondary {
    background: var(--color-white);
    color: var(--color-purple);
    border: 2px solid var(--color-border-strong);
}
.btn--secondary:hover {
    border-color: var(--color-purple-light);
    background: var(--color-purple-bg);
}
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
}
.btn--ghost:hover {
    background: var(--color-purple-pale);
    color: var(--color-purple);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: var(--space-20) 0 var(--space-16);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(233, 213, 255, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-purple-bg) 0%, var(--color-off-white) 60%);
    animation: heroBgPulse 15s ease-in-out infinite;
}
body.theme-dark .hero__bg::before,
body[data-theme="dark"] .hero__bg::before {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1a1625 0%, var(--color-off-white) 70%);
}
@keyframes heroBgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}
.hero__orb--1 { width: 320px; height: 320px; background: var(--color-purple-light); top: 5%; left: -5%; animation-delay: 0s; }
.hero__orb--2 { width: 240px; height: 240px; background: var(--color-purple-pale); top: 50%; right: -3%; animation-delay: -4s; }
.hero__orb--3 { width: 200px; height: 200px; background: var(--color-purple-mid); bottom: 10%; left: 20%; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.98); }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}
@media (min-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        text-align: left;
    }
}

.hero__content {
    max-width: 560px;
    text-align: center;
}
@media (min-width: 900px) {
    .hero__content { text-align: left; }
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-5);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-purple);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}
body.theme-dark .hero__badge,
body[data-theme="dark"] .hero__badge {
    background: rgba(38, 35, 52, 0.9);
    border-color: var(--color-border);
}
.hero__title {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text);
    margin: 0 0 var(--space-4);
    animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}
.hero__sub {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-purple);
    margin: 0 0 var(--space-5);
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}
.hero__intro {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-4);
    animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}
.hero__intro:last-of-type {
    margin-bottom: var(--space-8);
    animation-delay: 0.5s;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    animation: fadeInUp 0.7s var(--ease-out) 0.6s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__visual {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
}
@media (min-width: 900px) {
    .hero__visual { display: flex; }
}
.hero__phone {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, var(--color-white) 0%, var(--color-surface) 100%);
    border-radius: 40px;
    box-shadow:
        0 0 0 12px var(--color-text),
        0 0 0 14px var(--color-border),
        0 32px 64px rgba(107, 33, 168, 0.2),
        var(--shadow-xl);
    overflow: hidden;
}
body.theme-dark .hero__phone,
body[data-theme="dark"] .hero__phone {
    background: linear-gradient(145deg, #252230 0%, #1c1926 100%);
    box-shadow: 0 0 0 12px #0f0e14, 0 0 0 14px var(--color-border), 0 32px 64px rgba(0,0,0,0.5);
}
.hero__phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    z-index: 1;
}
body.theme-dark .hero__phone::before,
body[data-theme="dark"] .hero__phone::before {
    background: #333;
}
.hero__phone-screen {
    position: absolute;
    inset: 44px 12px 12px;
    background: linear-gradient(180deg, var(--color-purple-bg) 0%, var(--color-purple-pale) 50%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: screenGlow 4s ease-in-out infinite;
}
body.theme-dark .hero__phone-screen,
body[data-theme="dark"] .hero__phone-screen {
    background: linear-gradient(180deg, var(--color-purple-bg) 0%, rgba(107, 33, 168, 0.3) 100%);
}
@keyframes screenGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* ---- Section block ---- */
.section {
    padding: var(--space-20) 0;
}
.section__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-purple);
    margin-bottom: var(--space-3);
}
.section__title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin: 0 0 var(--space-8);
    max-width: 600px;
}
.section__title--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---- Features ---- */
.features {
    padding: var(--space-24) 0;
    background: var(--color-white);
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    opacity: 0.8;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-10);
}
.feature-card {
    grid-column: span 12;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) ease, border-color var(--duration) ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-purple-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-purple-light);
}
.feature-card:hover::before { transform: scaleX(1); }
@media (min-width: 640px) {
    .feature-card { grid-column: span 6; }
}
@media (min-width: 900px) {
    .feature-card { grid-column: span 4; }
}
.feature-card--large {
    grid-column: span 12;
}
@media (min-width: 900px) {
    .feature-card--large { grid-column: span 8; }
}
.feature-card--premium {
    border-color: var(--color-purple-light);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-purple-bg) 100%);
    box-shadow: 0 8px 32px rgba(107, 33, 168, 0.12);
}
.feature-card--premium::before {
    height: 5px;
    background: linear-gradient(90deg, var(--color-purple-mid), var(--color-purple-light));
}
body.theme-dark .feature-card--premium,
body[data-theme="dark"] .feature-card--premium {
    background: linear-gradient(135deg, var(--color-purple-bg) 0%, rgba(107, 33, 168, 0.2) 100%);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-purple-pale) 0%, rgba(167, 139, 250, 0.3) 100%);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    transition: transform var(--duration) var(--ease-spring);
}
.feature-card:hover .feature-card__icon {
    transform: scale(1.08) rotate(-3deg);
}
.feature-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-2);
    letter-spacing: var(--tracking-tight);
}
.feature-card__text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
    margin: 0;
}

/* ---- Why ---- */
.why {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--color-purple-bg) 0%, var(--color-surface) 40%, var(--color-off-white) 100%);
    position: relative;
    overflow: hidden;
}
.why::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-purple-pale) 0%, transparent 65%);
    top: -150px;
    right: -100px;
    opacity: 0.5;
    animation: softPulse 6s ease-in-out infinite;
}
body.theme-dark .why::after,
body[data-theme="dark"] .why::after {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 65%);
}
@keyframes softPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.08); }
}
.why .container {
    position: relative;
    z-index: 1;
}
.why__quote {
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
    font-weight: 700;
    line-height: var(--leading-snug);
    color: var(--color-purple);
    text-align: center;
    margin: 0 0 var(--space-4);
    font-style: normal;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.why__sub {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    text-align: center;
    margin: 0 0 var(--space-6);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.why__text {
    font-size: var(--text-base);
    color: var(--color-text);
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ---- CTA ---- */
.cta {
    padding: var(--space-24) 0;
    position: relative;
}
.cta__card {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.5) inset;
    overflow: hidden;
}
.cta__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light), var(--color-purple-pale));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}
body.theme-dark .cta__card,
body[data-theme="dark"] .cta__card {
    background: var(--color-surface);
    border-color: var(--color-border);
}
.cta__quote {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 var(--space-2);
}
.cta__sub {
    font-size: var(--text-base);
    color: var(--color-purple);
    font-weight: 600;
    text-align: center;
    margin: 0 0 var(--space-6);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
    transition: background var(--duration) ease, border-color var(--duration) ease;
}
body.theme-dark .site-footer,
body[data-theme="dark"] .site-footer {
    background: var(--color-off-white);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    margin-bottom: var(--space-10);
}
@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--space-12);
    }
}
.footer__brand .logo {
    margin-bottom: var(--space-3);
}
.footer__about {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
    margin: 0;
    max-width: 320px;
}
.footer__col h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
}
.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer__col li { margin: 0 0 var(--space-2); }
.footer__col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--duration) ease;
}
.footer__col a:hover { color: var(--color-purple); }
.footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-5) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.footer__copy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* ========== Legal pages ========== */
.page-legal {
    padding: var(--space-10) 0 var(--space-20);
    background: var(--color-off-white);
}
.legal-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}
@media (min-width: 900px) {
    .legal-layout {
        grid-template-columns: 240px 1fr;
        gap: var(--space-12);
        align-items: start;
    }
}

.breadcrumb {
    grid-column: 1 / -1;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}
.breadcrumb a {
    color: var(--color-purple);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--color-text-muted); }

.legal-sidebar {
    position: sticky;
    top: calc(80px + var(--space-4));
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}
.legal-sidebar h3 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-purple);
    margin: 0 0 var(--space-4);
}
.legal-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.legal-sidebar li { margin: 0 0 var(--space-1); }
.legal-sidebar a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color var(--duration) ease, background var(--duration) ease;
}
.legal-sidebar a:hover,
.legal-sidebar a.active {
    color: var(--color-purple);
    background: var(--color-purple-bg);
}

.legal-main {
    min-width: 0;
}
.legal-hero {
    margin-bottom: var(--space-8);
}
.legal-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin: 0 0 var(--space-2);
}
.legal-updated {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.legal-section {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--duration) ease, border-color var(--duration) ease;
}
.legal-section:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-border-strong);
}
.legal-section:target {
    border-color: var(--color-purple-light);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}
.legal-section h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-purple);
    margin: 0 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.legal-section h2::before {
    content: '';
    width: 4px;
    height: 1.4em;
    background: linear-gradient(180deg, var(--color-purple), var(--color-purple-light));
    border-radius: 2px;
    flex-shrink: 0;
}
.legal-section p {
    margin: 0 0 var(--space-3);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--color-text);
}
.legal-section p:last-child { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .nav-main { order: 3; width: 100%; justify-content: center; }
    .hero { min-height: auto; padding: var(--space-16) 0 var(--space-12); }
    .hero__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
    .hero__actions { justify-content: center; }
    .section { padding: var(--space-12) 0; }
    .features { padding: var(--space-16) 0; }
    .why { padding: var(--space-16) 0; }
    .cta { padding: var(--space-16) 0; }
    .cta__card { padding: var(--space-8) var(--space-5); }
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__about { max-width: none; margin: 0 auto; }
    .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidebar { position: static; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
