/* ============================================
   LEGACY MANAGER '26 — Marketing Website
   Dark stadium aesthetic with electric purple
   ============================================ */

/* --- Font Faces --- */
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/spacegrotesk/SpaceGrotesk-VariableFont.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: 'Sofia Sans';
    src: url('fonts/sofiasans/SofiaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Sans';
    src: url('fonts/sofiasans/SofiaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Sans';
    src: url('fonts/sofiasans/SofiaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Sans';
    src: url('fonts/sofiasans/SofiaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Sofia Sans';
    src: url('fonts/sofiasans/SofiaSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('fonts/oxanium/Oxanium-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Oxanium';
    src: url('fonts/oxanium/Oxanium-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Oxanium';
    src: url('fonts/oxanium/Oxanium-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Oxanium';
    src: url('fonts/oxanium/Oxanium-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #0f1017;
    --bg-tertiary: #14161d;
    --bg-surface: rgba(10, 12, 20, 0.75);
    --bg-surface-light: rgba(20, 24, 40, 0.6);
    --bg-card: rgba(15, 16, 23, 0.85);

    --accent: #6C63FF;
    --accent-light: #9d97ff;
    --accent-glow: rgba(108, 99, 255, 0.4);
    --accent-dim: rgba(108, 99, 255, 0.15);
    --accent-border: rgba(108, 99, 255, 0.3);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);

    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --font-heading: 'Sofia Sans', system-ui, sans-serif;
    --font-accent: 'Oxanium', system-ui, sans-serif;

    --nav-height: 72px;
    --container-max: 1200px;
    --container-narrow: 800px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.35s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #201E3F;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent);
}

/* --- Scrollbars (matching app) --- */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(107, 107, 255, 0.3);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 107, 255, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 107, 255, 0.3) transparent;
}

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

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

.container--narrow {
    max-width: var(--container-narrow);
}

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

/* --- Section Spacing --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section--sm {
    padding: 60px 0;
}

.section-label {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* --- Background Texture --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(108, 99, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(108, 99, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Noise grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--transition-med), box-shadow var(--transition-med), transform var(--transition-med);
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* On home page, nav is hidden until scroll */
.nav--home {
    transform: translateY(-100%);
    pointer-events: none;
}

.nav--home.scrolled {
    transform: translateY(0);
    pointer-events: auto;
}

.nav.scrolled {
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(108, 99, 255, 0.15);
}

/* On inner pages, nav is always visible */
.nav--inner {
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(108, 99, 255, 0.08);
}

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

.nav__logo {
    height: 36px;
    width: auto;
    position: relative;
    z-index: 1001;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__link {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-med);
}

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

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__cta {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: transparent;
    padding: 10px 22px;
    position: relative;
    z-index: 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.nav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    transform: skewX(-20deg);
    border-radius: 3px;
    z-index: -1;
    transition: filter 0.15s;
}

.nav__cta:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav__cta:hover::before {
    filter: brightness(1.3);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-med), opacity var(--transition-fast);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 16px 36px;
    cursor: pointer;
    border: none;
    position: relative;
    color: #fff;
    background: transparent;
    z-index: 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: skewX(-20deg);
    z-index: -1;
    border-radius: 3px;
    transition: background-color 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn--primary::before {
    background-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn--primary:hover {
    color: #fff;
}

.btn--primary:hover::before {
    filter: brightness(1.3);
    box-shadow: 0 0 50px var(--accent-glow);
}

.btn--primary:active::before {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
    filter: brightness(0.8);
}

.btn--secondary::before {
    background-color: #243455;
}

.btn--secondary:hover {
    color: #fff;
}

.btn--secondary:hover::before {
    filter: brightness(1.3);
}

.btn--secondary:active::before {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
    filter: brightness(0.8);
}

.btn__icon {
    width: 18px;
    height: 18px;
}

.btn__separator {
    opacity: 0.3;
    font-weight: 300;
    margin: 0 2px;
}

.btn__platforms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn__platform-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* ============================================
   HERO NAV (integrated into hero)
   ============================================ */
.hero-nav {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
}

.hero-nav__inner {
    padding: 12px 20px 0;
}

.hero-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.hero-nav__logo {
    height: 36px;
    width: auto;
}

.hero-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.hero-nav__link {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.hero-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-med);
}

.hero-nav__link:hover {
    color: #fff;
}

.hero-nav__link:hover::after {
    width: 100%;
}

.hero-nav__cta {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: transparent;
    padding: 10px 22px;
    position: relative;
    z-index: 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.hero-nav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    transform: skewX(-20deg);
    border-radius: 3px;
    z-index: -1;
    transition: filter 0.15s;
}

.hero-nav__cta:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.hero-nav__cta:hover::before {
    filter: brightness(1.3);
}

/* Hero nav hamburger for mobile */
.hero-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hero-nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-med), opacity var(--transition-fast);
}

.hero-nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hero-nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hero-nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #201E3F;
}

/* SVG pattern backgrounds matching the app front page */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg-top-left.svg') no-repeat left top / auto;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg-bottom-right.svg') no-repeat right bottom / auto;
    z-index: 0;
    pointer-events: none;
}

