*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F4F1ED;   /* warm off-white — main body */
  --surface:  #FFFFFF;   /* cards and boxes */
  --surface2: #EAE7E2;   /* alternate section tint */
  --nav:      #3D5A73;   /* nav, footer, page headers — keep dark */
  --red:      #D94F3F;   /* slightly warmer red */
  --text:     #2A3140;   /* main body text */
  --text-mid: #6B7B8C;   /* secondary / label text */
  --border:   #D8D4CE;   /* card borders */
  --accent:   #3D5A73;   /* headings accent */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(61,90,115,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 3px solid var(--red);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: none;
  flex-direction: column;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(61,90,115,0.99);
  border-bottom: 2px solid var(--red);
  padding: 0.5rem 0;
  z-index: 99;
}

.nav-links.open { display: flex; }

.nav-links li a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #e8ecef;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, background 0.2s;
}

.nav-links li:last-child a { border-bottom: none; }
.nav-links a:hover,
.nav-links a.active { color: var(--red); background: rgba(255,255,255,0.05); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.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); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background:
    linear-gradient(135deg, rgba(61,90,115,0.88) 0%, rgba(42,49,64,0.93) 100%),
    url('tanks.webp') center/cover no-repeat;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.page-header .section-label {
  color: #F1948A;
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.page-header h1 span { color: var(--red); }

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0.75rem auto 0;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(61,90,115,0.78) 0%, rgba(42,49,64,0.88) 100%),
    url('tanks.webp') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217,79,63,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,79,63,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

#hero h1 em { font-style: normal; color: var(--red); }

#hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--red);  color: #ffffff; }
.btn-secondary { background: transparent; color: #ffffff; border: 2px solid rgba(255,255,255,0.7); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

/* ── LAYOUT ── */
section { padding: 4.5rem 1.5rem; }

.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

h2 span { color: var(--red); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 2.75rem;
}

/* ── GOAL BOX ── */
.goal-box {
  background: var(--surface);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 2rem 2.25rem;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.goal-box p { color: var(--text); font-size: 1rem; line-height: 1.8; }

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.feature-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(217,79,63,0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ── PHASE HEADINGS ── */
.phase-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 0;
}

.phase-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.phase-tag.now    { background: rgba(217,79,63,0.12);  color: #B83A2C; }
.phase-tag.soon   { background: rgba(52,130,200,0.12); color: #2660A4; }
.phase-tag.future { background: rgba(40,170,100,0.12); color: #1E7A48; }

.phase-heading h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }

.phase-divider { flex: 1; height: 1px; background: var(--border); }

/* ── BOXES (eBay, signup, contact, promo) ── */
.promo-box,
.ebay-box,
.signup-box,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.promo-box .promo-icon,
.ebay-box .ebay-icon,
.contact-box .contact-icon { font-size: 2.5rem; color: var(--red); margin-bottom: 1rem; }

.promo-box h2, .ebay-box h2, .signup-box h2, .contact-box h2 { margin-bottom: 0.65rem; }
.promo-box p,  .ebay-box p,  .signup-box p,  .contact-box p  { color: var(--text-mid); margin-bottom: 1.75rem; }

.coming-soon-badge {
  display: inline-block;
  background: rgba(52,130,200,0.1);
  color: #2660A4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Signup form */
#signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

#signup-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.8rem 1.1rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

#signup-form input[type="email"]:focus { border-color: var(--red); }
#signup-form input[type="email"]::placeholder { color: var(--text-mid); }

#form-success { display: none; margin-top: 1rem; color: #1E7A48; font-weight: 600; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 0.65rem; text-align: left; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-mid); }

.contact-form textarea { min-height: 130px; }
.contact-form .btn { align-self: center; margin-top: 0.25rem; }

#contact-success { display: none; margin-top: 1rem; color: #1E7A48; font-weight: 600; }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  max-width: 580px;
  margin: 3rem auto 0;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(217,79,63,0.1));
}

.timeline-item { position: relative; margin-bottom: 2.5rem; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.44rem;
  top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
}

.timeline-item.future::before { background: var(--text-mid); }

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.timeline-item.future .timeline-date { color: var(--text-mid); }
.timeline-item h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.timeline-item p  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

/* ── HOME: QUICK LINKS ── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.quick-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.quick-card i  { font-size: 1.4rem; color: var(--red); }
.quick-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.quick-card p  { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; }

/* ── HOME: CROWDFUND BANNER ── */
.crowdfund-banner {
  background: var(--nav);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.crowdfund-banner-text h2 {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.crowdfund-banner-text p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 460px; }

/* ── FOOTER ── */
footer {
  background: var(--nav);
  border-top: 3px solid var(--red);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-logo { font-size: 1.4rem; font-weight: 900; color: #ffffff; margin-bottom: 1rem; }
.footer-logo span { color: var(--red); }

.social-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover { background: var(--red); color: #ffffff; }

footer p     { color: rgba(255,255,255,0.5); font-size: 0.82rem; line-height: 1.8; }
footer small { display: block; margin-top: 0.5rem; color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ── ALTERNATE SECTION BG ── */
.bg-alt { background: var(--surface2); }

/* ── TABLET ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .phase-heading { flex-wrap: wrap; gap: 0.5rem; }
  .phase-divider { display: none; }
  .crowdfund-banner { flex-direction: column; text-align: center; }
}

/* ── MOBILE ── */
@media (max-width: 680px) {
  nav     { padding: 1rem 1.25rem; }
  section { padding: 3rem 1.25rem; }
  #hero   { min-height: 70vh; padding: 3rem 1.25rem; }
  .goal-box { border-radius: 6px; }
  .features-grid { grid-template-columns: 1fr; }
  .phase-heading { flex-wrap: wrap; gap: 0.5rem; }
  .phase-divider { display: none; }
  .promo-box, .ebay-box, .signup-box, .contact-box { padding: 2rem 1.25rem; }
  .btn { width: 100%; justify-content: center; }
  #signup-form { flex-direction: column; }
  #signup-form input[type="email"] { width: 100%; }
  .timeline { padding-left: 1.5rem; }
  .crowdfund-banner { padding: 1.75rem 1.25rem; }
  .quick-links { grid-template-columns: 1fr 1fr; }
}
