/* ============================================================
   KALESTO.DE — Stylesheet
   Designed for performance, accessibility and brand impact.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --bg-dark: #0A0A0A;
    --bg-dark-soft: #111111;
    --bg-dark-elev: #1A1A1A;
    --bg-light: #FAFAFA;
    --bg-light-alt: #F0F0F0;
    --bg-white: #FFFFFF;

    --text-on-dark: #FFFFFF;
    --text-on-dark-muted: #A0A0A0;
    --text-on-dark-dim: #6B6B6B;
    --text-on-light: #0A0A0A;
    --text-on-light-muted: #5A5A5A;

    --accent: #D4FF00;
    --accent-hover: #B8E600;
    --accent-dim: rgba(212, 255, 0, 0.15);

    --border-dark: #1F1F1F;
    --border-light: #E5E5E5;

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py: clamp(5rem, 10vw, 8rem);
    --container-px: clamp(1.25rem, 5vw, 3rem);
    --container-max: 1280px;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-med: 400ms;
    --duration-slow: 700ms;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-on-dark);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input { font: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg-dark); }

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}
.text-accent { color: var(--accent); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 0;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.btn--accent {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 255, 0, 0.25);
}
.btn--ghost {
    background: transparent;
    color: currentColor;
    border-color: currentColor;
}
.btn--ghost:hover {
    background: currentColor;
    color: var(--bg-dark);
}
.btn--small {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
}
.btn__arrow {
    transition: transform var(--duration-fast) var(--ease-out);
}
.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ===== SECTION HEAD ===== */
.section-head {
    max-width: 720px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-on-light-muted);
    margin-bottom: 1.5rem;
}
.section-head__eyebrow--light {
    color: var(--accent);
}
.section-head__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.section-head__sub {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-on-light-muted);
    line-height: 1.55;
    max-width: 600px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.0);
    backdrop-filter: blur(0px);
    transition: background var(--duration-fast), backdrop-filter var(--duration-fast), border-color var(--duration-fast);
    border-bottom: 1px solid transparent;
}
.nav--scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border-dark);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}
.nav__brand {
    display: flex;
    align-items: center;
    z-index: 102;
    position: relative;
}
.nav__logo {
    height: 40px;
    width: auto;
}
.nav__links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}
.nav__link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--duration-fast);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--duration-fast) var(--ease-out);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }
.nav__cta {
    margin-left: 0;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-dark);
    padding: 0;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.lang-switch a {
    padding: 0.45rem 0.75rem;
    color: var(--text-on-dark-muted);
    transition: all var(--duration-fast);
    display: block;
}
.lang-switch a:hover { color: var(--text-on-dark); }
.lang-switch a.is-active {
    background: var(--accent);
    color: var(--bg-dark);
}
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 102;
    position: relative;
}
.nav__burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-on-dark);
    transition: transform var(--duration-fast), opacity var(--duration-fast);
    transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem var(--container-px) 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--duration-med) var(--ease-out);
    /* Below the nav bar (z-index 100) so the logo + close button stay visible/clickable. */
    z-index: 90;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dark);
    width: 100%;
}
.nav__mobile-link:hover { color: var(--accent); }
.nav__mobile-cta { margin-top: 2rem; }

@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* avoids the mobile URL-bar resize jump */
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 8rem 0 4rem;
}
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero__bg-logo {
    position: absolute;
    top: 50%;
    right: clamp(1.5rem, 4vw, 4rem);
    transform: translateY(-50%);
    width: clamp(380px, 45vw, 620px);
    opacity: 1;
    pointer-events: none;
    animation: heroLogoIn 1.5s var(--ease-out) backwards 0.4s;
}
@media (max-width: 900px) {
    .hero__bg-logo { display: none; }
}
.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.hero__bg-glow {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 255, 0, 0.12) 0%, transparent 60%);
    filter: blur(40px);
}

.hero__inner {
    position: relative;
    z-index: 2;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-bottom: 2rem;
    animation: fadeUp 0.8s var(--ease-out) backwards 0.1s;
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s infinite;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 2rem;
    max-width: 1000px;
    animation: fadeUp 1s var(--ease-out) backwards 0.25s;
}
.hero__title-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}
.hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineIn 0.8s var(--ease-out) forwards 1.2s;
}
.hero__sub {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--text-on-dark-muted);
    line-height: 1.55;
    max-width: 620px;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s var(--ease-out) backwards 0.4s;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
    animation: fadeUp 1s var(--ease-out) backwards 0.55s;
}
.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 800px;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-dark);
    animation: fadeUp 1s var(--ease-out) backwards 0.7s;
}
.hero__stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
}
.hero__stat-num span {
    color: var(--accent);
    font-size: 0.7em;
    margin-left: 0.1em;
}
.hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    line-height: 1.4;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-on-dark-dim);
    z-index: 3;
}
.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: scrollLine 2s infinite;
}
@media (max-width: 600px) {
    .hero__scroll { display: none; }
}

