:root {
  --bg: #090A0F;
  --panel: #111318;
  --panel-2: #0E1015;
  --text: #F7F8FC;
  --muted: #9297A6;
  --line: rgba(255,255,255,.10);
  --blue: #2563FF;
  --indigo: #5B5FF5;
  --violet: #7C3AED;
  --cyan: #22D3EE;
  --magenta: #D946EF;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(91,95,245,.12), transparent 28%),
    var(--bg);
  font-family: 'Poppins', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection { background: rgba(91,95,245,.38); color: white; }
a { color: inherit; text-decoration: none; }

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -4;
  opacity: .40;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .025;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
  z-index: -3;
}
.orb-a { background: var(--blue); top: 6%; right: -220px; animation: driftA 12s ease-in-out infinite alternate; }
.orb-b { background: var(--violet); bottom: 5%; left: -260px; animation: driftB 15s ease-in-out infinite alternate; }

@keyframes driftA { to { transform: translate(-90px, 120px) scale(1.12); } }
@keyframes driftB { to { transform: translate(120px, -90px) scale(.9); } }

.nav-shell {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 22px;
}
.nav {
  max-width: var(--max);
  margin: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,11,16,.62);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: -.2px; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #C7CBD5; }
.nav-links > a:not(.nav-cta) { transition: color .2s ease; }
.nav-links > a:not(.nav-cta):hover { color: white; }
.nav-cta {
  padding: 11px 16px;
  border-radius: 12px;
  background: white;
  color: #090A0F;
  font-weight: 500;
}
.menu { display: none; background: none; border: 0; width: 38px; height: 38px; position: relative; }
.menu span { position: absolute; width: 18px; height: 1px; background: white; left: 10px; transition: transform .25s ease, top .25s ease; }
.menu span:first-child { top: 15px; }
.menu span:last-child { top: 22px; }
.menu.active span:first-child { top: 19px; transform: rotate(45deg); }
.menu.active span:last-child { top: 19px; transform: rotate(-45deg); }

