/* ============================================================
   BITFORGE — Main Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --blue:        #1A56DB;
  --blue-dark:   #1341B0;
  --blue-light:  #3B82F6;
  --gold:        #F59E0B;
  --gold-dark:   #D97706;
  --red:         #DC2626;
  --green:       #16A34A;

  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --navy-light:  #334155;
  --slate:       #475569;
  --muted:       #94A3B8;
  --border:      #E2E8F0;
  --bg-light:    #F8FAFC;
  --white:       #FFFFFF;

  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--slate); }

.text-white p, .text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.text-blue  { color: var(--blue); }
.text-gold  { color: var(--gold); }

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
  /* logo has white bg — invert only needed if bg is dark */
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta { margin-left: 8px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px 24px;
}

.nav-mobile a {
  color: var(--muted);
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,86,219,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,219,0.15);
  border: 1px solid rgba(26,86,219,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-support {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-dark {
  background: var(--navy-mid);
  border-color: rgba(255,255,255,0.06);
}

.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: var(--muted); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.icon-blue  { background: rgba(26,86,219,0.12); }
.icon-gold  { background: rgba(245,158,11,0.15); }
.icon-green { background: rgba(22,163,74,0.12); }
.icon-red   { background: rgba(220,38,38,0.10); }

.card h3 { margin-bottom: 10px; }
.card h4 { margin-bottom: 8px; }

/* ---------- Dark sections ---------- */
.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-label { color: var(--gold); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--muted); }

.section-mid {
  background: var(--navy-mid);
}
.section-mid h2, .section-mid h3 { color: var(--white); }
.section-mid p { color: var(--muted); }
.section-mid .section-label { color: var(--gold); }

.section-light { background: var(--bg-light); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 { margin-bottom: 8px; }

/* ---------- Outcomes / Stats ---------- */
.outcomes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.outcome-item {
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  background: var(--navy-mid);
}

.outcome-item p {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- Beliefs ---------- */
.beliefs { display: flex; flex-direction: column; gap: 16px; }

.belief-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--navy-mid);
}

.belief-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
}

.belief-item p {
  color: var(--muted);
  margin: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ---------- Contact Form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { color: var(--white); margin-bottom: 16px; }
.contact-info p  { color: var(--muted); margin-bottom: 24px; }

.expect-list { display: flex; flex-direction: column; gap: 16px; }

.expect-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.expect-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245,158,11,0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expect-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  padding-top: 4px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-card h3 { margin-bottom: 28px; color: var(--navy); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--green);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 260px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Page hero variants ---------- */
.hero-sm { padding: 72px 0 60px; }

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 72px 0 56px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }

  .outcomes-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
}