.hero__bg {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(10, 11, 16, 0.65) 0%,
            rgba(10, 11, 16, 0.4) 40%,
            rgba(10, 11, 16, 0.6) 70%,
            rgba(10, 11, 16, 0.95) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 11, 16, 0.5) 0%,
            transparent 30%,
            transparent 70%,
            rgba(10, 11, 16, 0.5) 100%
        );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero__logo {
    width: min(500px, 80vw);
    margin: 0 auto 32px;
    animation: heroFadeDown 0.8s ease-out both;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 16px;
    animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero__tagline .accent {
    color: var(--accent);
    position: relative;
}

.hero__sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease-out 0.45s both;
}

/* (platforms now inside button) */

/* Hero scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

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

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

/* No angled divider */

/* ============================================
   FEATURE ROWS (alternating image + text)
   ============================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 72px;
}

.feature-row--reverse {
    grid-template-columns: 1fr 1.15fr;
}

.feature-row--reverse .feature-row__image {
    order: 2;
}

.feature-row--reverse .feature-row__text {
    order: 1;
}

.feature-row__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

.feature-row__image:hover {
    border-color: var(--accent-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-dim);
}

.feature-row__image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-row__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-row__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   SCREENSHOTS / TRAILER SECTION
   ============================================ */
.media {
    position: relative;
    z-index: 1;
}

.media__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.media__video::before {
    display: none;
}

.media__placeholder {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-muted);
}

.media__placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0.6;
}

.media__placeholder span {
    display: block;
    font-family: var(--font-accent);
    font-size: 14px;
    letter-spacing: 1px;
}

.media__screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.media__screenshots--5 .media__screenshot:nth-child(4),
.media__screenshots--5 .media__screenshot:nth-child(5) {
    grid-column: span 1;
}

.media__screenshot {
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
    overflow: hidden;
}

.media__screenshot:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.media__screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   WHY SECTION (manifesto)
   ============================================ */
.why {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    overflow: hidden;
}

.why::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why__text {
    max-width: 520px;
}

.why__headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin-bottom: 24px;
}

.why__headline .accent {
    color: var(--accent);
}

.why__body p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.why__body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.why__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why__stat {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--transition-med), transform var(--transition-med);
}

.why__stat:hover {
    border-color: var(--accent-border);
}

.why__stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 40px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.why__stat-label {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================
   BLOG PREVIEW (Home)
   ============================================ */
.blog-preview {
    position: relative;
    z-index: 1;
}

.blog-preview__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   BLOG CARDS (shared)
   ============================================ */
.blog-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.blog-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.blog-card__image {
    aspect-ratio: 16 / 10;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(108, 99, 255, 0.05) 100%);
}

.blog-card__body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-family: var(--font-accent);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card__title a:hover {
    color: var(--accent-light);
}

.blog-card__excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card__link {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-med), color var(--transition-fast);
}

.blog-card__link:hover {
    gap: 12px;
    color: var(--accent-light);
}

.blog-card__link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   BLOG PAGE (full listing)
   ============================================ */
.blog-listing {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 60px);
}

.blog-listing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

/* ============================================
   BLOG POST (single article)
   ============================================ */
.blog-article {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
}

.blog-article__back {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    transition: gap var(--transition-med);
}

.blog-article__back:hover {
    gap: 14px;
    color: var(--accent-light);
}

