:root {
  --navy: #0B1424;
  --navy-2: #14243A;
  --navy-3: #0f1d31;
  --accent: #FF6B24;
  --accent-soft: rgba(255, 107, 36, 0.18);
  --bg: #F4F6F9;
  --white: #FFFFFF;
  --muted: #AAB5C5;
  --text: #152238;
  --text-2: #4b5d78;
  --line: rgba(170, 181, 197, 0.22);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 40px rgba(11, 20, 36, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-dark {
  background: var(--navy);
  color: #eef3fb;
  position: relative;
  overflow: clip;
}
.section-light { background: var(--white); }
.section-alt { background: var(--bg); }

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section-dark .eyebrow { color: #ff8a52; }
.section-title {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 720px;
}
.section-dark .section-lead { color: var(--muted); }
.section-head { margin-bottom: 42px; }
.section-head.split {
  display: grid; gap: 18px; align-items: end;
}
@media (min-width: 860px) {
  .section-head.split { grid-template-columns: 1.2fr 0.8fr; }
}

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 20, 36, 0.92);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff; min-width: 0;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(180deg, #1a3154, #12233f);
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; padding: 7px; flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Sora", sans-serif; font-size: 1.15rem; letter-spacing: 0.08em; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.nav-main { display: flex; align-items: center; gap: 8px; }
.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 12px; border-radius: 8px; text-decoration: none;
  color: #d7e1f0; font-size: 0.94rem; font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; background: rgba(255,255,255,0.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden;
}
.lang-btn {
  background: transparent; color: #c8d4e8; border: 0; padding: 8px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; min-height: 36px;
}
.lang-btn[aria-pressed="true"] { background: rgba(255,255,255,0.1); color: #fff; }
.lang-btn + .lang-btn { border-left: 1px solid var(--line-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 10px;
  font-weight: 650; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff7d40; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.38); background: rgba(255,255,255,0.04); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: rgba(11,20,36,0.12); }
.btn-ghost:hover { border-color: rgba(11,20,36,0.22); }
.section-dark .btn-ghost { background: transparent; color: #fff; border-color: var(--line-dark); }
.nav-cta { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 9px;
  border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-main {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(11, 20, 36, 0.98); border-bottom: 1px solid var(--line-dark);
    padding: 14px 20px 20px; display: grid; gap: 14px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  }
  .nav-main.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { min-height: 44px; }
  .nav-actions { justify-content: space-between; flex-wrap: wrap; }
  .brand-text span { display: none; }
}
/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 85% 15%, rgba(255, 107, 36, 0.14), transparent 60%),
    linear-gradient(180deg, #0f1b2e 0%, var(--navy) 100%);
  color: #fff;
  position: relative;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
}
.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.35rem, 1.7rem + 3.2vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 18px; text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  color: #c6d2e6; font-size: clamp(1rem, 0.95rem + 0.45vw, 1.16rem);
  margin: 0 0 28px; max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  color: var(--muted); font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,107,36,0.75); display: inline-block; }

.hero-visual {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.hero-visual svg { width: 100%; height: auto; }
.hero-tags {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px;
}
.hero-tag {
  border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 10px 12px; background: rgba(11,20,36,0.35);
}
.hero-tag strong { display: block; font-size: 0.88rem; color: #fff; font-weight: 650; }
.hero-tag span { font-size: 0.78rem; color: var(--muted); }

/* Grids & cards */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card {
  background: var(--white);
  border: 1px solid rgba(11,20,36,0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}
.card h3, .card h4 {
  font-family: "Sora", sans-serif;
  margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.25;
}
.card p { margin: 0; color: var(--text-2); }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255,107,36,0.22);
}
.card-icon svg { width: 22px; height: 22px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; color: var(--navy); font-weight: 650; font-size: 0.92rem;
  text-decoration: none;
}
.card-link:hover { color: var(--accent); }

.about-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.about-points { display: grid; gap: 14px; }
.about-point {
  background: var(--bg); border: 1px solid rgba(11,20,36,0.07);
  border-radius: var(--radius-sm); padding: 18px 18px 18px 16px;
}
.about-point h3 { font-family: "Sora", sans-serif; font-size: 1rem; margin: 0 0 6px; }
.about-point p { margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* Products */
.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid rgba(11,20,36,0.08);
  border-radius: var(--radius); padding: 22px; height: 100%;
}
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.product-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.product-card h3 { font-family: "Sora", sans-serif; margin: 0; font-size: 1.08rem; }
.product-card .sub { color: var(--text-2); font-size: 0.9rem; margin: 2px 0 0; }
.status {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid;
}
.status-live { color: #14532d; background: #ecfdf3; border-color: #b7e4c7; }
.status-demo { color: #1e3a8a; background: #eff6ff; border-color: #bfdbfe; }
.status-dev { color: #7c2d12; background: #fff7ed; border-color: #fed7aa; }
.product-card .desc { color: var(--text-2); margin: 0 0 14px; font-size: 0.96rem; }
.feature-list { margin: 0 0 18px; padding-left: 18px; color: var(--text-2); font-size: 0.92rem; }
.feature-list li { margin: 5px 0; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.product-actions .btn { min-height: 40px; padding: 0 14px; font-size: 0.88rem; }

/* Product cards injected into #products from the products module */
.c {
  display: block;
  background: var(--white);
  border: 1px solid rgba(11,20,36,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  text-decoration: none;
  color: inherit;
}
.c img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  display: block;
}
.c div { padding: 12px; }
.c small { color: #e8741f; font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.c h3 { margin: 0 0 4px; font-size: 1.05rem; font-family: "Sora", sans-serif; }

/* Demos */
.demo-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.demo-card {
  background: var(--navy-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.demo-head {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.demo-head h3 { margin: 0; font-family: "Sora", sans-serif; font-size: 1rem; color: #fff; }
.demo-head a { color: #cfe0ff; font-size: 0.88rem; text-decoration: none; font-weight: 600; }
.demo-head a:hover { color: #fff; }
.demo-frame {
  position: relative; background: #0a1322; aspect-ratio: 16 / 10; min-height: 280px;
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0a1322; }
.demo-state {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 0.92rem; padding: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(10,19,34,0.35), rgba(10,19,34,0.75));
  pointer-events: none; transition: opacity .2s ease;
}
.demo-frame.is-loaded .demo-state, .demo-frame.has-error .demo-state { pointer-events: auto; background: rgba(10,19,34,0.88); }
.demo-frame.is-loaded .demo-state { opacity: 0; }
.demo-state .box { max-width: 360px; }
.demo-state p { margin: 0 0 12px; }
.spinner {
  width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Why SSTX */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1020px) { .why-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.why-item {
  padding: 22px; border-radius: var(--radius-sm);
  border: 1px solid rgba(11,20,36,0.08); background: var(--white);
}
.why-item h3 { font-family: "Sora", sans-serif; font-size: 1.02rem; margin: 0 0 8px; }
.why-item p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-panel {
  background: var(--navy-2); color: #eef3fb; border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 26px;
}
.contact-panel h3 { font-family: "Sora", sans-serif; margin: 0 0 8px; font-size: 1.25rem; }
.contact-panel p { color: var(--muted); margin: 0 0 18px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 0.95rem; }
.contact-list span { color: #8fa3c2; font-size: 0.88rem; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: #ffb088; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; }

.form-card {
  background: var(--white); border: 1px solid rgba(11,20,36,0.08);
  border-radius: var(--radius); padding: 24px;
}
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border-radius: 10px;
  border: 1px solid rgba(11,20,36,0.16); padding: 11px 12px;
  background: #fff; color: var(--text);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,107,36,0.55); }
.help { font-size: 0.82rem; color: var(--text-2); margin: 0; }
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.form-status {
  display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 0.93rem; border: 1px solid;
}
.form-status.is-success { display: block; color: #14532d; background: #ecfdf3; border-color: #b7e4c7; }
.form-status.is-error { display: block; color: #991b1b; background: #fef2f2; border-color: #fecaca; }

/* Footer */
.site-footer {
  background: #08101d; color: #c7d3e6; padding: 56px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; gap: 28px; padding-bottom: 34px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand p { color: var(--muted); margin: 12px 0 0; max-width: 38ch; font-size: 0.95rem; }
.footer-col h3 {
  font-family: "Sora", sans-serif; color: #fff; font-size: 0.98rem; margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #c7d3e6; text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: 0.93rem; color: #c7d3e6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0 22px; color: #8fa3c2; font-size: 0.88rem;
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; padding: 18px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 20, 0.72); }
.modal-dialog {
  position: relative; width: min(100%, 1100px); max-height: calc(100vh - 36px);
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-dark); color: #fff;
}
.modal-head h3 { margin: 0; font-family: "Sora", sans-serif; font-size: 1rem; }
.modal-close {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-dark);
  background: transparent; color: #fff; cursor: pointer; font-size: 22px; line-height: 1;
}
.modal-body { background: #0a1322; aspect-ratio: 16 / 10; min-height: min(70vh, 620px); position: relative; }
.modal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

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