:root {
    --blue: #007AFF;
    --blue-light: #0A84FF;
    --blue-deep: #003F8A;
    --midnight: #0B1D3A;
    --midnight-light: #0F2647;
    --card: #1C1C1E;
    --card-border: #2A2A2E;
    --console-blue: #2C5F8A;
    --console-blue-light: #3A7BB8;
    --text: #E8ECF2;
    --text-muted: #8A94A6;
    --text-dim: #5A6478;
    --surface: #111318;
    --glow: rgba(0, 122, 255, 0.15);
    --glow-strong: rgba(0, 122, 255, 0.3);
    --radius: 8px;
    --radius-lg: 16px;
}

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

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

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
}

/* ------------------------------------------------
   Noise texture overlay
   ------------------------------------------------ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ------------------------------------------------
   Layout
   ------------------------------------------------ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ------------------------------------------------
   Header
   ------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(17, 19, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #fff;
    box-shadow: 0 0 20px var(--glow);
}

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #fff;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

.nav-cta {
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--blue-light);
    box-shadow: 0 0 24px var(--glow-strong);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-strong) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-accent {
    color: var(--blue-light);
}

.hero-sub {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
    background: var(--blue-light);
    box-shadow: 0 4px 32px var(--glow-strong);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* ------------------------------------------------
   Hero stat bar
   ------------------------------------------------ */
.hero-stat-bar {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 20px 36px;
    border-radius: var(--radius-lg);
    background: var(--midnight);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    letter-spacing: 0.02em;
}

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

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------
   Section utilities
   ------------------------------------------------ */
.section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 12px;
}

.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 56px;
}

/* ------------------------------------------------
   Features
   ------------------------------------------------ */
.features {
    padding: 100px 0 120px;
    position: relative;
    text-align: center;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.06) 70%, transparent);
}

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

.feature-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--card-border);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: var(--console-blue);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(44, 95, 138, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--midnight);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--blue-light);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card {
    text-align: left;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ------------------------------------------------
   Contact
   ------------------------------------------------ */
.contact {
    padding: 100px 0 120px;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.06) 70%, transparent);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 420px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
}

/* ------------------------------------------------
   Animations
   ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow,
    .hero h1,
    .hero-sub,
    .hero-actions,
    .hero-stat-bar {
        animation: fadeUp 0.7s ease-out both;
    }

    .hero-eyebrow { animation-delay: 0.05s; }
    .hero h1 { animation-delay: 0.12s; }
    .hero-sub { animation-delay: 0.2s; }
    .hero-actions { animation-delay: 0.28s; }
    .hero-stat-bar { animation-delay: 0.36s; }

    .feature-card {
        animation: fadeUp 0.6s ease-out both;
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
}

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

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 768px) {
    .hero {
        padding: 130px 0 72px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-stat-bar {
        gap: 20px;
        padding: 16px 24px;
    }

    .hero-stat-num {
        font-size: 18px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    nav a:not(.nav-cta) {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stat-bar {
        width: 100%;
        justify-content: center;
    }
}
