:root {
  --bg: #2a2a2a;
  --surface: #3a3a3a;
  --border: #5a5a5a;
  --text: #f7f7f7;
  --muted: #b0b0b0;
  --accent: #f97316;
  --accent-2: #fb923c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;  
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(42, 42, 42, 0.10), rgba(42, 42, 42, 0.22)),
    url("../images/lewistown-topo.svg"),
    linear-gradient(145deg, #493a2f 0%, #3b332e 34%, #2f2a27 66%, #2a2a2a 100%);
  background-position: center top, center top, center top;
  background-repeat: no-repeat, repeat-y, no-repeat;
  background-size: cover, 112% auto, cover;
  background-attachment: scroll, scroll, scroll;
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Space Grotesk", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 10px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  background: rgba(42, 42, 42, 0.82);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-badge {
  background: var(--accent);
  color: #1f1f1f;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  flex: 1;
  padding: 30px 0 56px;
}

.btn {
  border-radius: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1f1f1f;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.hero-card,
.panel,
.step-card,
.cap-card,
.form-shell,
.cta-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(58, 58, 58, 0.72), rgba(48, 48, 48, 0.80));
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}

.hero-copy .lede {
  max-width: 65ch;
  font-size: 1.06rem;
}

.hero-card {
  padding: 24px;
}

.hero-card ul,
.panel ul {
  margin: 10px 0 16px;
  padding-left: 16px;
  color: var(--muted);
}

.status-pill {
  margin-top: 14px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #ffd4b1;
  font-size: 0.85rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffc89f;
}

.alt-headline {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #d6d6d6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px auto 16px;
}

.panel {
  padding: 20px;
}

.steps {
  margin: 14px auto 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  padding: 18px;
}

.step-card span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.45);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-strip {
  margin: 16px auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(58, 58, 58, 0.75);
}

.capabilities {
  margin-bottom: 16px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cap-card {
  padding: 18px;
}

.page-head {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(58, 58, 58, 0.82);
}

.page-head h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.form-shell {
  padding: 18px;
  width: min(760px, 100%);
}

.early-form {
  display: grid;
  gap: 10px;
}

.interest-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0 2px;
}

.interest-fieldset legend {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0 6px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-weight: 500;
  cursor: pointer;
}

.check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.honeypot {
  position: absolute;
  left: -99999px;
}

.fine-print {
  font-size: 0.83rem;
}

.cta-panel {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.flash-list {
  margin-bottom: 12px;
}

.flash {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.flash-success {
  border-color: var(--ok);
  color: #9be5b3;
  background: rgba(34, 197, 94, 0.1);
}

.flash-error {
  border-color: var(--danger);
  color: #fcb4b4;
  background: rgba(239, 68, 68, 0.1);
}

.error-shell {
  text-align: center;
  max-width: 700px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(58, 58, 58, 0.85);
}

.error-shell .hero-actions {
  justify-content: center;
}

.error-code {
  font-family: "Sora", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: #ffc89f;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(42, 42, 42, 0.9);
  padding: 24px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.footer-grid h4 {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-logo-txt {
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.footer-findit-logo {
  width: 150px;
  height: auto;
  margin-top: 6px;
}

.footer-bottom {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .steps-grid,
  .cap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
