:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --bg-3: #151520;
  --surface: #14141e;
  --surface-2: #1a1a26;
  --line: #23232f;
  --line-2: #2c2c3a;
  --ink: #e8e8ec;
  --ink-soft: #a8a8b8;
  --muted: #6c6c80;
  --brand: #ef4444;
  --brand-2: #c82828;
  --brand-soft: rgba(239, 68, 68, 0.12);
  --accent: #fbbf24;
  --ok: #34d399;
  --mono: 'JetBrains Mono', ui-monospace, SF Mono, Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: #ff6060; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: 3.4rem; font-weight: 800; }
h2 { font-size: 2.1rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: block;
}
.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--surface); border-color: var(--ink-soft); }

/* ============ HERO ============ */
.hero {
  padding: 96px 0 48px;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, rgba(239, 68, 68, 0.09), transparent 60%),
    radial-gradient(ellipse 600px 300px at 90% 100%, rgba(251, 191, 36, 0.04), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.88); }
}

.hero h1 { margin-bottom: 24px; }
.accent {
  background: linear-gradient(135deg, var(--brand) 0%, #ff7070 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn .arrow { transition: transform 0.15s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 8px 24px -12px rgba(239, 68, 68, 0.5);
}
.btn-primary:hover { background: #f55 !important; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink) !important;
  border-color: var(--line-2);
  text-decoration: none !important;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-soft); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ============ TERMINAL ============ */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
  max-width: 780px;
}
.terminal-sm {
  margin-top: 22px;
  max-width: none;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.terminal-sm .terminal-body { font-size: 0.8rem; padding: 16px 20px; }
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.tc-dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.tc-red { background: #ff5f56; }
.tc-yellow { background: #ffbd2e; }
.tc-green { background: #27c93f; }
.terminal-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.terminal-body {
  margin: 0;
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
  overflow-x: auto;
  white-space: pre;
}
.t-prompt { color: var(--ok); }
.t-cmd { color: var(--ink); }
.t-out { color: var(--ink-soft); }
.t-ok { color: var(--ok); }
.t-comment { color: var(--muted); font-style: italic; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--brand);
  margin-bottom: 10px;
  font-weight: 500;
}

/* ============ MODULES ============ */
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.module:hover { border-color: var(--line-2); }
.module-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.module-icon {
  position: relative;
  width: 64px; height: 64px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 2rem;
  box-shadow: 0 8px 20px -8px rgba(239, 68, 68, 0.5);
}
.module-icon .arc {
  position: absolute;
  top: 4px; left: 4px; right: 4px;
  height: 30px;
  border: 3px solid #1a1a28;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(32deg);
}
.module-title { flex: 1; min-width: 0; }
.module-title h3 {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.module-tag {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}
.module-price { text-align: right; flex-shrink: 0; }
.price {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.price-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}
.module-body p { color: var(--ink-soft); margin: 0 0 18px; }

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.bullet-list li {
  color: var(--ink-soft);
  padding: 4px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bullet-list li span {
  color: var(--ok);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

.module-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.module-spec {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 0.88rem;
}
.module-spec dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}
.module-spec dt {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
}
.module-spec dd {
  margin: 0;
  color: var(--ink-soft);
}
.module-spec code { font-size: 0.82rem; background: var(--surface-2); }

/* coming soon modules */
.module--coming { opacity: 0.72; }
.module--coming .module-head { padding: 0; border: 0; margin: 0; }
.coming-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ============ PRINCIPLES ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.principle {
  background: var(--surface);
  padding: 32px 28px;
}
.principle-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.principle h4 { color: var(--ink); margin-bottom: 8px; }
.principle p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* ============ CTA ============ */
.section-cta {
  text-align: center;
  padding: 96px 0;
  background:
    radial-gradient(ellipse 500px 200px at 50% 100%, rgba(239, 68, 68, 0.12), transparent 70%),
    var(--bg);
}
.section-cta h2 { margin-bottom: 12px; }
.section-cta p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-left .brand { margin-bottom: 8px; }
.footer-tagline { color: var(--muted); margin: 0; font-family: var(--mono); font-size: 0.82rem; }
.footer-right { text-align: right; }
.footer-right p { margin: 0 0 4px; color: var(--ink-soft); }
.footer-right a { color: var(--ink); }
.copyright { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }

/* ============ FORM PAGE ============ */
.nav-links a.active { color: var(--ink); }
.container--narrow { max-width: 780px; }
.hero--sm { padding: 72px 0 24px; }
.hero--sm h1 { font-size: 2.6rem; }

.form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 0 0 22px;
  background: var(--surface);
}
.form legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.legend-num {
  color: var(--brand);
  font-weight: 600;
}

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 7px;
}
.req { color: var(--brand); font-weight: 700; }
.help {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--sans);
}
.form textarea { font-family: var(--sans); resize: vertical; min-height: 88px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a8a8b8' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0;
}
.radio:hover { border-color: var(--ink-soft); }
.radio input {
  accent-color: var(--brand);
  margin-top: 3px;
}
.radio:has(input:checked) {
  border-color: var(--brand);
  background: rgba(239, 68, 68, 0.06);
  color: var(--ink);
}

.form-actions {
  margin-top: 8px;
  padding: 22px 0 40px;
  text-align: center;
}
.form-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 16px auto 0;
  max-width: 460px;
}
.form-note code { background: var(--surface-2); border-color: var(--line-2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 64px 0 32px; }
  .section { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form fieldset { padding: 22px 18px 18px; }
  .module { padding: 22px; }
  .module-head { flex-wrap: wrap; }
  .module-price { text-align: left; width: 100%; }
  .module-grid { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .terminal-body { font-size: 0.78rem; padding: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .brand-name { display: none; }
  .terminal-body { font-size: 0.72rem; }
}
