/* ============================================
   logiqOS — Premium Marketing Website
   "Apple meets OpenAI meets Defense-Grade Systems"
   ============================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ---------- Design System / CSS Variables ---------- */
:root {
    /* Background Colors */
    --bg-0: #05060A;
    --bg-1: #0B0E16;
    --bg-2: #101420;

    /* Glass & Border */
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Text Colors */
    --text: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Accent Colors */
    --orange: #FF7A18;
    --orange-glow: rgba(255, 122, 24, 0.4);
    --gold: #FFB347;
    --gold-glow: rgba(255, 179, 71, 0.3);
    --blue: #4DA3FF;
    --blue-glow: rgba(77, 163, 255, 0.3);

    /* Gradients */
    --gradient-text: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
    --gradient-orange: linear-gradient(135deg, var(--orange) 0%, #FF9A4D 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);

    /* Typography */
    --font-mono: 'Space Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-noise: 9999;
    --z-nav: 1000;
    --z-mobile-menu: 999;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* MOBILE FIX: Prevent horizontal overflow */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    /* MOBILE FIX: Prevent horizontal overflow */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

::selection {
    background: var(--orange);
    color: var(--bg-0);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

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

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

/* ---------- Typography Utilities ---------- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    padding: 8px 16px;
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.2);
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    /* MOBILE FIX: Prevent text overflow */
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--bg-0);
    box-shadow: 0 4px 24px var(--orange-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--orange-glow);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-nav);
    width: calc(100% - 48px);
    max-width: 960px;
    transition: var(--transition-normal);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(11, 14, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.navbar.scrolled .navbar-inner {
    padding: 10px 20px;
    background: rgba(11, 14, 22, 0.9);
    border-color: var(--border-hover);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--glass);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-0);
    padding: 10px 20px;
    background: var(--gradient-orange);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.nav-cta:hover {
    box-shadow: 0 4px 20px var(--orange-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: calc(var(--z-nav) + 10);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-menu);
    background: var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.mobile-cta {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-0);
    padding: 14px 32px;
    background: var(--gradient-orange);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* MOBILE FIX: Use dynamic viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.7;
}

.hero-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, var(--bg-0) 0%, transparent 100%);
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(0deg, var(--bg-0) 0%, transparent 100%);
}

.hero-content {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--container-padding);
    padding-top: 100px;
}

.hero-hud {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 8px 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hud-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    padding: 8px 14px;
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.2);
    border-radius: 100px;
    white-space: nowrap;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: live-pulse 1.5s ease infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-main {
    color: var(--text);
}

.title-accent {
    color: var(--orange);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-telemetry {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.telemetry-value {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
}

.telemetry-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--orange) 0%, transparent 100%);
    animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    position: relative;
    padding: var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.about-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-0) 0%, rgba(5, 6, 10, 0.7) 50%, var(--bg-0) 100%);
}

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

.about-content {
    max-width: 540px;
}

.about-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-text {
    font-size: clamp(0.95rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Visual Frame */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.visual-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.frame-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--orange);
    opacity: 0.5;
}

.frame-corner--tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner--tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner--bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner--br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding);
    background: var(--bg-1);
}

.features-header {
    text-align: center;
    margin-bottom: 100px;
}

.features-header .section-desc {
    margin: 0 auto;
}

/* Feature Block */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block--reverse {
    direction: rtl;
}

.feature-block--reverse > * {
    direction: ltr;
}

/* Feature Visual */
.feature-visual {
    position: relative;
}

.feature-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.feature-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.feature-visual:hover .feature-glow {
    opacity: 1;
}

.feature-glow--orange {
    box-shadow: inset 0 0 80px var(--orange-glow);
}

.feature-glow--blue {
    box-shadow: inset 0 0 80px var(--blue-glow);
}

.feature-glow--gold {
    box-shadow: inset 0 0 80px var(--gold-glow);
}

/* Particles */
.particle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

.particle--1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle--2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.3s;
}

.particle--3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 2.6s;
}

@keyframes particle-float {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-20px); }
}

