:root {
  --bg: #090a0f;
  --bg-2: #0e1018;
  --panel: rgba(255,255,255,.055);
  --panel-2: rgba(255,255,255,.08);
  --text: #f7f8fb;
  --muted: #9ea5b5;
  --line: rgba(255,255,255,.11);
  --accent: #7c6cff;
  --accent-2: #3fe7c4;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
}

body.light {
  --bg: #f7f8fb;
  --bg-2: #eef0f7;
  --panel: rgba(10,12,20,.05);
  --panel-2: rgba(10,12,20,.08);
  --text: #10131b;
  --muted: #656d7f;
  --line: rgba(10,12,20,.10);
  --shadow: 0 30px 70px rgba(38,43,65,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, rgba(124,108,255,.14), transparent 28%),
    radial-gradient(circle at 10% 35%, rgba(63,231,196,.07), transparent 22%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,255,.11), transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #a66dff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124,108,255,.25);
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--text); }

.theme-btn, .menu-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
}

.theme-btn {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.menu-btn { display: none; width: 42px; height: 42px; padding: 0 11px; }
.menu-btn span { display: block; height: 1px; background: var(--text); margin: 7px 0; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
  padding-block: 80px;
}

.eyebrow, .kicker, .mini-label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(63,231,196,.08);
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(54px, 7vw, 92px);
  line-height: .95;
  margin-top: 24px;
  max-width: 800px;
}

.gradient-text {
  background: linear-gradient(90deg, #a996ff, #52e6cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin: 28px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #7665ff, #8b6df5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 45px rgba(124,108,255,.22);
}
.btn-ghost { background: var(--panel); }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 44px;
}

.hero-proof > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-proof strong {
  font-family: "Space Grotesk";
  font-size: 23px;
}

.hero-proof small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.orb-a {
  width: 310px;
  height: 310px;
  background: rgba(124,108,255,.22);
  top: 35px;
  right: 5px;
}
.orb-b {
  width: 220px;
  height: 220px;
  background: rgba(63,231,196,.12);
  bottom: 20px;
  left: 20px;
}

.dashboard-card {
  width: min(100%, 520px);
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.dash-top h3 { font-size: 25px; margin-top: 7px; }
.mini-label { color: var(--muted); }
.status-pill {
  font-size: 10px;
  font-weight: 800;
  color: #65f5d4;
  border: 1px solid rgba(63,231,196,.25);
  background: rgba(63,231,196,.07);
  border-radius: 999px;
  padding: 7px 10px;
}

.chart {
  height: 200px;
  margin-top: 35px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(124,108,255,.08), transparent);
}
.grid-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.g1 { top: 25%; }.g2 { top: 50%; }.g3 { top: 75%; }

.chart svg { width: 100%; height: 100%; position: relative; z-index: 2; }
.chart-line {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(124,108,255,.45));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.4s ease forwards .4s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 18px;
}
.mini-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.mini-card strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.35;
}

.floating-tag {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
}
.tag-one { left: -12px; top: 90px; }
.tag-two { right: -8px; bottom: 105px; }

.marquee-section {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 28px;
  padding: 16px 0;
  min-width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-block: 130px; }
.section-head { margin-bottom: 54px; max-width: 820px; }
.kicker { color: var(--accent-2); display: inline-block; margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
}
.section-note {
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}
.about-copy, .about-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  background: var(--panel);
}
.about-copy p {
  color: var(--muted);
  line-height: 1.8;
}
.about-copy .lead {
  color: var(--text);
  font-size: 23px;
  line-height: 1.5;
  margin-top: 0;
}
.about-panel {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 100% 0, rgba(124,108,255,.18), transparent 38%),
    var(--panel);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: .8;
  color: var(--accent);
}
.about-panel p {
  font-family: "Space Grotesk";
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.signature { color: var(--muted); font-size: 13px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-card {
  padding: 30px;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,108,255,.42);
  background: var(--panel-2);
}
.service-no { color: var(--muted); font-size: 12px; }
.service-card h3 { font-size: 30px; margin-top: 32px; }
.service-card p { color: var(--muted); line-height: 1.7; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.service-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 10px;
  color: var(--muted);
}

.projects { display: grid; gap: 18px; }
.project {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  background:
    linear-gradient(120deg, rgba(124,108,255,.08), transparent 45%),
    var(--panel);
}
.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-type { color: var(--accent-2); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.project-arrow { font-size: 28px; }
.project h3 { font-size: clamp(30px, 4vw, 52px); margin-top: 42px; }
.project > p { max-width: 760px; color: var(--muted); line-height: 1.75; }
.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.project-metrics div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.project-metrics span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.project-metrics strong { display: block; margin-top: 7px; font-size: 13px; }

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-cloud span {
  font-family: "Space Grotesk";
  font-size: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--panel);
  transition: .22s;
}
.stack-cloud span:hover {
  border-color: rgba(124,108,255,.45);
  transform: translateY(-3px);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  background:
    radial-gradient(circle at 10% 15%, rgba(124,108,255,.14), transparent 35%),
    var(--panel);
}
.contact-card h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.contact-card p { color: var(--muted); line-height: 1.7; max-width: 540px; }
.contact-link { display: inline-block; margin-top: 18px; font-weight: 800; }

.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 12px; color: var(--muted); font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  transition: .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(124,108,255,.5); }
.full { width: 100%; }
.form-status { min-height: 20px; margin: 0; font-size: 12px; }

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    padding: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 13px; }
  .menu-btn { display: block; margin-left: auto; margin-right: 8px; }

  .hero,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 70px; gap: 20px; }
  .hero-visual { min-height: 470px; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav { height: 68px; }
  h1 { font-size: 48px; }
  .hero { min-height: auto; padding-block: 60px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-visual { min-height: 410px; }
  .dashboard-card { padding: 18px; min-height: 380px; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini-card:nth-child(2),
  .mini-card:nth-child(3) { display: none; }
  .tag-one { left: 0; top: 48px; }
  .tag-two { right: 0; bottom: 38px; }
  .section { padding-block: 90px; }
  .section-head { margin-bottom: 34px; }
  .about-copy, .about-panel, .service-card, .project, .contact-card { padding: 24px; }
  .project-metrics { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
