/* ═══════════════════════════════════════════════════════════════════════════
 * ANY EVER Audio Suite – Landing Page (Final)
 * Design: V2 system (black, brand gradient, DM Mono) + V1 effects (magenta CTA, glitch)
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Fonts ───────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Monument Extended';
    src: url('fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('fonts/MonumentExtended-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Custom Properties ───────────────────────────────────────────────────── */

:root {
    /* Navy palette (V2 – black base) */
    --navy-950: #000000;
    --navy-900: #060B18;
    --navy-850: #0a1020;
    --navy-800: #0e1528;
    --navy-700: #162038;
    --navy-600: #1e2d4a;
    --navy-500: #c0cedf;
    --navy-400: #8899bb;
    --navy-300: #6b7fa3;
    --navy-200: #b0bedb;
    --navy-100: #dce4f2;

    /* Brand accents */
    --cyan-500: #00e5cc;
    --cyan-400: #33edd9;
    --turquoise-500: #00F2E5;
    --magenta-600: #c42565;
    --magenta-500: #FF0B9C;
    --magenta-400: #FF70CA;
    --magenta-300: #f57da8;
    --emerald-500: #10b981;
    --pink-music: #FF35CA;

    /* Brand gradient */
    --brand-gradient: linear-gradient(135deg, #0038C1 0%, #4D34C6 25%, #FF0B9C 50%, #FF70CA 75%, #00F2E5 100%);

    /* Fonts */
    --font-display: 'Monument Extended', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', 'SF Mono', monospace;

    /* Spacing */
    --section-padding: clamp(48px, 6vw, 96px);
    --container-width: 1200px;
    --container-padding: clamp(20px, 5vw, 48px);

    /* Effects */
    --glow-magenta: 0 0 60px rgba(255, 11, 156, 0.15);
    --glow-magenta-strong: 0 8px 32px rgba(255, 11, 156, 0.35);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--navy-950);
    color: var(--navy-100);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 3px; }

/* ─── Skip Link (Accessibility) ───────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--magenta-500);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ─── Focus Styles (Accessibility) ────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--magenta-400);
    outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * NAVIGATION
 * ═══════════════════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 96px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav--scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Nav Logo: image-based */
.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 3rem;
    width: auto;
    display: block;
}

.nav__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__claim {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #fff;
    white-space: nowrap;
}

/* Nav CTA: Same as .btn-primary, just smaller */
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, var(--magenta-400), var(--magenta-500));
    border-radius: 100px;
    position: relative;
    z-index: 0;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 24px rgba(255, 11, 156, 0.25);
}

.nav__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--magenta-300);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
    z-index: -1;
    pointer-events: none;
}

.nav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(255, 11, 156, 0.1), 0 0 80px rgba(255, 11, 156, 0.05);
    animation: ctaPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.nav__cta:hover {
    box-shadow: var(--glow-magenta-strong);
    transform: translateY(-1px);
}

.nav__cta:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * HERO
 * ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px var(--container-padding) 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Dual-Glow background */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse 60% 50% at 35% 45%, rgba(0, 56, 193, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 65% 55%, rgba(255, 11, 156, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Hero Logo ── */
.hero__logo-img {
    position: relative;
    z-index: 1;
    width: min(340px, 42vw, 34vh);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.25rem;
    display: block;
}

/* Hero Content */
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1040px;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero__title-line { display: block; }

.hero__title-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.65;
    color: var(--navy-400);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto 24px;
    text-wrap: pretty;
}

.hero__cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons: Magenta Primary (V1 style) ────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, var(--magenta-400), var(--magenta-500));
    border-radius: 100px;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 0;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 24px rgba(255, 11, 156, 0.25);
}

/* Hover overlay — fades in over the gradient so there's no flash */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--magenta-300);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
    z-index: -1;
    pointer-events: none;
}

/* Pulsing glow on a pseudo-element so it never fights hover */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(255, 11, 156, 0.1), 0 0 80px rgba(255, 11, 156, 0.05);
    animation: ctaPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

.btn-primary:hover {
    box-shadow: var(--glow-magenta-strong);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary--large {
    padding: 18px 44px;
    font-size: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-400);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    color: var(--cyan-400);
    border-color: rgba(0, 229, 204, 0.2);
    background: rgba(0, 229, 204, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * APP SCREENSHOT
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Tighter padding for the app overview section (screenshot + cards) */
.feature:has(.feature__header) {
    padding-top: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

.feature__header {
    text-align: center;
    margin-bottom: 28px;
}

.mockup {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy-950);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 11, 156, 0.04),
        0 0 60px rgba(0, 242, 229, 0.02);
}

.mockup__screenshot {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: cover;
    object-position: top left;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * CAPABILITIES MINI-CARDS
 * ═══════════════════════════════════════════════════════════════════════════ */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    margin-top: 32px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.cap-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* Gradient top-edge glow — visible on hover */
.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 11, 156, 0.4), rgba(0, 242, 229, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cap-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

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

.cap-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 11, 156, 0.06);
    border: 1px solid rgba(255, 11, 156, 0.1);
    color: var(--magenta-400);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cap-card:hover .cap-card__icon {
    background: rgba(255, 11, 156, 0.1);
    border-color: rgba(255, 11, 156, 0.2);
    box-shadow: 0 0 20px rgba(255, 11, 156, 0.08);
}

.cap-card__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-400);
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cap-card:hover .cap-card__label {
    color: var(--navy-200);
}

