:root {
  --navy:    #0a1628;
  --navy2:   #0d1f3c;
  --blue:    #1a3a6e;
  --accent:  #4da6ff;
  --accent2: #00d4aa;
  --white:   #e8edf5;
  --muted:   #6a8ab0;
  --border:  rgba(77,166,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Mono', monospace;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  margin:0;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 12px; height: 12px; background: var(--accent);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 36px; height: 36px; border: 1px solid var(--accent);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: all .12s ease;
  opacity: .5;
}
body:has(a:hover) .cursor { width: 20px; height: 20px; background: var(--accent2); }
body:has(a:hover) .cursor-ring { width: 56px; height: 56px; border-color: var(--accent2); }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  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='1'/%3E%3C/svg%3E");
  opacity: .03;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  backdrop-filter: blur(12px);
  background: rgba(10,22,40,.7);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: .08em; color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); padding: 10px 24px;
  text-decoration: none; transition: all .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--navy); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 60px 80px;
  overflow: hidden;
}

/* animated code bg */
.code-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .18;
}
.code-line {
  position: absolute; white-space: nowrap; font-size: .72rem;
  color: var(--accent); opacity: 0;
  animation: scrollCode linear infinite;
}
@keyframes scrollCode {
  0%   { transform: translateX(100vw); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateX(-120%); opacity: 0; }
}

/* radial glow */
.hero-glow {
  position: absolute; top: 50%; left: 55%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(77,166,255,.18) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; padding-bottom: 20vh;}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700; line-height: .95;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 32px;
}
h1 .dot { color: var(--accent); }
h1 .line2 {
  display: block; color: var(--muted); font-size: .55em;
  font-weight: 400; letter-spacing: .04em; margin-top: 16px;
}

.hero-desc {
  font-size: .9rem; line-height: 1.9; color: var(--muted);
  max-width: 480px; margin-bottom: 52px;
}

/* .hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; } */

.btn-primary {
  font-family: 'Space Mono', monospace;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--navy);
  padding: 18px 40px; text-decoration: none;
  font-weight: 700; transition: all .25s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent2); transform: translateX(-101%);
  transition: transform .3s ease;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s;
}
.btn-secondary::after { content: '→'; transition: transform .2s; }
.btn-secondary:hover { color: var(--white); }
.btn-secondary:hover::after { transform: translateX(4px); }

/* stats strip */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; border-top: 1px solid var(--border);
  z-index: 1;
}
.stat {
  flex: 1; padding: 28px 48px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--white); letter-spacing: -.02em;
}
.stat-num .stat-count {
    color: var(--white);
}

.stat-num .stat-suffix {
    color: var(--accent);
}
.stat-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* ── SERVICES ── */
#services {
  padding: 120px 60px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 72px;
}
.section-tag {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: '//'; }

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -.02em;
  line-height: 1.05;
}
.section-sub {
  font-size: .8rem; color: var(--muted);
  max-width: 280px; line-height: 1.8; text-align: right;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.service-card {
  background: var(--navy);
  padding: 52px 44px;
  transition: background .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { background: var(--navy2); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-size: .65rem; letter-spacing: .2em; color: var(--accent);
  margin-bottom: 28px;
}
.service-icon { font-size: 2rem; margin-bottom: 24px; }
.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}
.service-desc { font-size: .78rem; color: var(--muted); line-height: 1.9; }

/* ── PROCESS ── */
#process {
  padding: 120px 60px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 72px; border: 1px solid var(--border);
}
.process-step {
  padding: 48px 36px; border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 4rem; font-weight: 700;
  color: var(--border); line-height: 1; margin-bottom: 20px;
}
.step-title {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  margin-bottom: 12px; color: var(--accent);
}
.step-desc { font-size: .74rem; color: var(--muted); line-height: 1.9; }

/* ── CTA ── */
#cta {
  padding: 120px 60px;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  position: relative; z-index: 1; overflow: hidden; text-align: center;
}
#cta::before {
  content: 'DEVART.';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(6rem, 18vw, 18rem);
  color: rgba(77,166,255,.04);
  white-space: nowrap; pointer-events: none;
  letter-spacing: -.04em;
}
.cta-tag {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px; display: block;
}
#cta h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px;
}
#cta p {
  font-size: .85rem; color: var(--muted); margin-bottom: 52px;
  max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.9;
}
.cta-email {
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.cta-email:hover { color: var(--accent2); border-color: var(--accent2); }

/* ── FOOTER ── */
footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem; letter-spacing: .08em;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: .68rem; color: var(--muted); letter-spacing: .1em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    nav {
        padding: 20px 28px;
    }

    .nav-links {
        display: none;
    }

    #hero {
        min-height: 100vh;
        padding: 120px 28px 0;
    }

    .hero-content {
        padding-bottom: 0;
    }

    .hero-stats {
        flex-direction: row;
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: relative;
        margin-top: auto;
    }

    .stat {
        padding: 20px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .stat:nth-child(2n) {
        border-right: none;
    }

    #services,
    #process,
    #cta {
        padding: 80px 28px;
    }

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

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

    .process-step {
        border-bottom: 1px solid var(--border);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-sub {
        text-align: left;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-ring {
        display: none;
    }

    #hero {
        min-height: 100vh;
        min-height: 100svh;
        height: 100svh;
        padding: 110px 24px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-content {
        padding: 0;
        margin-top: auto;
        margin-bottom: auto;
    }

    h1 {
        font-size: clamp(3rem, 12vw, 5rem);
        margin-bottom: 24px;
    }

    .hero-desc {
        font-size: 0.8rem;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .hero-stats {
        flex: none;
        margin-top: 20px;
    }

    .stat {
        padding: 16px 12px;
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
}