/* Feature Card */
.feature-card {
    padding: 40px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feature-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    display: block;
    margin-bottom: 16px;
}

.feature-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

/* ============================================
   ROADMAP SECTION
   ============================================ */
.roadmap {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.roadmap-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.roadmap-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.roadmap-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-0) 0%, transparent 20%, transparent 80%, var(--bg-0) 100%);
}

.roadmap-header {
    text-align: center;
    margin-bottom: 80px;
}

.roadmap-header .section-desc {
    margin: 0 auto;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 60px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-1);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.timeline-marker--active .marker-dot {
    background: var(--orange);
    border-color: var(--orange);
}

.marker-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    animation: marker-pulse 2s ease infinite;
}

@keyframes marker-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
    padding: 28px 32px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-normal);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    background: var(--glass-hover);
}

.timeline-card--active {
    border-color: rgba(255, 122, 24, 0.3);
    box-shadow: 0 0 40px rgba(255, 122, 24, 0.1);
}

.phase-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    display: block;
    margin-bottom: 12px;
}

.phase-title {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.phase-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.phase-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.phase-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.phase-status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--glass);
    border-radius: 100px;
}

.phase-status--complete {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.phase-status--active {
    color: var(--orange);
    background: rgba(255, 122, 24, 0.1);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-0) 0%, rgba(5, 6, 10, 0.8) 50%, var(--bg-0) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cta-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-input {
    flex: 1;
    min-width: 0; /* MOBILE FIX: Prevent input overflow */
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-0);
    background: var(--gradient-orange);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    white-space: nowrap;
    flex-shrink: 0;
}

.form-btn:hover {
    box-shadow: 0 4px 20px var(--orange-glow);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--orange);
    background: rgba(255, 122, 24, 0.1);
}

