/* Apoc marketing site — styles.
   Fonts (JetBrains Mono + Space Grotesk) are loaded from Google Fonts via a
   <link> in index.html. reCAPTCHA + the contact form logic live in contact.js. */

/* ===== Base / reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0a0c0f;
  color: #e7eaee;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(57, 255, 20, 0.28); color: #fff; }
a { color: inherit; }

@keyframes daBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes daPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ===== Layout helpers ===== */
.page { width: 100%; overflow-x: hidden; position: relative; background: #0a0c0f; }
.page-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 500px at 78% -8%, rgba(57, 255, 20, 0.10), transparent 60%);
}

/* every section below the hero shares a top divider */
.section { position: relative; z-index: 1; border-top: 1px solid #161b21; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 84px 28px 90px; }
.section-inner.narrow { max-width: 1080px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: #39ff14; margin-bottom: 16px;
}
.eyebrow-hero { letter-spacing: 0.04em; margin-bottom: 22px; }
.eyebrow-contact { margin-bottom: 18px; }

.section-title {
  font-size: 40px; line-height: 1.08; font-weight: 700;
  letter-spacing: -0.025em; text-wrap: balance; margin: 0 0 14px; max-width: 620px;
}
.section-title.wide { max-width: 640px; margin: 0 0 44px; }
.section-lead {
  font-size: 17px; line-height: 1.6; color: #8a929c; max-width: 560px; margin: 0 0 48px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 12, 15, 0.72); border-bottom: 1px solid #1a1f26;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 3px;
  background: #39ff14; box-shadow: 0 0 14px rgba(57, 255, 20, 0.75);
}
.brand-name {
  font-family: 'JetBrains Mono', monospace; font-size: 15px;
  font-weight: 600; letter-spacing: -0.02em; color: #e7eaee;
}
.nav-links {
  display: flex; align-items: center; gap: 30px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #8a929c;
}
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: #e7eaee; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-account, .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 8px; text-decoration: none;
}
.nav-account {
  color: #cdd2d8; background: transparent; border: 1px solid #2a313a;
  transition: border-color .15s, color .15s;
}
.nav-account:hover { border-color: #39ff14; color: #fff; }
.nav-cta { color: #0a0c0f; background: #39ff14; transition: background .15s, transform .15s; }
.nav-cta:hover { background: #62ff48; }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 92px 28px 76px; display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: 56px; align-items: center;
}
.hero-title {
  font-size: 58px; line-height: 1.04; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance;
}
.hero-sub { font-size: 18px; line-height: 1.6; color: #9aa1ab; max-width: 520px; margin: 0 0 32px; }
.hero-sub-note { display: block; margin-top: 12px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; border-radius: 11px; text-decoration: none;
}
.cta-primary {
  font-weight: 600; color: #04130c; background: #39ff14; padding: 14px 24px;
  box-shadow: 0 10px 34px -12px rgba(57, 255, 20, 0.75);
  transition: background .15s, transform .15s;
}
.cta-primary:hover { background: #62ff48; transform: translateY(-1px); }
.cta-secondary {
  font-weight: 500; color: #cdd2d8; background: transparent; padding: 14px 22px;
  border: 1px solid #2a313a; transition: border-color .15s, color .15s;
}
.cta-secondary:hover { border-color: #39ff14; color: #fff; }
.hero-badges {
  margin-top: 30px; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: #6b727c; display: flex; gap: 18px; flex-wrap: wrap;
}
.hero-badges .sep { color: #2a313a; }

/* ===== Terminal mockup (hero, right) ===== */
.term {
  background: #0d1116; border: 1px solid #1f262e; border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #0a0e12; border-bottom: 1px solid #1a1f26;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #33383f; }
.term-title {
  margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6b727c;
}
.term-online {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #39ff14;
}
.term-online .live {
  width: 7px; height: 7px; border-radius: 50%; background: #39ff14;
  animation: daPulse 2s ease-in-out infinite;
}
.term-body {
  padding: 22px 20px; font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; line-height: 1.85; color: #c3c9d1;
}
.term-trace { margin-top: 10px; color: #6b727c; }
.term-item { margin-top: 6px; }
.term-savings {
  margin-top: 12px; padding: 11px 13px; border: 1px solid rgba(57, 255, 20, 0.32);
  border-radius: 9px; background: rgba(57, 255, 20, 0.06); color: #9dffb8;
}
.savings-amt { color: #39ff14; font-weight: 600; }
.term-chips { margin-top: 14px; display: flex; gap: 9px; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 7px; }
.chip-go { background: #39ff14; color: #04130c; font-weight: 600; }
.chip-alt { background: #161b21; color: #c3c9d1; border: 1px solid #2a313a; }
.term-prompt { margin-top: 16px; color: #6b727c; }
.cursor {
  display: inline-block; width: 9px; height: 16px; background: #39ff14;
  vertical-align: -3px; animation: daBlink 1.1s steps(1) infinite;
}

/* ===== Capabilities ===== */
.capabilities { background: #0b0e12; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cap-card {
  background: #0f1318; border: 1px solid #1c2128; border-radius: 15px; padding: 30px;
  transition: border-color .18s, transform .18s;
}
.cap-card:hover { border-color: rgba(57, 255, 20, 0.45); transform: translateY(-2px); }
.cap-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.cap-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #39ff14; }
.cap-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #3a414a; }
.cap-title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.cap-text { font-size: 15px; line-height: 1.6; color: #8a929c; margin: 0; }

/* ===== How it works (Slack demo) ===== */
.demo {
  background: #0e1217; border: 1px solid #1c2128; border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.85);
}
.demo-bar {
  display: flex; align-items: center; gap: 10px; padding: 15px 20px;
  background: #0a0e12; border-bottom: 1px solid #1a1f26;
}
.demo-channel {
  font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #e7eaee; font-weight: 600;
}
.demo-members { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6b727c; }
.demo-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; gap: 13px; }
.msg .grow { flex: 1; }
.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
}
.avatar-user { background: #2a313a; color: #cdd2d8; }
.avatar-bot { background: #39ff14; color: #04130c; font-weight: 700; }
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg-head.tight { margin-bottom: 5px; }
.msg-head.loose { margin-bottom: 7px; }
.msg-name { font-weight: 600; font-size: 14.5px; }
.msg-name.bot { color: #39ff14; }
.msg-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6b727c; }
.app-badge {
  font-size: 9px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
  background: #1c2128; color: #8a929c; padding: 1.5px 5px; border-radius: 3px;
}
.msg-text { font-size: 15px; line-height: 1.55; color: #d5dae0; }
.msg-text.bot { line-height: 1.6; }
.msg-text.spaced { margin-bottom: 12px; }
.demo-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.demo-btn { font-size: 13px; padding: 8px 16px; border-radius: 8px; }
.demo-btn-go { background: #39ff14; color: #04130c; font-weight: 600; }
.demo-btn-alt { background: #161b21; color: #c3c9d1; border: 1px solid #2a313a; }
.demo-foot {
  display: flex; align-items: center; gap: 10px; padding: 14px 24px;
  background: #0a0e12; border-top: 1px solid #1a1f26;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #8a929c;
}

/* ===== How it works (steps) ===== */
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: #0f1318; border: 1px solid #1c2128; border-radius: 15px; padding: 24px 26px;
  transition: border-color .18s;
}
.step:hover { border-color: rgba(57, 255, 20, 0.35); }
.step-num {
  flex: none; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  color: #04130c; background: #39ff14; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.step-text { font-size: 15px; line-height: 1.6; color: #8a929c; margin: 0; }
.steps-note {
  margin-top: 22px; display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.5; color: #8a929c;
}

/* ===== About us ===== */
.about { background: #0b0e12; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.about-photo { margin-top: 29px; } /* photo top ≈ title top, like the hero's terminal */
.about-text { font-size: 16px; line-height: 1.7; color: #9aa1ab; margin: 0 0 16px; }
.about-text:last-child { margin-bottom: 0; }
.about-photo {
  display: block; width: 100%; border-radius: 16px; border: 1px solid #1c2128;
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.85);
}

/* ===== Contact ===== */
.contact { overflow: hidden; }
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 50% 120%, rgba(57, 255, 20, 0.12), transparent 60%);
}
.contact-inner {
  position: relative; max-width: 620px; margin: 0 auto;
  padding: 100px 28px 110px; text-align: center;
}
.contact-title {
  font-size: 44px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em;
  margin: 0 auto 18px; max-width: 600px; text-wrap: balance;
}
.contact-lead {
  font-size: 18px; line-height: 1.6; color: #9aa1ab; max-width: 500px; margin: 0 auto 40px;
}
.contact-form {
  text-align: left; background: #0f1318; border: 1px solid #1c2128; border-radius: 16px;
  padding: 28px; box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.85);
}

/* form controls */
.apoc-field { margin-bottom: 14px; }
.apoc-field.note { margin-bottom: 20px; }
.apoc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.apoc-label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.01em; color: #8a929c; margin-bottom: 7px;
}
.apoc-label span { color: #5a616b; }
.apoc-input {
  width: 100%; background: #0b0e12; border: 1px solid #2a313a; border-radius: 10px;
  color: #e7eaee; font-family: 'Space Grotesk', sans-serif; font-size: 15px;
  line-height: 1.4; padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.apoc-input::placeholder { color: #566069; }
.apoc-input:focus { border-color: #39ff14; box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14); }
textarea.apoc-input { resize: vertical; min-height: 96px; }
.apoc-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  color: #04130c; background: #39ff14; border: 0; padding: 14px 24px; border-radius: 11px;
  cursor: pointer; box-shadow: 0 12px 38px -14px rgba(57, 255, 20, 0.8);
  transition: background .15s, transform .15s;
}
.apoc-btn:hover { background: #62ff48; transform: translateY(-1px); }
.apoc-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.apoc-error {
  display: none; margin-top: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.5; color: #ff9b9b; background: rgba(255, 86, 86, 0.08);
  border: 1px solid rgba(255, 86, 86, 0.32); border-radius: 9px; padding: 11px 13px;
}

/* success panel — JS flips display to block on send */
.thankyou {
  display: none; text-align: center; background: #0f1318;
  border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 16px; padding: 44px 28px;
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.85);
}
.thankyou-check {
  width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(57, 255, 20, 0.12); border: 1px solid rgba(57, 255, 20, 0.45);
  display: flex; align-items: center; justify-content: center; color: #39ff14; font-size: 24px;
}
.thankyou-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.thankyou-text { font-size: 16px; line-height: 1.6; color: #9aa1ab; max-width: 380px; margin: 0 auto; }

/* ===== Footer ===== */
.footer { background: #0a0c0f; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 30px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-dot { width: 10px; height: 10px; border-radius: 3px; background: #39ff14; }
.footer-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #8a929c; }
.footer-links {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8a929c;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-links a { text-decoration: none; color: inherit; transition: color .15s; }
.footer-links a:hover { color: #e2e6eb; }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #4a515b; }

/* ===== Legal / support pages (terms.html, privacy.html, support.html) ===== */
.legal-inner { max-width: 760px; margin: 0 auto; padding: 72px 28px 96px; }
.legal-title {
  font-size: 38px; line-height: 1.1; font-weight: 700;
  letter-spacing: -0.025em; margin: 0 0 10px;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6b727c;
  margin: 0 0 44px;
}
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 42px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #9aa1ab; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: #c3c9d1; font-weight: 600; }
.legal a { color: #39ff14; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .legal-address { font-style: normal; }

/* ===== Utilities ===== */
.code { font-family: 'JetBrains Mono', monospace; color: #bdc4cc; }
.t-green { color: #39ff14; }
.t-dim { color: #6b727c; }
.t-orange { color: #ff9d6e; }
.t-bright { color: #c3c9d1; }

/* ===== Responsive ===== */

/* Tablet: stack the hero, ease the oversized type and section padding. */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 60px; }
  .hero-title { font-size: 46px; }
  .section-inner { padding: 64px 24px 70px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { margin-top: 0; }
  .contact-inner { padding: 76px 24px 84px; }
}

/* Phone: single-column cards, hide the inline nav links, shrink headings. */
@media (max-width: 600px) {
  .nav-inner { padding: 14px 18px; gap: 14px; }
  .nav-links { display: none; }
  .nav-actions { gap: 10px; }

  .hero { padding: 48px 20px 52px; gap: 32px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .term-body { font-size: 12px; padding: 18px 16px; }

  .section-inner { padding: 56px 20px 60px; }
  .section-title { font-size: 30px; }
  .section-title.wide { margin-bottom: 32px; }
  .cap-grid { grid-template-columns: 1fr; }

  .contact-inner { padding: 64px 20px 72px; }
  .contact-title { font-size: 32px; }
  .contact-lead { font-size: 16px; }

  .apoc-grid { grid-template-columns: 1fr; }
}
