:root {
  color-scheme: dark;
  --navy-950: #030b17;
  --navy-900: #071426;
  --navy-850: #0b1b30;
  --navy-800: #10233b;
  --blue-600: #2563eb;
  --blue-500: #2f80ff;
  --sky-400: #38bdf8;
  --teal-500: #14b8a6;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #f8fbff;
  --border: rgba(148, 163, 184, .18);
  --panel: rgba(10, 28, 49, .74);
  --panel-strong: rgba(11, 30, 52, .94);
  --text: #f8fbff;
  --muted: #a9b7ca;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --page-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font: "Poppins", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="cloud"] {
  color-scheme: light;
  --navy-950: #edf4fb;
  --navy-900: #f8fbff;
  --navy-850: #ffffff;
  --navy-800: #dfeaf5;
  --slate-400: #52647a;
  --slate-300: #21354d;
  --white: #071426;
  --border: rgba(28, 64, 104, .15);
  --panel: rgba(255, 255, 255, .74);
  --panel-strong: rgba(255, 255, 255, .94);
  --text: #071426;
  --muted: #52647a;
  --shadow: 0 24px 80px rgba(34, 68, 110, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-950);
  padding: 10px 14px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  z-index: -3;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}
.ambient-one { top: -26rem; left: -15rem; background: var(--blue-600); }
.ambient-two { top: 22rem; right: -28rem; background: var(--teal-500); opacity: .12; }
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(148,163,184,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

.site-header,
.hero,
.services,
.contact-panel,
.site-footer {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--border);
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand img { width: 34px; height: 46px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { letter-spacing: .28em; font-size: 1.02rem; }
.brand-copy span { margin-top: 6px; color: var(--sky-400); letter-spacing: .34em; font-size: .62rem; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  padding: 9px 13px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.status-dot,
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 5px rgba(20,184,166,.12); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--slate-300);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.48); }
.theme-toggle svg { width: 18px; height: 18px; }
.moon-icon { display: none; }
html[data-theme="cloud"] .sun-icon { display: none; }
html[data-theme="cloud"] .moon-icon { display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(410px, .98fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: 690px;
  padding-block: 76px 90px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--sky-400);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.6;
}
.eyebrow span { color: var(--teal-500); }
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.35rem);
  letter-spacing: -.055em;
  line-height: .99;
}
h1 span {
  background: linear-gradient(100deg, var(--blue-500), var(--sky-400) 54%, var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.23rem);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border-radius: 12px;
  padding: 0 20px;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: linear-gradient(120deg, var(--blue-600), var(--blue-500)); color: white; box-shadow: 0 14px 35px rgba(37,99,235,.3); }
