:root {
  --bg: #0b0f19;
  --surface: #121826;
  --surface-2: #1a2234;
  --border: #2a3548;
  --text: #e8edf5;
  --text-secondary: #9aa8bc;
  --text-muted: #6b7a90;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: #93c5fd;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Diff cards */
.diff {
  padding: 0 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.diff-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.diff-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.diff-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}
.section.alt { background: var(--surface); }
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section.alt .col-card { background: var(--bg); }
.col-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.col-card ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.col-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Architecture */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.arch-layer {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.arch-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 2rem;
}
.arch-layer h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.arch-layer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.arch-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Compliance */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.comp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.comp-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.comp-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Deploy */
.deploy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.step h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.deploy-foot {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Market */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.market-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.market-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.market-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Contact / form */
.order-section {
  padding: 5rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.order-section .section-label { margin-bottom: 0.5rem; }
.order-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.order-lead {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.order-form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.footer-brand span { color: var(--accent); }
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.55;
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer ul li {
  margin-bottom: 0.4rem;
}
.footer ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast */
.sk-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: min(420px, calc(100vw - 2rem));
  text-align: center;
  pointer-events: none;
}
.sk-toast-success {
  border-color: #3d8b5f;
}
.sk-toast-error {
  border-color: #c41e3a;
}
.sk-toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .diff-grid,
  .deploy-steps,
  .market-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .comp-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
}