/* ===== TRUST STRIP ===== */
.trust {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.trust__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.trust__item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--accent);
}
.trust__item h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}
.trust__item p {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    line-height: 1.4;
}

/* ===== PRODUCTS ===== */
.products {
    background: var(--bg-light);
    color: var(--text-on-light);
    padding: var(--section-py) 0;
}
.products .section-head__title { color: var(--text-on-light); }
.products .text-accent { color: var(--text-on-light); position: relative; }
.products .text-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 6px;
    background: var(--accent);
    z-index: -1;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 600px) {
    .products__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.product {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform var(--duration-med) var(--ease-out), box-shadow var(--duration-med) var(--ease-out), border-color var(--duration-med) var(--ease-out);
    display: flex;
    flex-direction: column;
}
.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.18);
    border-color: var(--bg-dark);
}
.product__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-light-alt);
}
.product__media-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    padding: 0.4rem 0.85rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.product__media-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__body {
    padding: 2rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product__category {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-on-light-muted);
    margin-bottom: 0.75rem;
}
.product__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-on-light);
}
.product__lead {
    color: var(--text-on-light-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}
.product__features {
    margin-bottom: 2rem;
    flex: 1;
}
.product__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-on-light);
}
.product__features li::before {
    content: '';
    flex-shrink: 0;
    width: 12px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.65em;
}
.product__features li:last-child { border-bottom: 0; }
.product__features strong { font-weight: 600; }

.product__cta {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.product__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-on-light-muted);
}
.product__rating {
    color: var(--text-on-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.product__divider { opacity: 0.4; }

.products__more {
    text-align: center;
    color: var(--text-on-light-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}
.products__more a {
    color: var(--text-on-light);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    transition: color var(--duration-fast);
}
.products__more a:hover { color: var(--text-on-light); opacity: 0.7; }

/* ===== STORY ===== */
.story {
    background: var(--bg-dark);
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}
.story__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.story__bg-stripe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 200px;
    background: var(--accent);
    transform: translateX(-50%) rotate(-3deg) translateY(-150px);
    opacity: 0.025;
}
.story__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .story__inner { grid-template-columns: 1fr; }
}
.story__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}
.story__copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--text-on-dark-muted);
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 3rem;
}
.story__copy strong {
    color: var(--text-on-dark);
    font-weight: 600;
}
.story__signature {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}
.story__signature-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
}
.story__signature-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-on-dark);
}
.story__signature-role {
    font-size: 0.85rem;
    color: var(--text-on-dark-dim);
    margin-top: 2px;
}

.story__visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.story__visual-card {
    padding: 1.75rem;
    background: var(--bg-dark-elev);
    border: 1px solid var(--border-dark);
    transition: transform var(--duration-med) var(--ease-out), border-color var(--duration-med) var(--ease-out);
    position: relative;
}
.story__visual-card:hover {
    transform: translateX(-6px);
    border-color: var(--accent);
}
.story__visual-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}
.story__visual-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.story__visual-card p {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== USE CASES ===== */
.cases {
    background: var(--bg-light);
    color: var(--text-on-light);
    padding: var(--section-py) 0;
}
.cases .section-head__title { color: var(--text-on-light); }
.cases .text-accent { color: var(--text-on-light); position: relative; }
.cases .text-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 6px;
    background: var(--accent);
    z-index: -1;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.case {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all var(--duration-med) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-med) var(--ease-out);
}
.case:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(10, 10, 10, 0.1);
    border-color: var(--bg-dark);
}
.case:hover::before { transform: scaleX(1); }
.case__number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-on-light-muted);
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}
.case h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}
.case p {
    color: var(--text-on-light-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ===== REVIEWS ===== */
.reviews {
    background: var(--bg-dark);
    padding: var(--section-py) 0;
}
.reviews .section-head__eyebrow { color: var(--text-on-dark-muted); }
.reviews .section-head__title { color: var(--text-on-dark); }
.reviews__stars {
    color: var(--accent);
    letter-spacing: 0.15em;
    font-size: 0.75em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.review {
    padding: 2rem;
    background: var(--bg-dark-elev);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--duration-med) var(--ease-out);
}
.review:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.review__stars {
    color: var(--accent);
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}
.review blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-on-dark);
    flex: 1;
}
.review figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-dark);
}
.review figcaption strong {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-on-dark);
}
.review figcaption span {
    font-size: 0.825rem;
    color: var(--text-on-dark-dim);
}

