:root {
    --ink: #05050a;
    --paper: #f5f2eb;
    --paper-alt: #ede9df;
    --accent: #0a3bff;
    --accent-warm: #ff4d1c;
    --muted: #8a8070;
    --border: rgba(5,5,10,0.12);
    --card-bg: rgba(255,255,255,0.6);
    --glow: rgba(10,59,255,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    cursor: none;
}

.cursor { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: transform 0.15s ease, background 0.2s ease; mix-blend-mode: multiply; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transition: all 0.12s ease; mix-blend-mode: multiply; }

body::after { content: ''; position: fixed; inset: 0; 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)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9000; opacity: 0.4; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(245,242,235,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-cta { padding: 10px 22px; background: var(--ink); color: var(--paper) !important; border-radius: 6px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px !important; letter-spacing: 0.02em !important; text-transform: none !important; transition: background 0.2s, transform 0.2s !important; }
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* HERO */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding-top: 72px; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 80px 64px 80px 48px; border-right: 1px solid var(--border); position: relative; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 40px; }
.hero-headline em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.hero-sub { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 440px; margin-bottom: 56px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { padding: 16px 36px; background: var(--ink); color: var(--paper); border: none; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.25s; letter-spacing: -0.01em; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px var(--glow); }
.btn-ghost { padding: 16px 36px; background: transparent; color: var(--ink); border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.25s; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(5,5,10,0.04); }
.hero-stats { position: absolute; bottom: 60px; left: 48px; display: flex; gap: 20px; }
.stat-pill { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; backdrop-filter: blur(10px); }
.stat-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero-right { position: relative; overflow: hidden; background: var(--paper-alt); }
.hero-canvas-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#neuralNetwork { cursor: crosshair; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.5; pointer-events: none; }

/* SOCIAL STRIP */
.social-strip { background: var(--paper-alt); border-bottom: 1px solid var(--border); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.social-strip-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.social-links { display: flex; gap: 12px; align-items: center; }
.social-link { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 12px; font-family: 'Syne', sans-serif; font-weight: 600; letter-spacing: 0.02em; transition: all 0.2s; background: var(--card-bg); }
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow); }
.social-link svg { width: 16px; height: 16px; }

/* MARQUEE */
.marquee-band { height: 56px; background: var(--ink); overflow: hidden; display: flex; align-items: center; white-space: nowrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; gap: 0; animation: marqueeMove 22s linear infinite; }
.marquee-item { padding: 0 32px; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); display: flex; align-items: center; gap: 24px; }
.marquee-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ABOUT */
.about { display: grid; grid-template-columns: 5fr 7fr; border-bottom: 1px solid var(--border); }
.about-left { padding: 96px 48px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.section-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--muted); }
.about-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 3.5vw, 3.6rem); line-height: 1.0; letter-spacing: -0.03em; }
.about-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.about-big-stat { margin-top: 64px; }
.big-number { font-family: 'Syne', sans-serif; font-size: clamp(4rem, 7vw, 7rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.big-number span { color: var(--accent); }
.big-label { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
.about-right { padding: 96px 64px; }
.about-body { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 540px; margin-bottom: 56px; }
.about-body strong { color: var(--ink); font-weight: 500; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.pillar:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px var(--glow); }
.pillar-icon { width: 40px; height: 40px; background: rgba(10,59,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pillar-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.pillar h4 { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.pillar p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* SERVICES */
.services { padding: 0; }
.services-header { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.services-header-left { padding: 80px 48px; border-right: 1px solid var(--border); }
.services-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.4rem, 3.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.0; }
.services-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.services-header-right { padding: 80px 64px; display: flex; align-items: center; }
.services-intro { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 480px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service-card { padding: 56px 48px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background 0.3s; position: relative; overflow: hidden; }
.service-card:nth-child(even) { border-right: none; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,59,255,0.04), transparent); opacity: 0; transition: opacity 0.3s; }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-num { color: var(--accent); }
.service-num { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 36px; transition: color 0.3s; }
.service-icon-wrap { width: 56px; height: 56px; border: 1.5px solid var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; transition: all 0.3s; background: var(--card-bg); }
.service-card:hover .service-icon-wrap { border-color: var(--accent); background: rgba(10,59,255,0.06); }
.service-icon-wrap svg { width: 26px; height: 26px; stroke: var(--ink); transition: stroke 0.3s; }
.service-card:hover .service-icon-wrap svg { stroke: var(--accent); }
.service-card h3 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.service-card p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.service-tag { display: inline-block; margin-top: 28px; padding: 6px 14px; background: rgba(5,5,10,0.06); border-radius: 20px; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }

/* CONTACT */
.contact-section { display: grid; grid-template-columns: 5fr 7fr; border-top: 1px solid var(--border); }
.contact-left { padding: 96px 48px; border-right: 1px solid var(--border); background: var(--ink); color: var(--paper); }
.contact-left .section-label { color: rgba(245,242,235,0.4); }
.contact-left .section-label::before { background: rgba(245,242,235,0.4); }
.contact-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 3vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 32px; }
.contact-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.contact-desc { font-size: 14px; line-height: 1.75; color: rgba(245,242,235,0.55); margin-bottom: 56px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(245,242,235,0.1); font-size: 13px; color: rgba(245,242,235,0.7); }
.contact-info-item svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }
.contact-right { padding: 96px 64px; }
.contact-right h2 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 18px; background: var(--paper-alt); border: 1.5px solid var(--border); border-radius: 8px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 14px; transition: all 0.2s; appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 4px rgba(10,59,255,0.08); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; display: none; animation: slideDown 0.3s ease; }
.alert.show { display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #059669; }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #dc2626; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.loading-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.submit-btn { width: 100%; padding: 18px; background: var(--ink); color: var(--paper); border: none; border-radius: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.submit-btn:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px var(--glow); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* FOOTER */
footer { background: var(--ink); color: var(--paper); padding: 64px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(245,242,235,0.1); margin-bottom: 32px; }
.footer-brand .footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--paper); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { font-size: 13px; color: rgba(245,242,235,0.45); line-height: 1.6; margin-bottom: 24px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-btn { width: 36px; height: 36px; border: 1px solid rgba(245,242,235,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(245,242,235,0.5); text-decoration: none; transition: all 0.2s; }
.footer-social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-social-btn svg { width: 16px; height: 16px; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,242,235,0.4); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(245,242,235,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(245,242,235,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(245,242,235,0.45); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--paper); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,5,10,0.75); backdrop-filter: blur(6px); z-index: 9100; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--paper); border-radius: 16px; max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto; border: 1px solid var(--border); transform: translateY(20px); transition: transform 0.3s; position: relative; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 36px 40px 24px; display: flex; justify-content: space-between; align-items: flex-start; position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--border); z-index: 1; }
.modal-header h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.modal-header p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-close { background: none; border: 1px solid var(--border); cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); flex-shrink: 0; transition: all 0.2s; }
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-body { padding: 32px 40px 40px; }
.modal-body h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 28px 0 10px; color: var(--ink); }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { font-size: 13px; line-height: 1.75; color: var(--muted); margin-bottom: 12px; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.modal-body ul li { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 6px; }

/* MOBILE */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--paper); padding: 24px; border-bottom: 1px solid var(--border); gap: 16px; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { height: 360px; }
    .hero-left { padding: 64px 24px 200px; }
    .hero-stats { left: 24px; bottom: 40px; flex-wrap: wrap; }
    .social-strip { padding: 16px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .social-links { flex-wrap: wrap; }
    .about { grid-template-columns: 1fr; }
    .about-left { border-right: none; border-bottom: 1px solid var(--border); padding: 64px 24px; }
    .about-right { padding: 64px 24px; }
    .pillars { grid-template-columns: 1fr; }
    .services-header { grid-template-columns: 1fr; }
    .services-header-left { border-right: none; border-bottom: 1px solid var(--border); padding: 64px 24px; }
    .services-header-right { padding: 48px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; }
    .contact-section { grid-template-columns: 1fr; }
    .contact-left { border-right: none; border-bottom: 1px solid rgba(245,242,235,0.1); padding: 64px 24px; }
    .contact-right { padding: 64px 24px; }
    .form-row { grid-template-columns: 1fr; }
    footer { padding: 48px 24px 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .modal-body { padding: 24px; }
    .modal-header { padding: 24px 24px 20px; }
}