/* ===========================================================
   Keith Codex — dark "technical blueprint" theme
   Mobile-first. No motion (state feedback only).
   =========================================================== */

:root {
  /* color — semantic tokens */
  --bg:         #0A0A0B;
  --bg-alt:     #0E0E12;
  --surface:    #141418;
  --surface-2:  #1A1A20;
  --border:     rgba(255,255,255,0.10);
  --border-2:   rgba(255,255,255,0.16);
  --text:       #ECECEE;
  --muted:      #A6A6AE;   /* >4.5:1 on --bg */
  --accent:     #F26B1D;   /* amber */
  --accent-press:#D85A12;
  --ink:        #0A0A0B;   /* text on accent */

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(242,107,29,0.07), transparent 55%),
    radial-gradient(100% 100% at 50% 0%, rgba(255,255,255,0.025), transparent 60%);
  background-attachment: scroll;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons (44px+ targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; margin-top: 24px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 16px; letter-spacing: 2px; color: var(--text); }
.brand-name span { font-weight: 400; opacity: .85; }
.brand-name strong { font-weight: 800; }
.nav-links { display: none; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 14px; text-decoration: none;
  color: var(--muted); padding: 8px 0;
  transition: color .12s ease;
}
.nav-links a:hover { color: var(--text); }
.header-cta { flex: none; }

/* ---------- Mobile hamburger toggle ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Animate to × when open */
.site-header.nav-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown — shown when .nav-open is on the header */
.site-header.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10,10,11,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  padding: 8px 20px 20px;
  gap: 0;
  z-index: 49;
}
.site-header.nav-open .nav-links a {
  font-size: 17px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.site-header.nav-open .nav-links a:last-child { border-bottom: none; }
.site-header.nav-open .nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.88) 60%, var(--bg) 100%),
    url('../assets/bg-trust.jpg') center / cover no-repeat;
  background-color: var(--bg);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px;
  color: var(--accent); text-transform: uppercase; margin: 0 0 20px;
}
.hero h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 800; }
.lede {
  font-size: clamp(17px, 2.4vw, 20px); color: var(--muted);
  max-width: 56ch; margin: 22px 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 36px; font-size: 14px; color: var(--muted); }
.hero-note .mono { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tag { font-size: 13px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin: 0 0 12px; }
.section-title { font-size: clamp(28px, 5.5vw, 42px); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 52ch; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card-num { display: block; color: var(--accent); font-size: 14px; margin-bottom: 16px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 8px 0 4px; color: var(--text); }
.price-card .price .mono { font-size: 22px; color: var(--muted); font-weight: 500; }
.price-for { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; flex: 1; }
.ticks li { position: relative; padding: 8px 0 8px 26px; color: var(--text); font-size: 15px; border-bottom: 1px solid var(--border); }
.ticks li:last-child { border-bottom: none; }
.ticks li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-family: var(--font-mono); }
.price-card.featured { border-color: var(--accent); background: var(--surface-2); }
.badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: var(--ink);
  font-size: 12px; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase;
}

/* (Testimonials section removed - the real work is the proof.) */

/* ---------- Work ---------- */
.work-card { display: flex; flex-direction: column; }
.work-tags { font-size: 13px; color: var(--accent); margin-bottom: 14px; letter-spacing: .5px; }
.link-arrow {
  margin-top: 18px; font-family: var(--font-display); font-weight: 700;
  text-decoration: none; color: var(--text);
  transition: color .12s ease;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow.muted { color: var(--muted); }

/* ---------- Image bands ---------- */
.band { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background-color: var(--bg-alt); }
.band-workspace {
  background:
    linear-gradient(180deg, rgba(10,10,11,0.86), rgba(10,10,11,0.92)),
    url('../assets/bg-workspace.jpg') center / cover no-repeat;
}
.band-code {
  background:
    linear-gradient(180deg, rgba(10,10,11,0.84), rgba(10,10,11,0.93)),
    url('../assets/bg-code.jpg') center / cover no-repeat;
}

/* ---------- About ---------- */
.about-inner { max-width: 680px; }
.about-copy { color: var(--text); font-size: clamp(16px, 2.2vw, 18px); margin: 0 0 18px; }

/* ---------- Start / contact ---------- */
.start-inner { max-width: 760px; }
.start-fallback { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Closing CTA ---------- */
.cta-final { text-align: center; }
.cta-final .section-sub { margin-left: auto; margin-right: auto; }
.cta-final .hero-actions { justify-content: center; }

/* (FAQ section removed.) */

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .12s ease; }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-contact a { color: var(--accent); text-decoration: none; }
.footer-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ---------- Focus states (a11y) ---------- */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ===========================================================
   Breakpoints — enhance upward
   =========================================================== */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .section { padding: 96px 0; }
  .hero { padding: 132px 0 110px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-contact { flex-direction: row; gap: 24px; }
}

/* ===========================================================
   Respect reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