.social-link:hover svg {
    fill: var(--orange);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--up {
    transform: translateY(40px);
}

.reveal--fade {
    transform: scale(0.98);
}

.reveal--scale {
    transform: scale(0.95);
}

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

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
        min-height: 250px;
    }

    .visual-frame {
        width: 200px;
        height: 200px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .feature-block--reverse {
        direction: ltr;
    }

    .features-header {
        margin-bottom: 60px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 20px;
    }

    /* --- Navbar --- */
    .navbar {
        width: calc(100% - 24px);
        top: 12px;
    }

    .navbar-inner {
        padding: 10px 18px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        position: relative;
        overflow: hidden;
    }

    /* Make the hero image actually visible on mobile — shift focus to the face */
    .hero-bg-image {
        object-position: 30% center;
        opacity: 0.85;
    }

    /* Lighten the top gradient so the image breathes */
    .hero-gradient-top {
        height: 30%;
        background: linear-gradient(180deg, rgba(5,6,10,0.6) 0%, transparent 100%);
    }

    /* Stronger bottom gradient to keep text readable */
    .hero-gradient-bottom {
        height: 65%;
        background: linear-gradient(0deg, var(--bg-0) 0%, rgba(5,6,10,0.7) 60%, transparent 100%);
    }

    .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 0 20px;
        padding-top: 90px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* HUD badges — keep them inline, side by side */
    .hero-hud {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }

    .hud-status,
    .hud-live {
        font-size: 0.6rem;
        padding: 6px 12px;
        white-space: nowrap;
    }

    /* Title */
    .hero-title {
        font-size: clamp(2.8rem, 13vw, 3.8rem);
        margin-bottom: 16px;
        line-height: 0.95;
    }

    /* Subtitle */
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 28px;
        max-width: 100%;
        color: rgba(255,255,255,0.8);
    }

    /* Buttons — side by side if they fit, else stack */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
        min-width: 140px;
        padding: 14px 20px;
        justify-content: center;
        font-size: 0.95rem;
    }

    /* Telemetry — horizontal row at bottom */
    .hero-telemetry {
        display: flex;
        flex-direction: row;
        gap: 32px;
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
        flex-wrap: nowrap;
    }

    .telemetry-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .telemetry-label {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .telemetry-value {
        font-size: 1.3rem;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-line {
        height: 36px;
    }

    /* --- About --- */
    .about {
        min-height: auto;
        padding: 80px 0;
    }

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

    .about-content {
        max-width: 100%;
    }

    .about-visual {
        min-height: 160px;
        order: -1;
    }

    .visual-frame {
        width: 140px;
        height: 140px;
    }

    .frame-corner {
        width: 36px;
        height: 36px;
    }

    .about-stats {
        display: flex;
        flex-direction: row;
        gap: 24px;
        flex-wrap: nowrap;
    }

    .stat-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* --- Features --- */
    .features {
        padding: 70px 0;
    }

    .features-header {
        margin-bottom: 50px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 56px;
    }

    .feature-block--reverse {
        direction: ltr;
    }

    /* On mobile, image always comes first */
    .feature-block--reverse .feature-visual {
        order: -1;
    }

    .feature-image-wrapper {
        border-radius: var(--radius-md);
    }

    .feature-image {
        border-radius: var(--radius-md);
        max-height: 260px;
        object-fit: cover;
        width: 100%;
    }

    .feature-card {
        padding: 24px 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .feature-title {
        font-size: 1.4rem;
    }

    .feature-desc {
        font-size: 0.95rem;
    }

    /* --- Roadmap --- */
    .roadmap {
        padding: 70px 0;
    }

    .roadmap-header {
        margin-bottom: 48px;
    }

    .timeline {
        max-width: 100%;
    }

    .timeline-line {
        left: 14px;
    }

    .timeline-item {
        padding-left: 52px;
        padding-bottom: 36px;
    }

    .timeline-marker {
        left: 2px;
        width: 24px;
    }

    .timeline-card {
        padding: 20px 18px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .phase-title {
        font-size: 1.1rem;
    }

    .phase-list li {
        font-size: 0.88rem;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 80px 0;
    }

    .cta-content {
        padding: 0 20px;
    }

    .cta-title {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .cta-subtitle {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .form-group {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 1rem;
        text-align: left;
    }

    .form-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* --- Footer --- */
    .footer {
        padding: 48px 0 32px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        gap: 24px;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --container-padding: 18px;
    }

    .section-tag {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Hero title stays big and punchy */
    .hero-title {
        font-size: clamp(2.5rem, 14vw, 3.2rem);
    }

    /* Buttons stack on very narrow screens */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    /* Telemetry keeps row layout */
    .hero-telemetry {
        gap: 24px;
    }

    .telemetry-value {
        font-size: 1.15rem;
    }

    /* Stats in a row */
    .about-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Feature images shorter on small screens */
    .feature-image {
        max-height: 200px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    /* Timeline tighter */
    .timeline-line {
        left: 10px;
    }

    .timeline-item {
        padding-left: 42px;
        padding-bottom: 30px;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-card {
        padding: 18px 14px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - EXTRA SMALL (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    :root {
        --container-padding: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .hero-telemetry {
        gap: 18px;
    }

    .telemetry-value {
        font-size: 1rem;
    }

    .telemetry-label {
        font-size: 0.55rem;
    }

    .timeline-item {
        padding-left: 36px;
    }

    .timeline-line {
        left: 8px;
    }

    .timeline-marker {
        width: 18px;
    }

    .marker-dot {
        width: 10px;
        height: 10px;
    }
}

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

    html {
        scroll-behavior: auto;
    }

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

    .scroll-line,
    .status-dot,
    .live-pulse,
    .marker-pulse,
    .particle {
        animation: none;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }

    .feature-visual:hover .feature-glow {
        opacity: 0;
    }

    .timeline-card:hover {
        border-color: var(--border);
        background: var(--glass);
    }

    .btn,
    .nav-link,
    .mobile-link,
    .social-link {
        min-height: 44px;
    }
}

/* ============================================
   LANDSCAPE MOBILE FIX
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-content {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
        justify-content: center;
    }

    .hero-telemetry {
        margin-top: 30px;
    }

    .scroll-indicator {
        display: none;
    }
}