.section-pad { max-width: var(--max); margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.hero {
  min-height: 100svh;
  padding-top: 155px;
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  position: relative;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .17em; font-size: 11px; color: #AAB0BD; margin-bottom: 24px; }
.eyebrow span { width: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 14px var(--indigo); }
.hero h1 {
  font-size: clamp(58px, 7.2vw, 104px);
  letter-spacing: -.065em;
  line-height: .92;
  margin: 0;
  font-weight: 500;
}
.hero h1 span {
  background: linear-gradient(100deg, #F8FBFF 0%, #9DCFFF 33%, #7A78FF 65%, #D25AF1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.8; margin: 30px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; font-size: 13px; border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.button.primary { background: white; color: #090A0F; font-weight: 500; border-color: white; box-shadow: 0 10px 40px rgba(255,255,255,.08); }
.button.primary span { font-size: 15px; }
.button.ghost { background: rgba(255,255,255,.025); color: #C7CBD5; }

.hero-visual { display: flex; justify-content: center; align-items: center; min-height: 520px; perspective: 1000px; }
.logo-stage {
  width: min(460px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}
.hero-logo {
  width: 72%;
  height: 72%;
  object-fit: cover;
  border-radius: 25%;
  filter: drop-shadow(0 0 34px rgba(67,126,255,.22)) drop-shadow(0 0 55px rgba(124,58,237,.12));
  animation: floatLogo 5s ease-in-out infinite;
  position: relative;
  z-index: 3;
  mix-blend-mode: screen;
}
.halo { position: absolute; width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,255,.22), rgba(124,58,237,.08) 35%, transparent 70%); filter: blur(20px); animation: pulseHalo 4s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(132,145,255,.12); }
.ring-1 { inset: 14%; animation: spin 22s linear infinite; }
.ring-2 { inset: 5%; border-style: dashed; border-color: rgba(34,211,238,.10); animation: spinReverse 30s linear infinite; }
.ring-3 { inset: 24%; border-color: rgba(217,70,239,.10); animation: spin 16s linear infinite; }
.ring::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); top: -3px; left: 50%; box-shadow: 0 0 16px var(--cyan); }
.ring-3::after { background: var(--magenta); box-shadow: 0 0 16px var(--magenta); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes floatLogo { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes pulseHalo { 0%,100% { transform: scale(.92); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-bottom { grid-column: 1/-1; align-self: end; display: flex; justify-content: space-between; align-items: center; color: #7F8492; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 28px; }
.status { display: flex; align-items: center; gap: 9px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #55E6A5; box-shadow: 0 0 14px rgba(85,230,165,.65); }
.scroll-hint span { display: inline-block; margin-left: 8px; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.services { padding-top: 120px; padding-bottom: 130px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: #767C8B; margin-bottom: 26px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  min-height: 340px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s ease, background .3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,95,245,.18), transparent 70%);
  top: -75px;
  right: -70px;
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover { border-color: rgba(111,122,255,.28); background: linear-gradient(155deg, rgba(91,95,245,.09), rgba(255,255,255,.018)); }
.service-card:hover::before { opacity: 1; }
.service-index { color: #656B79; font-size: 11px; }
.service-card h2 { font-size: 26px; margin: 0 0 14px; font-weight: 500; letter-spacing: -.035em; }
.service-card p { color: #8E94A2; font-size: 13px; line-height: 1.8; margin: 0; }
.service-arrow { position: absolute; right: 24px; top: 22px; color: #8F96A6; transition: transform .25s ease, color .25s ease; }
.service-card:hover .service-arrow { transform: translate(3px,-3px); color: #CAD0FF; }

.manifesto { padding-top: 95px; padding-bottom: 130px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.big-copy { font-size: clamp(54px, 7vw, 94px); line-height: .98; letter-spacing: -.06em; margin: 0; font-weight: 500; }
.big-copy span { color: #777E8D; }
.manifesto-note { max-width: 250px; color: #7E8491; font-size: 12px; line-height: 1.7; }
.manifesto-note em { color: #B9BECA; font-style: normal; }

.process { padding-top: 80px; padding-bottom: 140px; }
.process-line { display: grid; grid-template-columns: 1fr .35fr 1fr .35fr 1fr; align-items: center; border-top: 1px solid var(--line); padding-top: 30px; }
.process-step span { font-size: 10px; color: #646A78; }
.process-step h3 { font-size: 22px; font-weight: 500; margin: 44px 0 6px; }
.process-step p { font-size: 12px; color: #787E8D; margin: 0; }
.connector { height: 1px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; margin: 35px 20px 0; }
.connector i { position: absolute; height: 100%; width: 34%; left: -34%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: travel 3.2s ease-in-out infinite; }
@keyframes travel { 0% { left: -34%; } 70%,100% { left: 100%; } }

.contact { padding-top: 70px; padding-bottom: 80px; }
.contact-panel {
  min-height: 420px;
  border-radius: 30px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 82% 18%, rgba(37,99,255,.18), transparent 23%),
    radial-gradient(circle at 74% 52%, rgba(124,58,237,.10), transparent 28%),
    linear-gradient(145deg, #101219, #0A0B10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.contact-panel::after { content: ''; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(132,145,255,.08); border-radius: 50%; right: -115px; top: -170px; box-shadow: 0 0 0 65px rgba(132,145,255,.02), 0 0 0 130px rgba(132,145,255,.015); }
.contact h2 { position: relative; z-index: 2; font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; margin: 0; }
.contact-button { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; width: min(520px, 100%); padding: 18px 20px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(255,255,255,.04); backdrop-filter: blur(15px); font-size: 13px; color: #D8DBE3; transition: background .25s ease, border-color .25s ease; }
.contact-button:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.contact-button b { font-size: 18px; font-weight: 400; }

footer { max-width: var(--max); margin: 0 auto; padding: 22px 26px 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #656B78; font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #A2A7B4; }
.footer-brand img { width: 26px; height: 26px; object-fit: cover; border-radius: 7px; }
.footer-copy { text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; }
.footer-links a:hover { color: #C9CED8; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

.mobile-drawer { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .mobile-drawer { position: fixed; inset: 98px 22px auto 22px; background: rgba(13,15,21,.94); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 12px; z-index: 99; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .22s ease; display: grid; }
  .mobile-drawer.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-drawer a { padding: 15px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: #C6CBD6; font-size: 13px; }
  .mobile-drawer a:last-child { border-bottom: 0; color: white; }
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { text-align: left; }
  .hero-visual { min-height: 380px; margin-top: 26px; }
  .logo-stage { width: min(390px, 78vw); }
  .hero-bottom { margin-top: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .manifesto { align-items: start; flex-direction: column; }
  .process-line { grid-template-columns: 1fr; gap: 32px; }
  .connector { display: none; }
  .process-step h3 { margin-top: 18px; }
  footer { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .footer-copy { text-align: right; }
  .footer-links { grid-column: 1/-1; justify-self: start; }
}

@media (max-width: 560px) {
  .nav-shell { top: 10px; padding: 0 12px; }
  .nav { height: 60px; border-radius: 16px; }
  .brand span { font-size: 13px; }
  .brand img { width: 34px; height: 34px; }
  .section-pad { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 118px; }
  .hero h1 { font-size: clamp(54px, 17vw, 80px); }
  .hero p { font-size: 14px; line-height: 1.75; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .hero-visual { min-height: 320px; }
  .hero-bottom { font-size: 9px; }
  .scroll-hint { display: none; }
  .services { padding-top: 85px; padding-bottom: 95px; }
  .manifesto { padding-top: 80px; padding-bottom: 95px; }
  .process { padding-bottom: 95px; }
  .contact { padding-top: 25px; }
  .contact-panel { min-height: 360px; padding: 28px 22px; border-radius: 22px; }
  .contact h2 { font-size: 43px; }
  .contact-button { font-size: 12px; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
