:root {
  --bg: #0b1020;
  --bg-alt: #111831;
  --surface: #161f3d;
  --border: #26315a;
  --text: #e8ecf8;
  --muted: #9aa5c8;
  --accent: #4f8cff;
  --accent-2: #22d3a6;
  --radius: 14px;
  --max: 1120px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 32, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none;
  font-weight: 600; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3c7af0; }
.btn-ghost { border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { font-size: 1.1rem; padding: 14px 28px; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(79,140,255,.18), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(34,211,166,.12), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 56px; align-items: center; }
.hero-inner > :not(.stack-diagram) { grid-column: 1; }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.stack-diagram {
  grid-column: 2; grid-row: 1 / span 4;
  position: relative; display: flex; flex-direction: column; gap: 14px; padding-right: 64px;
}
.layer {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  background: var(--surface); font-weight: 600; letter-spacing: .02em;
}
.layer span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }
.layer-cloud span::before { background: #7aa7ff; }
.layer-win span::before { background: #4f8cff; }
.layer-emb span::before { background: #2f6be0; }
.layer-cloud { margin-left: 0; }
.layer-win { margin-left: 18px; }
.layer-emb { margin-left: 36px; }
.ai-rail {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; font-weight: 800; color: #06121f;
}
.ai-rail span { writing-mode: vertical-rl; letter-spacing: .3em; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 46em; font-size: 1.05rem; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card p { color: var(--muted); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(79,140,255,.14);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split p { color: var(--muted); font-size: 1.05rem; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ai-list li {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-2);
  border-radius: 10px; padding: 16px 18px; display: grid; gap: 4px;
}
.ai-list span { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { border-top: 2px solid var(--border); padding-top: 18px; }
.steps li:hover { border-top-color: var(--accent); }
.step-no { color: var(--accent); font-weight: 700; font-size: .9rem; display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

.contact { text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(79,140,255,.18), transparent 70%); }
.contact-inner p { color: var(--muted); max-width: 36em; margin: 0 auto 28px; font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .stack-diagram { grid-column: 1; grid-row: auto; margin-top: 32px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
