/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: #07080a;
}
body {
  margin: 0;
  min-height: 100vh;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Real fixed-position element instead of background-attachment:fixed —
   iOS Safari (incl. in-app browsers) doesn't reliably keep fixed
   backgrounds pinned on scroll, but position:fixed elements work fine. */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #07080a;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(to bottom, rgba(5,6,8,0.25), rgba(5,6,8,0.8) 55%, #07080a 100%),
    url("assets/topo-bg.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover, cover, 1600px 1000px;
  pointer-events: none;
}

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

a { color: inherit; text-decoration: none; }

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.35);
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover { text-decoration-color: rgba(255,255,255,0.9); }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 88px 0;
  scroll-margin-top: 100px;
}
section + section { border-top: 1px solid rgba(255,255,255,0.08); }

.panel {
  background: rgba(8,9,11,0.82);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 22px;
}

h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

#what-we-do h3 {
  font-size: 22px;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.9);
  margin: 26px 0 10px;
}
h3 + h4 { margin-top: 16px; }

p { margin: 0 0 16px; color: rgba(255,255,255,0.82); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.92);
}

ul.check, ul.bullet, .numbered {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
ul.check li, ul.bullet li, .numbered li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,0.85);
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 1.4px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}
ul.bullet li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.numbered {
  counter-reset: numbered-list;
}
.numbered li {
  counter-increment: numbered-list;
  padding-left: 30px;
}
.numbered li::before {
  content: counter(numbered-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.founder__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 593 / 640;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 640px) {
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .founder__photo { max-width: 160px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: #ffffff;
  color: #07080a;
}
.btn--primary:hover { background: #f0a955; }

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover { border-color: #ffffff; }

.btn--arrow::after { content: "→"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6,7,9,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.wordmark {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.wordmark__t {
  position: relative;
}
.wordmark__t::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.12em;
  bottom: -5px;
  height: 2px;
  border-radius: 1px;
  background: #f0a955;
  animation: cursor-blink 1s infinite;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__t::after { animation: none; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: #ffffff; }
.site-nav .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.mobile-nav a:not(.btn) {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { margin-top: 14px; justify-content: center; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 36px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.26;
  margin-bottom: 26px;
  max-width: 26ch;
}
.hero .lede { max-width: 62ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero--home { padding: 104px 0 140px; }
.hero--home h1 { font-size: clamp(32px, 4.8vw, 52px); }
.hero--home .lede { font-size: clamp(18px, 2.1vw, 21px); margin-bottom: 52px; }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
  max-width: 640px;
}
.offer-card p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; gap: 28px; max-width: none; }
}

/* ---------- Checklist "is this you" ---------- */
.qualify-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-weight: 600;
  color: #fff;
}

/* ---------- Numbered process ---------- */
.steps {
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 26px;
}
.step__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  padding-top: 3px;
}
@media (max-width: 560px) {
  .step { grid-template-columns: 34px 1fr; padding: 20px; gap: 14px; }
}

/* ---------- What we do list ---------- */
.offer-list {
  padding: 30px 30px 30px;
}
.section-cta { margin-top: 28px; }

/* ---------- Pricing ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.pricing-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.pricing-table tr:last-of-type td { border-bottom: none; }
.pricing-table td:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 17px;
}
.pricing-notes {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.pricing-notes span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-notes span::before {
  content: "✓";
  color: rgba(255,255,255,0.7);
}
.pricing-cta { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.09); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 550;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.faq-q__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-q__icon::before, .faq-q__icon::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.7);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q__icon::before { width: 12px; height: 1.6px; }
.faq-q__icon::after { width: 1.6px; height: 12px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq-item[open] .faq-q__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  padding: 0 4px 22px;
  max-width: 68ch;
}
.faq-a p { color: rgba(255,255,255,0.72); font-size: 15px; }

details.faq-item > summary { list-style: none; }
details.faq-item > summary::-webkit-details-marker { display: none; }

/* ---------- Contact / intake ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.contact-side { max-width: 56ch; }
.contact-side .btn { margin-top: 22px; }

.form-panel { padding: 30px; }
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.03em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 14px; }
.form-success {
  display: none;
  padding: 20px;
  border-radius: 12px;
  background: rgba(240,169,85,0.1);
  border: 1px solid rgba(240,169,85,0.35);
  color: #f0d3a8;
  font-size: 15px;
}
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 24px 60px;
  text-align: center;
}
.site-footer p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
