/* ============================================
   TrekGuard Landing Page — Design System
   Unified with bikalshrestha.com.np portfolio
   Violet/Blue/Cyan structural accents
   Green/Red/Amber for feature-specific accents
   ============================================ */

/* ---------- CSS Variables (Shared Design Tokens) ---------- */
:root {
    --bg-primary: #04040a;
    --bg-secondary: #0a0a14;
    --bg-tertiary: #10101c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-nav: rgba(4, 4, 10, 0.82);

    --text-primary: #f0f0f5;
    --text-secondary: #8b8ba0;
    --text-muted: #52526a;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Structural accents (shared with portfolio) */
    --accent-violet: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;

    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);

    /* Feature-specific accents */
    --color-altitude: #22c55e;
    --color-sos: #ef4444;
    --color-weather: #f59e0b;

    --glow-color: rgba(139, 92, 246, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --section-gap: 7rem;
    --container-width: 1160px;
    --nav-height: 72px;
    --border-radius: 20px;
    --border-radius-sm: 12px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Film grain noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    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;
    background-size: 256px 256px;
}

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

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

/* ---------- Utility Classes ---------- */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent 25%, rgba(139, 92, 246, 0.2) 45%, rgba(59, 130, 246, 0.15) 60%, rgba(6, 182, 212, 0.2) 75%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

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

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px -20px rgba(139, 92, 246, 0.15);
}

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

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- NAVIGATION ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.btn-nav {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 0.95rem;
    border-radius: 16px;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section:nth-of-type(even) {
    background: var(--bg-secondary);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, rgba(139, 92, 246, 0.2) 50%, var(--border-color) 80%, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-violet);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- HERO ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 3rem;
    overflow: visible;
}

.hero-bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 50% at 15% 45%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: meshMove 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshMove {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.hero-grid-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-violet);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.hero-name {
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Phone mockup */
.hero-phone {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 290px;
    height: 600px;
    background: #0f0f1e;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 100px -30px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #080812;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    filter: blur(30px);
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-50%, -48%) scale(1.08); }
    66% { transform: translate(-50%, -52%) scale(0.95); }
}

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2.25rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
    color: var(--icon-color, var(--accent-violet));
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- SCREENSHOTS ---------- */
.screenshots-carousel {
    position: relative;
    overflow: hidden;
    padding: 1rem 0 2rem;
}

.screenshots-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1rem 0;
}

.screenshot-slide {
    flex: 0 0 220px;
    text-align: center;
}

.screenshot-phone {
    width: 220px;
    height: 450px;
    background: #0f0f1e;
    border-radius: 28px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.screenshot-slide:hover .screenshot-phone {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px -15px rgba(139, 92, 246, 0.15);
}

.screenshot-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 22px;
}

.screenshot-caption {
    margin-top: 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--accent-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    width: 24px;
    border-radius: 4px;
}

/* ---------- SAFETY ---------- */
.safety-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.safety-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.safety-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.safety-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.safety-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
    margin-top: 1px;
}

/* Altitude Zones Visualization */
.altitude-zones {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-left: 3px solid;
    position: relative;
    transition: all var(--transition-normal);
}

.zone:hover {
    padding-left: 2.25rem;
}

