/* =========================================================
   AnvilWired - agency site (dark "forge" theme)
   ========================================================= */

:root {
  --bg:        #0b0f17;
  --bg-2:      #0e1320;
  --surface:   #141b2b;
  --surface-2: #182234;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eef2f8;
  --text-soft: #97a4ba;
  --accent:    #f59e0b;
  --accent-2:  #fb923c;
  --accent-press: #fbbf24;
  --ink-on-accent: #1a1205;

  --radius:    18px;
  --radius-sm: 11px;
  --maxw:      1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow:   0 24px 60px -28px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font);
  background: var(--bg); color: var(--text-soft);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.kicker {
  text-transform: uppercase; letter-spacing: .15em;
  font-size: .76rem; font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(5) { transition-delay: .08s; }
.cards .reveal:nth-child(6) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .98rem; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--ink-on-accent); box-shadow: 0 10px 28px -10px rgba(245,158,11,.6);
}
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(245,158,11,.8); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,23,.8); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid rgba(245,158,11,.5);
}
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: 18px; }
.nav a { font-weight: 600; color: var(--text-soft); font-size: .96rem; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: 76px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px circle at 82% 8%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(700px circle at 10% 90%, rgba(251,146,60,.10), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); margin-bottom: 20px; }
.lede { font-size: 1.18rem; color: var(--text-soft); max-width: 34ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: .92rem; color: var(--text-soft); }

.hero-visual { position: relative; }
.browser {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.browser:hover { transform: translateY(-3px); border-color: rgba(245,158,11,.55); }
.browser-bar { display: flex; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-url {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .82rem; margin: 0 auto;
}
.browser img { width: 100%; display: block; }
.float-card {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.float-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.float-label { font-size: .82rem; color: var(--text-soft); margin-top: 4px; }

/* ============================ TRUST STRIP ============================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; padding: 18px 24px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.strip-inner strong { color: var(--text); }
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* ============================ SECTIONS ============================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-sub { color: var(--text-soft); font-size: 1.1rem; margin-top: 14px; }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--ink-on-accent);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.24rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); }

/* ---- CARDS ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: rgba(245,158,11,.12); color: var(--accent); margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); }

/* ---- WHY ---- */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.checks { display: grid; gap: 16px; margin-top: 26px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; }
.checks svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.checks strong { color: var(--text); }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stat-num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.stat-label { display: block; color: var(--text-soft); margin-top: 4px; font-weight: 500; }

/* ---- PRICING ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.price-card-feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(245,158,11,.45); }
.price-tag {
  position: absolute; top: -13px; left: 30px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--ink-on-accent);
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price-amt { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.price-per { color: var(--text-soft); font-weight: 600; }
.price-sub { color: var(--text-soft); margin-bottom: 22px; }
.price-list { display: grid; gap: 12px; margin-bottom: 26px; }
.price-list li { position: relative; padding-left: 28px; color: var(--text); }
.price-list li::after {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-foot { text-align: center; color: var(--text-soft); margin-top: 30px; }
.price-foot strong { color: var(--accent); }

/* ---- FAQ ---- */
.faq-wrap { max-width: 760px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-soft); padding: 0 0 20px; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- DEMO CTA / FORM ---- */
.section-cta { position: relative; overflow: hidden; }
.section-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px circle at 50% 0%, rgba(245,158,11,.14), transparent 60%);
}
.demo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.demo-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.quote-points { display: grid; gap: 13px; margin-top: 24px; }
.quote-points li { display: flex; gap: 11px; align-items: center; color: var(--text); font-weight: 600; }
.quote-points svg { color: var(--accent); }

.demo-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label { font-weight: 600; color: var(--text); font-size: .9rem; margin-bottom: 7px; }
.field input, .field select {
  font: inherit; color: var(--text); padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #5d6b82; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.field select option { background: var(--surface); color: var(--text); }
.form-success { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(245,158,11,.14); color: var(--accent-press); font-weight: 700; text-align: center; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-blurb { margin-top: 16px; max-width: 40ch; }
.footer-col h4 { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-soft); margin-bottom: 9px; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; font-size: .88rem; color: var(--text-soft); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 540px; }
  .lede { max-width: none; }
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; margin: 0;
  }
  .site-header.open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .section { padding: 62px 0; }
  .hero { padding: 48px 0 60px; }
  .steps, .cards, .why-stats, .price-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .float-card { right: 10px; bottom: -14px; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
