/* ============================================================
   Keel — Marketing Site Stylesheet
   Dark theme · Amber accents · JetBrains Mono headings
   ============================================================ */

:root {
  --bg:         #0d0d0d;
  --surface:    #141414;
  --surface2:   #1a1a1a;
  --border:     #242424;
  --border2:    #2e2e2e;
  --text:       #e8e8e8;
  --text-dim:   #9a9a9a;
  --text-muted: #555;
  --amber:      #f0a500;
  --amber-dim:  #c48400;
  --green:      #4caf7d;
  --red:        #e05c5c;
  --blue:       #5c9de0;

  --radius:     6px;
  --radius-lg:  12px;
  --max-w:      1100px;

  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--amber);
  color: #0d0d0d;
  border-color: var(--amber);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); opacity: 1; }

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   Nav
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--amber);
  border-radius: 5px;
  color: #0d0d0d;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 14px;
}
.logo-mark.small { width: 20px; height: 20px; font-size: 11px; border-radius: 3px; }
.logo-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 24px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--amber-dim);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section-label, .feature-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--mono);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 48px;
}
kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

/* ============================================================
   Value props
   ============================================================ */
.props { padding: 80px 0; border-top: 1px solid var(--border); }
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.prop-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.prop-icon {
  font-size: 20px;
  color: var(--amber);
  margin-bottom: 16px;
}
.prop-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.prop-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   Feature detail rows
   ============================================================ */
.feature-detail {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-screen { order: 1; }

.feature-text p {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.feature-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Screen mock */
.screen-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
}
.screen-title {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.screen-row {
  display: grid;
  grid-template-columns: 44px 1fr 72px 56px 72px;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
}
.screen-row.header {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--surface2);
}
.amber { color: var(--amber); }
.red { color: var(--red); }
.chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chip-open { background: rgba(224, 92, 92, 0.15); color: var(--red); }
.chip-mitigated { background: rgba(76, 175, 125, 0.15); color: var(--green); }

/* Journal mock */
.screen-journal {
  padding: 16px;
  line-height: 1.7;
  font-family: var(--font);
  color: var(--text-dim);
  font-size: 13px;
}
.journal-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.screen-journal p { margin-bottom: 10px; }
.delta-pill {
  margin: 12px 16px 16px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
}

/* ============================================================
   AI section
   ============================================================ */
.ai-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.ai-inner { max-width: 860px; }
.ai-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.ai-option {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ai-option-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.ai-option p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   Security
   ============================================================ */
.security { padding: 80px 0; border-top: 1px solid var(--border); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.security-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.security-icon {
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 14px;
}
.security-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.security-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}
.security-cta { text-align: center; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { padding: 80px 0; border-top: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--amber);
  background: var(--surface2);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--amber);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #0d0d0d;
  white-space: nowrap;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.pricing-tier {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pricing-price {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.pricing-cadence {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-features li.muted { color: var(--text-muted); }
.pricing-features li.muted::before { content: '—'; color: var(--text-muted); }
.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ============================================================
   Download
   ============================================================ */
.download {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.download h2 { margin-bottom: 12px; }
.download .section-sub { margin: 0 auto 40px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 24px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
  cursor: pointer;
}
.download-card:hover { border-color: var(--amber); }
.download-icon {
  font-size: 24px;
  color: var(--amber);
  flex-shrink: 0;
}
.download-info { flex: 1; text-align: left; }
.download-platform {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.download-detail {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.download-arrow {
  font-size: 18px;
  color: var(--text-muted);
}
.download-note {
  font-size: 14px;
  color: var(--text-muted);
}
.download-note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand { flex-shrink: 0; }
.footer-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-left: 6px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: var(--mono);
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-screen { order: 2; }
  .ai-options { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
}
