/* ══════════════════════════════════════════════════════════════
   ONIT PRODUCTION — DESIGN SYSTEM
   Industrial Premium | Cinematic Minimalism
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
    /* Palette — Industrial Night */
    --black-void: #050507;
    --black-deep: #08090d;
    --black-surface: #0c0e15;
    --black-elevated: #11131c;
    --black-card: #151823;
    --black-card-hover: #1a1e2d;

    /* Accent — Precision Cyan */
    --cyan-100: #00e5ff;
    --cyan-80: #00b8cc;
    --cyan-60: #008fa3;
    --cyan-40: #006677;
    --cyan-20: #003d4d;
    --cyan-glow: rgba(0, 229, 255, 0.08);
    --cyan-glow-md: rgba(0, 229, 255, 0.15);
    --cyan-glow-lg: rgba(0, 229, 255, 0.30);

    /* Accent — Architecture Blue */
    --blue-core: #3d7aed;
    --blue-dim: #2a5ab8;

    /* Text Hierarchy */
    --text-100: #eaeff6;
    --text-80: #b8c0d2;
    --text-60: #7f8aa3;
    --text-40: #555d73;
    --text-20: #2e3344;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-default: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(0, 229, 255, 0.15);
    --border-accent-strong: rgba(0, 229, 255, 0.35);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-cinematic: 1.2s;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-40) var(--black-void);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black-void);
    color: var(--text-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── FILM GRAIN OVERLAY ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    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;
}

/* ─── GRID BACKGROUND ─── */
.grid-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 10%, transparent 70%);
}

/* ─── AMBIENT GLOW ─── */
.ambient-glow {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.ambient-glow--hero {
    width: 800px;
    height: 800px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--cyan-glow-lg), transparent 70%);
    animation: ambientPulse 8s ease-in-out infinite;
}

.ambient-glow--side {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 122, 237, 0.08), transparent 70%);
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.08); }
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(5, 5, 7, 0.6);
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    z-index: -1;
}

.nav.scrolled::before {
    opacity: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1;
}

.nav-logo-mark {
    width: 32px;
    height: 32px;
    position: relative;
}

.nav-logo-mark svg {
    width: 100%;
    height: 100%;
}

.nav-logo-type {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--text-100);
}

.nav-logo-type .accent {
    color: var(--cyan-100);
}

.nav-logo-sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-40);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-default);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 1;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-60);
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan-100);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-100);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--cyan-100);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black-void);
    background: var(--cyan-100);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    transition: all var(--duration-fast) ease;
    z-index: 1;
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-80);
    transition: all 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* Display — Cinematic headlines */
.t-display-xl {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.t-display-lg {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.t-display-md {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

/* Heading — Section titles */
.t-heading {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
}

/* Body */
.t-body-lg {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-80);
}

.t-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-60);
}

/* Labels — Technical markers */
.t-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-100);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.t-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cyan-100);
}

.t-label--plain::before {
    display: none;
}

/* Mono — Technical text */
.t-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-40);
}

/* Gradient Text */
.t-gradient {
    background: linear-gradient(135deg, var(--text-100) 30%, var(--text-60) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t-gradient-cyan {
    background: linear-gradient(135deg, var(--cyan-100) 0%, var(--blue-core) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT SYSTEM
   ══════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

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

.section {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0;
}

.section--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.section--divider {
    border-top: 1px solid var(--border-subtle);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--cyan-100);
    color: var(--black-void);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.btn--primary:hover {
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-80);
    border: 1px solid var(--border-default);
}

.btn--ghost:hover {
    border-color: var(--border-accent);
    color: var(--cyan-100);
    transform: translateY(-2px);
}

.btn--ghost:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
    font-size: 0.9em;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
    background: var(--black-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-100), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.card:hover {
    background: var(--black-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--cyan-glow);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--cyan-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: all var(--duration-normal) ease;
}

.card:hover .card-icon {
    background: var(--cyan-glow-md);
    box-shadow: 0 0 25px var(--cyan-glow);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--cyan-100);
    fill: none;
    stroke-width: 1.5;
}

.card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-20);
    letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

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

/* ══════════════════════════════════════════════════════════════
   DIVIDER LINE
   ══════════════════════════════════════════════════════════════ */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    position: relative;
}

.divider--glow {
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-xl) 3rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.footer-brand .accent { color: var(--cyan-100); }

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-40);
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-40);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--cyan-100);
}

.footer-right {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-20);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-center { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-logo-sub { display: none; }
    .container { padding: 0 1.5rem; }
    .section { padding: var(--space-2xl) 0; }
    .footer { padding: var(--space-lg) 1.5rem; }
    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
