:root {
  color-scheme: dark;
  --bg: #03050a;
  --bg-raised: #090d16;
  --surface: rgba(13, 18, 31, 0.82);
  --surface-strong: #101827;
  --line: rgba(159, 177, 214, 0.16);
  --line-bright: rgba(81, 124, 255, 0.38);
  --text: #f7f9ff;
  --muted: #aab5ce;
  --subtle: #7d89a2;
  --blue: #2864ff;
  --blue-bright: #5c89ff;
  --blue-soft: rgba(40, 100, 255, 0.14);
  --amber: #ffbd59;
  --green: #62d6a8;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 83% -10%, rgba(39, 93, 255, 0.2), transparent 29rem),
    radial-gradient(circle at 6% 42%, rgba(20, 69, 192, 0.11), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #8eabff;
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  color: #07102b;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(139, 159, 204, 0.12);
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand-link { display: inline-flex; width: min(100%, 240px); text-decoration: none; }
.brand-link img { width: 240px; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); }
.language-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.language-toggle button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 850;
}
.language-toggle button.is-active { background: #fff; color: #091026; }

.hero { padding: clamp(72px, 11vw, 148px) 0 94px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 74px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9bb5ff;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1, .page-hero h1 {
  margin: 24px 0;
  max-width: 860px;
  font-size: clamp(3.15rem, 7.4vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.hero h1 em { color: var(--blue-bright); font-style: normal; }
.hero-lead, .page-lead { max-width: 690px; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.27rem); line-height: 1.72; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(148, 170, 220, 0.4); }
.button.primary { border-color: var(--blue); background: var(--blue); box-shadow: 0 12px 40px rgba(40, 100, 255, 0.28); }
.button.secondary { background: rgba(255, 255, 255, 0.045); }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--subtle); font-size: 0.8rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(98, 214, 168, 0.1); }

.hero-stage {
  position: relative;
  min-height: 500px;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(9, 15, 28, 0.96), rgba(4, 6, 11, 0.92)),
    #080b12;
  box-shadow: var(--shadow);
}
.hero-stage::before, .hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-stage::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 139, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 139, 210, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.hero-stage::after {
  width: 330px;
  height: 330px;
  right: -90px;
  top: -80px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(120px);
  opacity: 0.38;
  z-index: -1;
}
.stage-label { position: absolute; top: 28px; left: 30px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.stage-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.stage-core {
  position: absolute;
  inset: 115px 55px auto;
  min-height: 178px;
  padding: 28px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  background: rgba(5, 9, 18, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.stage-wordmark { width: min(100%, 380px); height: auto; margin-inline: auto; }
.stage-products { position: absolute; inset: auto 26px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-product { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(12, 18, 31, 0.9); }
.stage-product span { display: block; color: var(--subtle); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.stage-product strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.stage-product:last-child { border-color: rgba(255, 189, 89, 0.3); }

.section { padding: 100px 0; }
.section.compact { padding: 72px 0; }
.section-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; margin-bottom: 48px; }
.section h2, .cta-panel h2 { margin: 12px 0 0; font-size: clamp(2.15rem, 4.6vw, 4.2rem); line-height: 1.06; letter-spacing: -0.045em; text-wrap: balance; }
.section-top > p { margin: 8px 0 0; max-width: 580px; color: var(--muted); font-size: 1.03rem; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 24, 40, 0.88), rgba(8, 12, 21, 0.9));
  box-shadow: var(--shadow);
}
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card { position: relative; min-height: 470px; padding: 34px; overflow: hidden; display: flex; flex-direction: column; }
.product-card::after { content: ""; position: absolute; width: 250px; height: 250px; top: -100px; right: -80px; border-radius: 50%; filter: blur(90px); opacity: 0.18; background: var(--blue); }
.product-card.food::after { background: var(--amber); }
.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(121, 151, 226, 0.28);
  border-radius: 999px;
  color: #b9c8ee;
  background: rgba(74, 106, 185, 0.1);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.amber { color: #ffd18a; border-color: rgba(255, 189, 89, 0.26); background: rgba(255, 189, 89, 0.08); }
.product-card h3 { margin: 34px 0 16px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.05em; }
.product-card p { max-width: 570px; color: var(--muted); }
.feature-list { margin: 26px 0 34px; padding: 0; display: grid; gap: 11px; list-style: none; color: #d8dfef; font-size: 0.9rem; }
.feature-list li { display: flex; gap: 10px; }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 900; }
.product-card .button { margin-top: auto; align-self: flex-start; }

.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle-card { min-height: 260px; padding: 30px; }
.principle-number { color: var(--blue-bright); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.14em; }
.principle-card h3 { margin: 52px 0 10px; font-size: 1.32rem; }
.principle-card p { margin: 0; color: var(--muted); font-size: 0.91rem; }

.cta-panel { padding: clamp(34px, 7vw, 72px); display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: end; background: linear-gradient(125deg, rgba(21, 56, 150, 0.36), rgba(11, 16, 28, 0.92) 62%); }
.cta-panel p { max-width: 620px; color: var(--muted); }

.page-hero { padding: 96px 0 64px; }
.page-hero h1 { max-width: 980px; font-size: clamp(3rem, 7vw, 6rem); }
.page-hero .status { margin-top: 24px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 54px; align-items: start; }
.side-note { position: sticky; top: 110px; padding: 25px; }
.side-note strong { display: block; margin-bottom: 10px; }
.side-note p, .side-note address { margin: 0; color: var(--muted); font-size: 0.88rem; font-style: normal; }
.side-note a { color: #b9caff; }
.prose { display: grid; gap: 18px; }
.prose section { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(11, 16, 27, 0.68); }
.prose h2 { margin: 0 0 13px; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -0.025em; }
.prose h3 { margin: 24px 0 8px; font-size: 1rem; }
.prose p, .prose li { color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25rem; }
.prose a { color: #b9caff; }
.draft-note { margin: 0 0 28px; padding: 16px 18px; border: 1px solid rgba(255, 189, 89, 0.3); border-radius: 14px; background: rgba(255, 189, 89, 0.08); color: #ffdcaa; font-size: 0.84rem; }
.product-overview { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.overview-card { padding: 32px; }
.overview-card h2 { margin-top: 0; }
.overview-card p { color: var(--muted); }
.metric-list { display: grid; gap: 0; }
.metric { padding: 19px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric small { display: block; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.metric strong { display: block; margin-top: 4px; }
.error-page { min-height: 74vh; display: grid; place-items: center; text-align: center; }
.error-code { margin: 0; color: var(--blue-bright); font-size: clamp(5rem, 20vw, 12rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.08em; }
.error-page h1 { margin: 28px 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); }
.error-page p { max-width: 560px; margin: 0 auto; color: var(--muted); }

.site-footer { margin-top: 88px; border-top: 1px solid var(--line); background: rgba(2, 4, 8, 0.78); }
.footer-top { padding: 56px 0 42px; display: grid; grid-template-columns: 1.15fr 0.85fr 0.85fr; gap: 48px; }
.footer-brand img { width: 245px; height: auto; }
.footer-brand p { max-width: 470px; color: var(--muted); font-size: 0.85rem; }
.footer-column strong { display: block; margin-bottom: 14px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); font-size: 0.84rem; text-decoration: none; }
.footer-column a:hover { color: var(--text); }
.footer-legal { padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.75rem; }
.footer-legal p { margin: 0.35rem 0; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: minmax(170px, 1fr) auto; gap: 16px; padding: 12px 0; }
  .primary-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; justify-content: flex-start; padding: 0 0 5px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { white-space: nowrap; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 440px; }
  .section-top, .page-grid, .product-overview { grid-template-columns: 1fr; }
  .side-note { position: static; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: relative; }
  .header-inner { min-height: 68px; }
  .brand-link, .brand-link img { width: 190px; }
  .primary-nav { gap: 18px; }
  .hero { padding: 62px 0 70px; }
  .hero h1, .page-hero h1 { letter-spacing: -0.052em; }
  .hero-grid { gap: 46px; }
  .hero-stage { min-height: 370px; border-radius: 25px; }
  .stage-core { inset: 88px 20px auto; padding: 18px; }
  .stage-label { top: 22px; left: 22px; }
  .stage-products { inset: auto 14px 14px; gap: 8px; }
  .stage-product { padding: 13px; }
  .stage-product strong { font-size: 0.86rem; }
  .section { padding: 72px 0; }
  .section-top { gap: 22px; margin-bottom: 32px; }
  .product-grid, .principle-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 430px; padding: 26px; }
  .cta-panel { padding: 30px; }
  .page-hero { padding: 62px 0 42px; }
  .prose section, .overview-card { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