.blog-article__back svg {
    width: 14px;
    height: 14px;
}

.blog-article__meta {
    margin-bottom: 32px;
}

.blog-article__date {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.blog-article__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.blog-article__author {
    font-size: 15px;
    color: var(--text-secondary);
}

.blog-article__author strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-article__hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    overflow: hidden;
}

.blog-article__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(108, 99, 255, 0.05) 100%);
}

.blog-article__body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-article__body h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-primary);
    margin: 48px 0 20px;
    line-height: 1.2;
}

.blog-article__body h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 22px;
    color: var(--text-primary);
    margin: 36px 0 16px;
    line-height: 1.3;
}

.blog-article__body p {
    margin-bottom: 24px;
}

.blog-article__body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-article__body ul,
.blog-article__body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-article__body li {
    margin-bottom: 8px;
}

.blog-article__body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 0 32px;
}

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

.footer__logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__heading {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--accent-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    text-align: center;
}

.footer__copyright {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-accent);
    margin-bottom: 12px;
}

.footer__disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 60px);
    min-height: 70vh;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
}

.contact__method {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: border-color var(--transition-med), transform var(--transition-med);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact__method:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.contact__method-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.contact__method-icon svg {
    width: 24px;
    height: 24px;
}

.contact__method-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.contact__method-detail {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact__method-detail a {
    color: var(--accent-light);
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-page {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
}

.legal-page__content {
    margin-top: 40px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.legal-page__content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin: 48px 0 16px;
}

.legal-page__content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.legal-page__content p {
    margin-bottom: 16px;
}

.legal-page__content ul,
.legal-page__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page__content li {
    margin-bottom: 8px;
}

.legal-page__content a {
    color: var(--accent-light);
}

.legal-page__updated {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ============================================
   PAGE HEADER (shared for inner pages)
   ============================================ */
.page-header {
    margin-bottom: 20px;
}

.page-header__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-header__desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    z-index: 1;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(10, 11, 16, 0) 60%);
    border-top: 1px solid var(--accent-dim);
    border-bottom: 1px solid var(--accent-dim);
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    line-height: 1.15;
}

.cta-banner__sub {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SIGNUP FORM
   ============================================ */
.signup-form__fields {
    display: flex;
    gap: 4px;
    max-width: 520px;
    margin: 0 auto;
    align-items: center;
}

.signup-form__input-wrap {
    flex: 1;
    position: relative;
    z-index: 0;
    min-width: 0;
}

.signup-form__input-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: skewX(-20deg);
    border-radius: 3px;
    z-index: -1;
}

.signup-form__input {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    position: relative;
    z-index: 1;
}

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

.signup-form__btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .feature-row,
    .feature-row--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-row--reverse .feature-row__image,
    .feature-row--reverse .feature-row__text {
        order: unset;
    }

    .why__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why__stats {
        max-width: 400px;
    }

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

    .blog-preview__grid .blog-card:nth-child(3) {
        display: none;
    }

    .blog-listing__grid {
        grid-template-columns: 1fr;
    }

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

    .contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    /* Hero nav mobile */
    .hero-nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(10, 11, 16, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 36px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-med);
        border-left: 1px solid var(--accent-dim);
    }

    .hero-nav__links.open {
        transform: translateX(0);
    }

    .hero-nav__hamburger {
        display: flex;
    }

    .hero-nav__link {
        font-size: 18px;
    }

    .hero-nav__cta {
        font-size: 15px;
        padding: 14px 28px;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(10, 11, 16, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 36px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-med);
        border-left: 1px solid var(--accent-dim);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__link {
        font-size: 18px;
    }

    .nav__cta {
        font-size: 15px;
        padding: 14px 28px;
    }

    .blog-preview__grid {
        grid-template-columns: 1fr;
    }

    .blog-preview__grid .blog-card:nth-child(3) {
        display: flex;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        text-align: center;
    }

    .hero__tagline {
        font-size: clamp(24px, 6vw, 40px);
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

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

    .signup-form__fields {
        flex-direction: column;
        gap: 8px;
    }

    .signup-form__input-wrap {
        width: 100%;
    }

    .signup-form__btn {
        width: 100%;
        justify-content: center;
    }

    .why__stats {
        grid-template-columns: 1fr;
    }

    .blog-preview__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