@media (max-width: 768px) {
    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cap-card {
        padding: 18px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * SECTION GENERICS
 * ═══════════════════════════════════════════════════════════════════════════ */

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-500);
    margin-bottom: 16px;
}

.section-label--pink { color: var(--magenta-400); }
.section-label--cyan { color: var(--turquoise-500); }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FEATURE SECTIONS
 * ═══════════════════════════════════════════════════════════════════════════ */

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

.feature--alt {
    background: var(--navy-900);
}

.feature__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.feature__layout--reverse {
    direction: rtl;
}

.feature__layout--reverse > * {
    direction: ltr;
}

.feature__desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--navy-400);
    margin-bottom: 16px;
}

.feature__desc strong {
    color: #fff;
    font-weight: 500;
}

.feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.feature__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--navy-200);
    line-height: 1.5;
}

.feature__list-icon {
    flex-shrink: 0;
    color: var(--navy-400);
    margin-top: 1px;
}

.feature__list-icon svg {
    display: block;
}

/* ─── Feature Visual: Image ───────────────────────────────────────────────── */

.feature__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * CTA SECTION
 * ═══════════════════════════════════════════════════════════════════════════ */

.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dual-glow background */
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background:
        radial-gradient(ellipse 60% 50% at 40% 50%, rgba(0, 56, 193, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 50%, rgba(255, 11, 156, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

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

.cta-section__desc {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--navy-400);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ─── Glitch Title (V1 effect) ────────────────────────────────────────────── */

.glitch-title {
    position: relative;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
}

.glitch-title::before {
    color: var(--cyan-400);
    animation: glitchCyan 8s ease-in-out infinite;
}

.glitch-title::after {
    color: var(--magenta-400);
    animation: glitchMagenta 8s ease-in-out infinite;
}

@keyframes glitchCyan {
    0%, 92%, 100% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.6; transform: translate(-3px, -1px); clip-path: inset(20% 0 60% 0); }
    94% { opacity: 0; }
    96% { opacity: 0.4; transform: translate(2px, 1px); clip-path: inset(50% 0 20% 0); }
    97% { opacity: 0; }
}

@keyframes glitchMagenta {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    91% { opacity: 0.5; transform: translate(3px, 1px); clip-path: inset(40% 0 30% 0); }
    92% { opacity: 0; }
    95% { opacity: 0.3; transform: translate(-2px, -1px); clip-path: inset(10% 0 70% 0); }
    96% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FOOTER
 * ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Footer Logo: image-based (muted) */
.footer__logo {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer__logo:hover { opacity: 0.8; }

.footer__logo-img {
    height: 1.6rem;
    width: auto;
    display: block;
}

.footer__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * LEGAL PAGES (Datenschutz, Impressum)
 * ═══════════════════════════════════════════════════════════════════════════ */

.legal {
    padding: 120px 0 80px;
}

.legal h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--navy-100);
    margin-bottom: 40px;
}

.legal h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 3vw, 28px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy-100);
    margin-top: 48px;
    margin-bottom: 20px;
}

.legal h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(15px, 2vw, 18px);
    color: var(--navy-200);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--navy-200);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--navy-400);
    margin-bottom: 12px;
    max-width: 720px;
}

.legal a {
    color: var(--magenta-400);
    text-decoration: underline;
    text-decoration-color: rgba(255, 112, 202, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.legal a:hover {
    text-decoration-color: var(--magenta-400);
}

.legal ul, .legal ol {
    margin: 12px 0 12px 24px;
    max-width: 720px;
}

.legal li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--navy-400);
    margin-bottom: 4px;
}

