/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black:    #000000;
  --blue:     #1b3a4b;
  --teal:     #2d6a4f;
  --red:      #CC0000;
  --amber:    #f48c06;
  --cream:    #f8f4ee;
  --white:     #ffffff;
  --muted:    #94a3b8;
  --border:   #e2e8f0;
  --section-pad: 80px 24px;
  --max-w: 1100px;
  --radius: 10px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── Navbar ───────────────────────────────────────────── */
.navbar {
  background: var(--black);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--red);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: var(--black);
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red) !important; opacity: 0.85; }

/* Mobile nav */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 16px 24px; gap: 16px; border-bottom: 1px solid #1a0000; }
  .nav-links.open { display: flex; }
}

/* ─── Section utilities ───────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 560px;
  line-height: 1.7;
}
.container { max-width: var(--max-w); margin: 0 auto; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(204,0,0,0.35);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(204,0,0,0.4);
  opacity: 0.9;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-lg { font-size: 1.1rem; padding: 16px 36px; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #1a0000 60%, #2d0000 100%);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-width='0.4' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.3);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--black);
  margin-left: -8px;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--white);
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.hero-visual {
  position: relative;
}
.hero-img {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  width: 100%;
}
.hero-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-stat-icon { font-size: 1.4rem; }
.hero-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--black); }
.hero-stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 70px 24px 60px; }
}

/* ─── Problem ──────────────────────────────────────────── */
.problem { background: var(--cream); padding: var(--section-pad); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.problem-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}
.problem-quote {
  margin-top: 48px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.problem-quote-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
}
.problem-quote-source {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}
.problem-quote-badge {
  background: var(--red);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-quote { grid-template-columns: 1fr; }
  .problem-quote-badge { display: none; }
}

/* ─── Solution / Features ──────────────────────────────── */
.features { padding: var(--section-pad); }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header .section-sub { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--red);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.88rem; color: #64748b; line-height: 1.6; }

.features-deep-dive {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--cream) 100%);
  border-radius: 16px;
  overflow: hidden;
}
.features-deep-img {
  width: 100%;
  border-radius: 0;
}
.features-deep-content { padding: 48px; }
.features-deep-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}
.features-deep-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 28px;
}
.features-deep-list { list-style: none; margin-bottom: 32px; }
.features-deep-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 12px;
}
.check-icon { color: var(--teal); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-deep-dive { grid-template-columns: 1fr; }
  .features-deep-content { padding: 32px 24px; }
}

/* ─── How it Works ─────────────────────────────────────── */
.how-it-works { background: var(--black); padding: var(--section-pad); }
.how-it-works .section-heading { color: var(--white); }
.how-it-works .section-sub { color: var(--muted); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 52px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), #990000, #660000);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 16px;
}
.step-item h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
}
@media (max-width: 500px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ─── Pricing ──────────────────────────────────────────── */
.pricing { padding: var(--section-pad); background: var(--cream); }
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-header .section-sub { margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(204,0,0,0.12);
  position: relative;
  transform: scale(1.03);
}
.pricing-badge {
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.pricing-tier { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pricing-name { font-size: 1.2rem; font-weight: 800; color: var(--black); margin-bottom: 16px; }
.pricing-price { font-size: 2.4rem; font-weight: 900; color: var(--black); margin-bottom: 4px; }
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.pricing-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 24px; line-height: 1.5; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li {
  font-size: 0.88rem;
  color: #334155;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; }
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.featured { transform: none; }
}

/* ─── Social Proof / Stats ────────────────────────────── */
.stats { padding: var(--section-pad); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── CTA ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--black) 0%, #1a0000 100%);
  padding: var(--section-pad);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p { font-size: 1rem; color: var(--muted); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-note { font-size: 0.8rem; color: #64748b; }

/* ─── Waitlist Form ─────────────────────────────────────── */
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.45); }
.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.1);
}
.waitlist-form select option { background: var(--black); color: var(--white); }
.waitlist-btn { width: 100%; }
.waitlist-error {
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  background: rgba(252,165,165,0.08);
}
.waitlist-success {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.success-icon {
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 20px;
}
.waitlist-success h2 { color: var(--white); margin-bottom: 12px; }
.waitlist-success p { color: var(--muted); line-height: 1.6; }
.waitlist-success a { color: var(--red); text-decoration: underline; }
@media (max-width: 480px) {
  .waitlist-fields { grid-template-columns: 1fr; }
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: #0a1420;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; font-weight: 700; color: var(--white); font-size: 0.95rem; }
.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.footer-links a { color: var(--muted); margin-left: 20px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
@media (max-width: 500px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links a { margin-left: 0; margin-right: 16px; }
}

/* ─── Calendar Component ──────────────────────────────── */
.calendar-card {
  background: var(--black);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}
.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.calendar-nav-btn:hover {
  background: var(--red);
  opacity: 0.8;
  transform: scale(1.08);
}
.calendar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  flex: 1;
}
.calendar-day-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-align: center;
  padding: 4px 0 8px;
}
.calendar-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  background: rgba(255,255,255,0.06);
  gap: 2px;
  transition: background 0.15s;
}
.calendar-day.other-month {
  color: #2d4a6b;
}
.calendar-day.on-call {
  background: var(--red);
  color: var(--white);
}
.calendar-day.on-call .day-label {
  font-weight: 800;
}
.calendar-day.off-day {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.day-label {
  line-height: 1;
}
.day-crew {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.85;
  line-height: 1;
}

@media (max-width: 640px) {
  .calendar-card { padding: 16px 12px 14px; min-height: 260px; }
  .calendar-title { font-size: 0.85rem; }
  .calendar-logo { height: 18px; }
  .calendar-nav-btn { width: 28px; height: 28px; font-size: 0.85rem; }
  .calendar-day-header { font-size: 0.55rem; padding-bottom: 6px; }
  .calendar-day { font-size: 0.7rem; border-radius: 6px; }
  .day-crew { font-size: 0.48rem; }
  .calendar-grid { gap: 2px; }
}