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

:root {
    --bg: #06070d;
    --surface: #0b0e17;
    --surface-2: #10141f;
    --surface-3: #151c2c;
    --border: #1c2438;
    --text: #d8e8ff;
    --text-muted: #5a72a0;
    --text-dim: #2e3d5a;
    --accent: #00cfff;
    --accent-hover: #33daff;
    --accent-glow: rgba(0, 207, 255, 0.18);
    --accent-dim: rgba(0, 207, 255, 0.06);
    --accent-border: rgba(0, 207, 255, 0.22);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =====================
   HEADER
   ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(6, 7, 13, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

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

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

.logo-canvas {
    flex-shrink: 0;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

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

/* =====================
   HERO
   ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 28px 100px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

/* Decorative hex shapes */
.hero-hex-dec {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid var(--accent-border);
    background: transparent;
    pointer-events: none;
}

.hex-dec-1 {
    width: 220px;
    height: 220px;
    top: 14%;
    right: 7%;
    background: var(--accent-dim);
    opacity: 0;
    animation: hex-pulse 9s ease-in-out 0.5s infinite;
}

.hex-dec-2 {
    width: 130px;
    height: 130px;
    bottom: 18%;
    left: 5%;
    background: var(--accent-dim);
    opacity: 0;
    animation: hex-pulse 7s ease-in-out 2s infinite;
}

.hex-dec-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 10%;
    background: var(--accent-dim);
    opacity: 0;
    animation: hex-pulse 11s ease-in-out 4s infinite;
}

@keyframes hex-pulse {
    0%, 100% { opacity: 0.04; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.14; transform: scale(1.06) rotate(4deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(44px, 7.5vw, 80px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 50px var(--accent-glow);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 44px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.1px;
}

.btn-primary {
    background: var(--accent);
    color: #06070d;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--accent-glow);
}

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

.btn-ghost:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

.btn-lg {
    padding: 16px 44px;
    font-size: 16px;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: scroll-blink 2s ease-in-out infinite;
}

.scroll-track {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-border), transparent);
}

@keyframes scroll-blink {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.8; }
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 0;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-num {
    font-size: 46px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.65;
    margin-left: 1px;
}

.stat-lbl {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 54px;
    background: var(--border);
    flex-shrink: 0;
}

/* =====================
   ABOUT
   ===================== */
.about {
    padding: 120px 0;
}

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

.visual-pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pillar-card:hover::after {
    transform: scaleX(1);
}

.pillar-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pillar-canvas {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: block;
}

.pillar-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.about-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.about-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}

/* =====================
   SERVICES
   ===================== */
.services {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.15;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 30px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-dim);
    transition: opacity 0.3s;
    opacity: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before,
.service-card.featured::before {
    opacity: 1;
}

.service-card:hover::after,
.service-card.featured::after {
    opacity: 1;
}

.service-card.featured {
    border-color: var(--accent-border);
    background: var(--surface-2);
}

.service-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-6px);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =====================
   PRINCIPLES
   ===================== */
.principles {
    padding: 100px 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--border);
}

.principle-item {
    background: var(--bg);
    padding: 46px 38px;
    transition: background 0.25s ease;
}

.principle-item:hover {
    background: var(--surface-2);
}

.principle-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s;
}

.principle-item:hover .principle-number {
    color: var(--accent);
    opacity: 0.35;
}

.principle-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.principle-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.82;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.cta-box {
    position: relative;
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
    background: var(--surface-2);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(0, 207, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-hex-left,
.cta-hex-right {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-dim);
    opacity: 0.5;
}

.cta-hex-left {
    width: 180px;
    height: 180px;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-hex-right {
    width: 140px;
    height: 140px;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

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

.cta-content h2 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 7px;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
}

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

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

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .stats-row {
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 130px;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 7, 13, 0.98);
        padding: 100px 28px 28px;
        gap: 6px;
        z-index: 99;
    }

    .nav.open .nav-link {
        font-size: 20px;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-hex-dec {
        display: none;
    }

    .section-title,
    .about-title {
        font-size: 28px;
    }

    .cta-box {
        padding: 50px 24px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-hex-left,
    .cta-hex-right {
        display: none;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .stat-num {
        font-size: 36px;
    }
}