.legal strong {
    color: var(--navy-200);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * SCROLL REVEAL ANIMATIONS
 * ═══════════════════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo);
}

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

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-enter 0.8s var(--ease-out-expo) forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.5s; }

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * REDUCED MOTION (Accessibility)
 * ═══════════════════════════════════════════════════════════════════════════ */

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

    .hero-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

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

    .glitch-title::before,
    .glitch-title::after {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Large screens (2K+): scale up everything ────────────────────────────── */

@media (min-width: 1800px) {
    :root {
        --container-width: 1440px;
        --section-padding: clamp(64px, 6vw, 120px);
    }

    body { font-size: 18px; }

    .nav { height: 112px; }
    .nav__logo-img { height: 3.6rem; }
    .nav__claim { font-size: 1.1rem; }
    .nav__cta { padding: 14px 32px; font-size: 0.8rem; }

    .hero__logo-img {
        width: min(480px, 38vw, 42vh);
    }
    .hero__content { max-width: 1200px; }
    .hero__title { font-size: clamp(36px, 3vw, 56px); }
    .hero__subtitle { font-size: 18px; max-width: 780px; }

    .btn-primary { padding: 16px 36px; font-size: 0.85rem; }
    .btn-primary--large { padding: 20px 48px; font-size: 16px; }
    .btn-secondary { padding: 16px 32px; font-size: 0.85rem; }

    .section-title { font-size: clamp(32px, 4vw, 52px); }
    .section-label { font-size: 13px; }
    .feature__desc { font-size: 17px; }
    .feature__list li { font-size: 16px; }

    .mockup { max-width: 1200px; }
    .cap-grid { max-width: 1200px; }
    .cap-card { padding: 24px 16px; gap: 14px; }
    .cap-card__icon { width: 44px; height: 44px; }
    .cap-card__label { font-size: 12px; }

    .footer__logo-img { height: 2rem; }
    .footer__copy { font-size: 14px; }
    .footer__links a { font-size: 14px; }
}

/* ─── 4K+ screens: scale even further ─────────────────────────────────────── */

@media (min-width: 2800px) {
    :root {
        --container-width: 1800px;
    }

    body { font-size: 20px; }

    .hero__logo-img {
        width: min(640px, 32vw, 48vh);
    }
    .hero__title { font-size: clamp(44px, 2.6vw, 64px); }

    .mockup { max-width: 1500px; }
    .cap-grid { max-width: 1500px; }
}

/* ─── Short viewports (1366x768 notebooks) ────────────────────────────────── */

@media (max-height: 800px) {
    .feature:has(.feature__header) {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .feature__header { margin-bottom: 20px; }
    .mockup__screenshot { max-height: 36vh; }
    .cap-grid { margin-top: 20px; }
    .cap-card { padding: 14px 10px; gap: 8px; }
    .cap-card__icon { width: 30px; height: 30px; }
    .cap-card__icon svg { width: 16px; height: 16px; }
}

/* ─── Tablet / small desktop (≤ 1024px) ───────────────────────────────────── */

@media (max-width: 1024px) {
    .feature__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature__layout--reverse { direction: ltr; }
    .nav__left { gap: 16px; }
    .nav__claim { font-size: 0.7rem; letter-spacing: 0.15em; }

    /* Feature visuals: constrain width when single-column */
    .feature__visual {
        max-width: 540px;
        margin: 0 auto;
    }

    /* Reduce feature section gap in single-column */
    .feature__layout { gap: 32px; }

    /* Cap grid: 4-col still works at this width but tighter */
    .cap-grid { gap: 8px; }
    .cap-card { padding: 16px 10px; }

    /* Tighter app overview for tablets */
    .feature:has(.feature__header) {
        padding-top: clamp(24px, 3vw, 40px);
        padding-bottom: clamp(20px, 2vw, 32px);
    }
}

/* ─── Tablet portrait (≤ 768px) ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding-top: 84px;
        padding-bottom: 20px;
    }

    .hero__logo-img {
        width: min(260px, 55vw);
        margin-bottom: 1.25rem;
    }

    .hero__cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .nav { height: 76px; }
    .nav__left { gap: 12px; }
    .nav__claim { font-size: 0.65rem; letter-spacing: 0.12em; }
    .nav__cta { padding: 9px 18px; font-size: 11px; }

    /* App overview: cards go 2-col, screenshot capped */
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .mockup__screenshot { max-height: 35vh; }

    /* Feature sections: tighter */
    .feature { padding: clamp(40px, 8vw, 64px) 0; }
    .feature__visual { max-width: 100%; }

    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__meta { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* Glitch title: disable on mobile (too wide for small screens) */
    .glitch-title::before,
    .glitch-title::after { display: none; }
}

/* ─── Mobile (≤ 480px) ────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .hero__title { font-size: 21px; letter-spacing: 0.02em; }
    .hero__subtitle { font-size: 13px; margin-bottom: 18px; }
    .section-title { font-size: 22px; }

    .nav__logo-img { height: 2.2rem; }
    .nav__left { gap: 10px; }
    .nav__claim { font-size: 0.5rem; letter-spacing: 0.08em; }

    .feature__desc { font-size: 14px; }
    .feature__list li { font-size: 13px; }

    /* Cards: compact horizontal layout on small mobile */
    .cap-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
    .cap-card { flex-direction: row; padding: 10px 12px; gap: 10px; }
    .cap-card__icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; }
    .cap-card__icon svg { width: 14px; height: 14px; }
    .cap-card__label { font-size: 10px; text-align: left; }

    .cta-section__desc br { display: none; }
    .btn-primary--large { padding: 14px 32px; font-size: 12px; }

    /* Feature sections: tighter on small mobile */
    .feature { padding: clamp(32px, 6vw, 48px) 0; }
    .feature__layout { gap: 24px; }

    .feature__text .feature__list { margin-top: 16px; gap: 8px; }
    .feature__desc { margin-bottom: 10px; }
}

/* ─── Tiny mobile (≤ 375px) ───────────────────────────────────────────────── */

@media (max-width: 375px) {
    .hero__logo-img {
        width: 220px;
    }
}
