/* KiteForge dark, logo-first theme.
   Palette pulled from the brand mark: deep near-black navy ground,
   burnt-orange kite, cream wordmark. */

:root {
  --bg:            #0a1220;
  --bg-alt:        #0d1a2c;
  --surface:       #111e33;
  --surface-hi:    #16263f;
  --border:        rgba(242, 220, 194, 0.12);
  --border-hi:     rgba(242, 220, 194, 0.24);

  --text:          #ecebe6;
  --muted:         #9aa6b6;
  --cream:         #f2dcc2;
  --accent:        #e0964a;
  --accent-hi:     #f0a860;
  --accent-ink:    #1a1206;

  --font-display:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:        14px;
  --radius-sm:     10px;
  --maxw:          1080px;
  --pad:           1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1rem; }
a { color: var(--accent-hi); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-mark { width: 34px; height: 34px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  color: var(--accent-hi);
  border: 1px solid var(--border-hi);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost {
  border: 1px solid var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cream); }

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 40rem at 70% -10%, rgba(224, 150, 74, 0.14), transparent 60%),
    radial-gradient(50rem 40rem at -10% 20%, rgba(242, 220, 194, 0.06), transparent 55%);
}

.hero-inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-hi);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.1rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--muted); }

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.card-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1.5px solid var(--accent);
}

/* Two-up card grid (does not collapse to 3 columns) */

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* Video card */

.card-video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Social / Follow along */

.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.social-feed {
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 0;
}
.fb-embed {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  overflow: hidden;
}

.social-follow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.social-follow > p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-btn:hover {
  border-color: var(--cream);
  background: var(--surface-hi);
}
.social-btn-sub {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .social-layout { grid-template-columns: 1fr; }
}

/* Project cards */

.project-role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-hi);
  margin-bottom: 0.4rem;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.5rem;
}
.project-links .project-link { margin-top: 0; }

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px;
}
.project-link:hover { border-color: var(--accent-hi); }

/* Pricing */

.price { text-align: left; }
.price-tag {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.2rem 0 0.6rem;
}
.price-tag span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.price-feature {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  box-shadow: 0 0 0 1px rgba(224, 150, 74, 0.15) inset;
}

.note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Who it's for ---------- */

.industry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.industry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.industry img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.industry span {
  display: block;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-hi);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
}
.about-body p { color: var(--muted); }
.about-body p:last-child { margin-bottom: 0; }
.about-fineprint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(50rem 30rem at 50% 120%, rgba(224, 150, 74, 0.16), transparent 60%);
  text-align: center;
}
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact .lede { margin-bottom: 2rem; }
.contact-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-meta a { color: var(--accent-hi); }

.contact-form {
  text-align: left;
  display: grid;
  gap: 1rem;
}
.hp-field { position: absolute; left: -5000px; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.field .opt { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-form button { justify-self: start; margin-top: 0.25rem; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status.ok { background: var(--surface-hi); color: var(--text); }
.form-status.err { background: rgba(224, 74, 74, 0.12); color: #f0b0b0; }

/* ---------- Legal pages ---------- */

.legal { max-width: 46rem; }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent-hi); }
.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}
.error-page .container { max-width: 32rem; }
.error-mark { margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p { margin: 0; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { color: var(--text); }

/* ---------- Mobile nav ---------- */

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

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .site-nav.open { transform: translateY(0); }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .site-nav .nav-cta {
    border: 0;
    padding: 0.9rem 0;
    border-radius: 0;
  }
  .site-nav .nav-cta:hover { background: none; color: var(--accent-hi); }

  .footer-inner { justify-content: flex-start; }
}
