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

:root {
    --bg: #070710;
    --bg-2: #0d0d1a;
    --bg-3: #121220;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.13);
    --text: #eeeef5;
    --text-muted: #6e6e88;
    --text-dim: #3a3a55;
    --accent: #7c6fff;
    --accent-dim: rgba(124,111,255,0.12);
    --accent-glow: rgba(124,111,255,0.22);
    --teal: #2dd4a0;
    --teal-dim: rgba(45,212,160,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(7,7,16,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

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

.logo-img {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img img {
    display: block;
}

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

.logo-icon {
    display: block;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.btn-nav {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(124,111,255,0.28) !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-sm) !important;
    transition: background 0.2s, border-color 0.2s !important;
}

.btn-nav:hover {
    background: rgba(124,111,255,0.2) !important;
    border-color: rgba(124,111,255,0.45) !important;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    padding: 160px 0 130px;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}

#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-dim);
    border: 1px solid rgba(45,212,160,0.2);
    color: var(--teal);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 2rem;
    letter-spacing: 0.2px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: badge-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.8px;
    color: var(--text);
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(95deg, var(--accent) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    font-family: var(--font);
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* ─── SECTION LABELS ─── */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

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

.services h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 3rem;
    max-width: 500px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}

.card {
    background: var(--bg-2);
    padding: 2rem;
    transition: background 0.25s;
}

.card:hover {
    background: var(--bg-3);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.2px;
}

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

/* ─── ABOUT ─── */
.about {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 15px;
    font-weight: 300;
}

.about-text .btn-primary {
    margin-top: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
}

.stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ─── CONTACT ─── */
.contact {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

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

.contact-link-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-dim);
    border: 1px solid rgba(124,111,255,0.18);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-link-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* ─── FORM ─── */
.form-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.2px;
    font-family: var(--font-mono);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(124,111,255,0.5);
    background: rgba(124,111,255,0.04);
}

.form-group input.error,
.form-group textarea.error {
    border-color: rgba(220, 80, 80, 0.55);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e88' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-2);
    color: var(--text);
}

.btn-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 13px 28px;
    font-size: 15px;
}

.form-consent {
    margin-bottom: 1.25rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
    background-color: #fff;
    border: 1px solid var(--border-hover);
    border-radius: 3px;
}

.consent-label span {
    padding-top: 1px;
}

.consent-label a {
    color: var(--accent);
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}

.form-note {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 0.85rem;
    text-align: center;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.2s;
}

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


    font-size: 12px;
    color: var(--text-dim);
    margin-top: 0.85rem;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-icon {
    width: 52px;
    height: 52px;
    background: rgba(45,212,160,0.12);
    border: 1px solid rgba(45,212,160,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--teal);
}

.success-icon svg {
    width: 26px;
    height: 26px;
}

.form-success strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── LEGAL PAGES ─── */
.legal-page {
    padding: 120px 0 100px;
    min-height: 80vh;
}

.legal-inner {
    max-width: 720px;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
}

.legal-date {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
}

.legal-body h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.legal-body ul {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.75;
}

.legal-body ul li {
    margin-bottom: 0.35rem;
}

.legal-body a {
    color: var(--accent);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

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

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

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

/* ─── FADE IN ─── */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links li:not(:last-child) {
        display: none;
    }

    .hero {
        padding: 120px 0 90px;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