.button-primary:hover { box-shadow: 0 18px 42px rgba(37,99,235,.42); }
.button-secondary { border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.button-secondary:hover { border-color: rgba(56,189,248,.42); }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { width: 14px; color: var(--teal-500); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.28), rgba(56,189,248,.07) 48%, transparent 70%); filter: blur(8px); }
.visual-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(12,35,61,.93), rgba(5,17,31,.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
html[data-theme="cloud"] .visual-card { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(235,245,255,.9)); }
.visual-toolbar { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.visual-toolbar > span { width: 8px; height: 8px; border-radius: 50%; background: rgba(148,163,184,.38); }
.visual-toolbar p { margin: 0 0 0 9px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .68rem; }
.architecture { position: relative; min-height: 420px; }
.connectors { position: absolute; inset: 0; width: 100%; height: 100%; }
.connectors path { stroke: url(#lineGradient); stroke-width: 2; stroke-dasharray: 6 7; animation: dash 14s linear infinite; }
.connectors circle { fill: var(--sky-400); stroke: none; filter: drop-shadow(0 0 8px var(--sky-400)); }
@keyframes dash { to { stroke-dashoffset: -130; } }
.node,
.core-node {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(56,189,248,.18);
  background: rgba(8,25,44,.82);
  box-shadow: 0 12px 35px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--sky-400);
}
html[data-theme="cloud"] .node,
html[data-theme="cloud"] .core-node { background: rgba(255,255,255,.86); }
.node { width: 108px; height: 78px; border-radius: 16px; }
.node svg { width: 25px; height: 25px; }
.node span { color: var(--slate-300); font-size: .68rem; font-weight: 700; }
.node-app { top: 55px; left: 28px; }
.node-api { bottom: 48px; left: 28px; }
.node-data { top: 55px; right: 28px; }
.node-scale { bottom: 48px; right: 28px; }
.core-node { top: 50%; left: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); border-radius: 30px; background: linear-gradient(145deg, rgba(18,59,103,.98), rgba(7,26,47,.98)); }
html[data-theme="cloud"] .core-node { background: linear-gradient(145deg, white, #e9f3ff); }
.core-node img { width: 46px; height: 62px; object-fit: contain; filter: drop-shadow(0 7px 14px rgba(37,99,235,.32)); }
.core-node span { color: var(--text); font-size: .75rem; font-weight: 800; }
.visual-footer { display: flex; justify-content: space-between; gap: 16px; min-height: 50px; align-items: center; border-top: 1px solid var(--border); padding: 0 18px; color: var(--muted); font-size: .68rem; }
.visual-footer span:first-child { display: flex; align-items: center; gap: 9px; }

.services { padding: 95px 0 100px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 9px; }
h2 { margin: 0; max-width: 720px; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.045em; line-height: 1.08; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.42); background: var(--panel-strong); }
.service-card.featured::after { content: ""; position: absolute; inset: auto -20% -46% auto; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 66%); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(37,99,235,.12); color: var(--sky-400); }
.service-icon svg { width: 25px; height: 25px; }
.service-number { position: absolute; top: 30px; right: 28px; margin: 0; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .15em; }
.service-card h3 { margin: 48px 0 12px; font-size: 1.28rem; letter-spacing: -.02em; }
.service-card > p:last-child { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.75; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
  align-items: center;
  margin-bottom: 90px;
  border: 1px solid rgba(56,189,248,.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,.12), var(--panel) 42%, rgba(20,184,166,.08));
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.contact-panel h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.contact-panel > div > p:last-child { max-width: 640px; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.email-form label { display: block; margin-bottom: 9px; color: var(--slate-300); font-size: .76rem; font-weight: 750; }
.input-row { display: flex; border: 1px solid var(--border); border-radius: 14px; background: var(--navy-900); padding: 6px; transition: border-color .2s ease, box-shadow .2s ease; }
.input-row:focus-within { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(56,189,248,.1); }
.input-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 13px; }
.input-row input::placeholder { color: var(--muted); }
.input-row button { border: 0; border-radius: 10px; background: linear-gradient(120deg, var(--blue-600), var(--blue-500)); color: white; cursor: pointer; padding: 13px 16px; font-size: .83rem; font-weight: 800; }
.form-note,
.form-message { margin: 10px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.form-message { min-height: 1em; color: var(--sky-400); }
.form-message.error { color: #fb7185; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 105px; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
.footer-brand { justify-self: start; font-weight: 750; color: var(--text); }
.footer-brand img { width: 23px; height: 31px; object-fit: contain; }
.site-footer > p:nth-child(2) { justify-self: center; text-transform: uppercase; letter-spacing: .16em; }
.site-footer > p:nth-child(2) span { color: var(--sky-400); }
.site-footer > p:last-child { justify-self: end; }
.noscript { position: fixed; inset: auto 14px 14px; z-index: 50; border-radius: 10px; background: #fef3c7; color: #422006; padding: 12px; font-size: .8rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .hero-copy .intro { margin-inline: auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .hero-visual { min-height: 490px; }
  .visual-card { transform: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .services,
  .contact-panel,
  .site-footer { width: min(calc(100% - 28px), var(--page-width)); }
  .site-header { min-height: 78px; }
  .brand-copy strong { font-size: .85rem; }
  .brand-copy span { font-size: .53rem; }
  .status-badge { display: none; }
  .hero { padding-block: 48px 70px; gap: 30px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .eyebrow { font-size: .62rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-line { gap: 10px 16px; }
  .hero-visual { min-height: 370px; }
  .visual-card { border-radius: 20px; }
  .architecture { min-height: 325px; }
  .node { width: 82px; height: 66px; }
  .node-app, .node-api { left: 15px; }
  .node-data, .node-scale { right: 15px; }
  .node-app, .node-data { top: 35px; }
  .node-api, .node-scale { bottom: 35px; }
  .core-node { width: 105px; height: 105px; border-radius: 24px; }
  .core-node img { width: 38px; height: 50px; }
  .visual-footer span:last-child { display: none; }
  .services { padding-block: 75px; }
  .section-heading { display: block; }
  .service-card { padding: 24px; }
  .contact-panel { margin-bottom: 65px; padding: 28px 20px; }
  .input-row { display: grid; gap: 7px; }
  .input-row input { min-height: 46px; }
  .input-row button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; padding-block: 25px; text-align: center; }
  .footer-brand, .site-footer > p:nth-child(2), .site-footer > p:last-child { justify-self: center; margin: 0; }
}

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