.reviews__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-dark-elev);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--accent);
}
.reviews__cta span {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: var(--bg-dark);
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 255, 0, 0.08) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}
.newsletter__inner {
    position: relative;
    z-index: 2;
}
.newsletter__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.newsletter__content .section-head__eyebrow { justify-content: center; }
.newsletter__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.newsletter__sub {
    color: var(--text-on-dark-muted);
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    line-height: 1.55;
    margin-bottom: 2.5rem;
}
.newsletter__form {
    display: flex;
    gap: 0.5rem;
    max-width: 520px;
    margin: 0 auto 1rem;
    background: var(--bg-dark-elev);
    border: 1px solid var(--border-dark);
    padding: 0.5rem;
    transition: border-color var(--duration-fast);
}
.newsletter__form:focus-within { border-color: var(--accent); }
.newsletter__form input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0.75rem 1rem;
    color: var(--text-on-dark);
    outline: none;
    font-size: 1rem;
    min-width: 0;
}
.newsletter__form input::placeholder { color: var(--text-on-dark-dim); }
.newsletter__form .btn { padding-left: 1.25rem; padding-right: 1.25rem; }
.newsletter__legal {
    font-size: 0.8rem;
    color: var(--text-on-dark-dim);
    line-height: 1.5;
    margin-top: 1rem;
}
.newsletter__legal a {
    color: var(--text-on-dark-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.newsletter__success {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--text-on-dark);
    font-size: 0.95rem;
    display: none;
}
.newsletter__success.is-visible {
    display: block;
    animation: fadeUp 0.5s var(--ease-out);
}
.newsletter__success strong { color: var(--accent); margin-right: 0.5rem; }

@media (max-width: 540px) {
    .newsletter__form { flex-direction: column; }
    .newsletter__form .btn { justify-content: center; }
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-light);
    color: var(--text-on-light);
    padding: var(--section-py) 0;
}
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 800px) {
    .contact__inner { grid-template-columns: 1fr; }
}
.contact__text .section-head__eyebrow { color: var(--text-on-light-muted); }
.contact__text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-on-light);
}
.contact__text p {
    color: var(--text-on-light-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.contact__text strong { color: var(--text-on-light); font-weight: 600; }

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact__channel {
    padding: 1.75rem 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all var(--duration-med) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.contact__channel::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-on-light-muted);
    transition: transform var(--duration-fast), color var(--duration-fast);
}
.contact__channel:hover {
    border-color: var(--bg-dark);
    transform: translateY(-2px);
}
.contact__channel:hover::after { transform: translateY(-50%) translateX(6px); color: var(--text-on-light); }
.contact__channel-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-on-light-muted);
}
.contact__channel-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-on-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-dark);
}
.footer__top {
    display: grid;
    grid-template-columns: 1.2fr 2.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 800px) {
    .footer__top { grid-template-columns: 1fr; }
}
.footer__logo {
    height: 48px;
    margin-bottom: 1.25rem;
}
.footer__brand p {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 280px;
}
.footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media (max-width: 700px) {
    .footer__nav { grid-template-columns: repeat(2, 1fr); }
}
.footer__col {
    display: flex;
    flex-direction: column;
}
.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.footer__col a {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    transition: color var(--duration-fast);
}
.footer__col a:hover { color: var(--text-on-dark); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}
.footer__bottom p {
    color: var(--text-on-dark-dim);
    font-size: 0.85rem;
}
.footer__social {
    display: flex;
    gap: 1.5rem;
}
.footer__social a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    transition: color var(--duration-fast);
}
.footer__social a:hover { color: var(--accent); }

/* ===== LEGAL PAGES ===== */
.legal-page {
    background: var(--bg-light);
    color: var(--text-on-light);
    min-height: 100vh;
    padding: 10rem 0 6rem;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 4px solid var(--accent);
    display: inline-block;
}
.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-on-light);
}
.legal-page h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
}
.legal-page p, .legal-page li {
    color: var(--text-on-light-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-page strong { color: var(--text-on-light); font-weight: 600; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { list-style: disc; }
.legal-page a {
    color: var(--text-on-light);
    border-bottom: 2px solid var(--accent);
    transition: opacity var(--duration-fast);
}
.legal-page a:hover { opacity: 0.7; }
.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 0 !important;
    color: var(--text-on-light-muted);
}
.legal-page__back:hover { color: var(--text-on-light); opacity: 1; }

/* ===== REVEAL ANIMATIONS ===== */
/* Progressive enhancement: only hide reveals when JS confirms it can animate them. */
.js-reveals .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-reveals .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroLogoIn {
    from { opacity: 0; transform: translateY(-50%) translateX(60px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}
@keyframes underlineIn {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== FOCUS STATES ===== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