.zone-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.zone-range {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.zone-extreme {
    border-color: #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
}
.zone-extreme .zone-label { color: #ef4444; }

.zone-very-high {
    border-color: #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
}
.zone-very-high .zone-label { color: #f97316; }

.zone-high {
    border-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}
.zone-high .zone-label { color: #f59e0b; }

.zone-moderate {
    border-color: #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}
.zone-moderate .zone-label { color: #22c55e; }

.zone-low {
    border-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
}
.zone-low .zone-label { color: #3b82f6; }

/* ---------- TOOLKIT ---------- */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.toolkit-item {
    padding: 1.75rem;
    text-align: center;
}

.toolkit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    margin: 0 auto 1.25rem;
    color: var(--accent-violet);
    transition: all var(--transition-normal);
}

.toolkit-item:hover .toolkit-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.12);
}

.toolkit-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.toolkit-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- PRIVACY ---------- */
.privacy-banner {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.privacy-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
}

.privacy-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.privacy-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

.privacy-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.privacy-badge {
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.06);
    letter-spacing: 0.02em;
}

/* ---------- TECH ---------- */
.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    transition: all var(--transition-normal);
    min-width: 160px;
}

.tech-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tech-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.tech-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---------- DOWNLOAD CTA ---------- */
.download-cta {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(59, 130, 246, 0.04) 50%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
    filter: blur(40px);
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.download-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.download-actions {
    margin-bottom: 1.5rem;
}

.download-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 2rem;
    background: var(--bg-primary);
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.footer-brand h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

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

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

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

.footer-bottom a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--accent-violet);
}

/* ---------- RESPONSIVE ---------- */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-gap: 5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: calc(var(--nav-height) + 3rem);
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .safety-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    :root {
        --section-gap: 3.5rem;
        --nav-height: 60px;
        --border-radius: 14px;
    }

    /* Mobile nav overlay — display:none/flex with opaque background */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #04040a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 0.75rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-logo {
        z-index: 1001;
    }

    .btn-nav {
        display: none;
    }

    /* Hero */
    .hero-section {
        padding: calc(var(--nav-height) + 2rem) 1.25rem 2.5rem;
    }

    .hero-name {
        font-size: clamp(2.2rem, 8vw, 3rem);
        letter-spacing: -2px;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

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

    .hero-cta {
        margin-bottom: 2rem;
    }

    .phone-frame {
        width: 230px;
        height: 480px;
        border-radius: 28px;
    }

    .phone-frame::before {
        width: 80px;
        height: 22px;
    }

    .phone-screen {
        border-radius: 20px;
    }

    /* Sections */
    .section-container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 0.75rem;
        letter-spacing: -1px;
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Screenshots */
    .screenshot-slide {
        flex: 0 0 160px;
    }

    .screenshot-phone {
        width: 160px;
        height: 330px;
        border-radius: 22px;
    }

    .screenshot-caption {
        font-size: 0.75rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    /* Safety */
    .safety-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .safety-feature {
        font-size: 0.88rem;
    }

    .safety-check {
        width: 24px;
        height: 24px;
    }

    .safety-check svg {
        width: 14px;
        height: 14px;
    }

    .zone {
        padding: 1rem 1.25rem;
    }

    .zone-label {
        font-size: 0.85rem;
    }

    .zone-range {
        font-size: 0.72rem;
    }

    /* Toolkit */
    .toolkit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .toolkit-item {
        padding: 1.25rem;
    }

    .toolkit-item h4 {
        font-size: 0.82rem;
    }

    .toolkit-item p {
        font-size: 0.72rem;
    }

    .toolkit-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.85rem;
    }

    /* Privacy */
    .privacy-banner {
        padding: 2rem 1.25rem;
    }

    .privacy-icon {
        width: 56px;
        height: 56px;
    }

    .privacy-text h3 {
        font-size: 1.15rem;
    }

    .privacy-text p {
        font-size: 0.88rem;
    }

    .privacy-badge {
        font-size: 0.65rem;
    }

    /* Tech Grid */
    .tech-grid {
        gap: 0.75rem;
    }

    .tech-item {
        min-width: 130px;
        padding: 1rem 1.25rem;
    }

    .tech-name {
        font-size: 0.78rem;
    }

    .tech-desc {
        font-size: 0.65rem;
    }

    /* Download CTA */
    .download-cta {
        padding: 3rem 1.25rem;
    }

    .download-content h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .download-content > p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.5rem;
    }

    .footer-logo {
        width: 36px;
        height: 36px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.82rem;
    }

    .btn-large {
        padding: 0.95rem 2rem;
        font-size: 0.88rem;
    }
}

/* --- Small Mobile (480px) --- */
@media (max-width: 480px) {
    .hero-section {
        padding: calc(var(--nav-height) + 1.5rem) 1rem 2rem;
    }

    .hero-name {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        letter-spacing: -1.5px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

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

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-divider {
        height: 24px;
    }

    .hero-stat-number {
        font-size: 0.95rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .section-container {
        padding: 0 1rem;
    }

    .section-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .screenshot-slide {
        flex: 0 0 140px;
    }

    .screenshot-phone {
        width: 140px;
        height: 290px;
    }

    .toolkit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .toolkit-item {
        padding: 1rem;
    }

    .toolkit-icon {
        width: 36px;
        height: 36px;
    }

    .safety-feature {
        font-size: 0.82rem;
        gap: 0.6rem;
    }

    .carousel-dots {
        display: none;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .tech-item {
        min-width: 110px;
        padding: 0.85rem 1rem;
    }
}

/* --- Extra Small (360px) --- */
@media (max-width: 360px) {
    .hero-name {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

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

    .phone-frame {
        width: 180px;
        height: 380px;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 0.92rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .privacy-text h3 {
        font-size: 1rem;
    }

    .privacy-text p {
        font-size: 0.82rem;
    }

    .toolkit-item h4 {
        font-size: 0.78rem;
    }

    .download-content h2 {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.78rem;
    }
}

