@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --panel-2: #fbfaf7;
  --text: #201c1a;
  --muted: #6f655c;
  --border: #ddd6cb;
  --accent1: #ff7a45;
  --accent2: #d6336c;
  --accent-grad: linear-gradient(135deg, var(--accent1), var(--accent2));
  --danger: #e0393e;
  --ok: #2f9e5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(214, 51, 108, 0.14);
  --shadow-sm: 0 6px 16px rgba(32, 28, 26, 0.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 4px rgba(214,51,108,0.12);
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 24px 46px rgba(214,51,108,0.24); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,242,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent-grad);
  position: relative;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.brand-mark::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent2);
  top: 50%; right: 6px;
  transform: translateY(-50%);
}
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-links-desktop { display: flex; }
@media (max-width: 720px) {
  .nav-links-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent2); }

/* Signature element: switchboard panel */
.switchboard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.switchboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.switchboard-head .dots { display: flex; gap: 6px; }
.switchboard-head .dots span {
  width: 8px; height: 8px; border-radius: 999px; background: var(--border);
}
.switchboard-head small {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 11px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 6px;
  border-radius: var(--radius-sm);
}
.row:hover { background: var(--panel-2); }
.row-name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.row-ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.switch {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex: none;
  transition: background .25s ease;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform .28s cubic-bezier(.4,1.4,.4,1);
}
.switch.on { background: var(--accent-grad); }
.switch.on::before { transform: translateX(16px); }
.switch.animate { animation: flip 4.5s ease-in-out infinite; }
@keyframes flip {
  0%, 40% { background: var(--border); }
  0%, 40% { }
  45%, 100% { background: linear-gradient(135deg, var(--accent1), var(--accent2)); }
}
.switch.animate::before {
  animation: knob 4.5s ease-in-out infinite;
}
@keyframes knob {
  0%, 40% { transform: translateX(0); }
  45%, 100% { transform: translateX(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .switch.animate, .switch.animate::before { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); font-size: 16px; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.card .pro-pill {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(214,51,108,0.1);
  color: var(--accent2);
  margin-inline-start: 8px;
  vertical-align: middle;
}

/* Languages strip */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lang-chip {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-chip b { font-family: "JetBrains Mono", monospace; color: var(--accent2); font-weight: 600; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-inline-start: 0; }
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% -20%, rgba(255,122,69,0.14), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Legal / privacy page ---------- */
.legal {
  padding: 56px 0 90px;
}
.legal-header { max-width: 720px; margin-bottom: 40px; }
.legal-header h1 { font-size: clamp(30px, 4vw, 42px); }
.legal-updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
.legal-body {
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.legal-body h2 {
  font-size: 19px;
  margin-top: 2em;
  padding-top: 0.4em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; }
.legal-body ul { padding-inline-start: 20px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--text); }

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 1em 0 1.6em;
}
.perm-table th, .perm-table td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.perm-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent2);
}
.perm-table td:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  margin-bottom: 34px;
}
.legal-toc a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
}
.legal-toc a:hover { color: var(--accent2); border-color: var(--accent2); }

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ok);
  font-weight: 600;
  background: rgba(47,158,91,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-ok svg { width: 13px; height: 13px; }
