:root {
  --brand: #db0000;
  --ink: #0f0f12;
  --heading: #1e293b; /* Modern dark slate */
  --muted: #6b7280;
  --panel: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --radius: 16px;
  --max: 1000px;
}
* { box-sizing: border-box }
html, body { margin: 0; padding: 0; background: #fff; color: var(--ink); font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" }
img { max-width: 100%; display: block }
a { color: var(--brand); text-decoration: none }
a:hover { text-decoration: underline }

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.spacer-64 { height: 64px }
.spacer-40 { height: 40px }
.spacer-10 { height: 10px }

/* HERO */
.hero { position: relative; width: 100%; height: 100vh; min-height: 560px; overflow: hidden; isolation: isolate; background: #000; }
.hero-bg { position: absolute; inset: 0; z-index: 0 }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .9s ease; will-change: opacity;
}
.hero-bg img.is-active { opacity: 1 }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .20) 40%, rgba(0, 0, 0, .35) 100%); z-index: 1; pointer-events: none; }
.hero-bar { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; }
.hero-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; }

/* Navigation */
.brand-left { display: flex; align-items: center; z-index: 10; }
.brand-left img { height: 48px; width: auto }

.header-right { display: flex; align-items: center; gap: 32px; z-index: 10; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 15px; transition: color .2s ease }
.nav-links a:hover { color: #fff; text-decoration: none; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

/* CTA / Login Button Desktop */
.cta-btn {
  appearance: none; border: 1.25px solid #ffffff; background: transparent;
  color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  transition: .25s transform, .25s border-color, .25s color, .35s box-shadow;
  backdrop-filter: saturate(140%) blur(2px);
  position: relative; overflow: hidden; z-index: 0;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none !important;
}
.cta-btn--brand { border-color: #fff }
.cta-btn--hoverfill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, var(--brand), #ff3b3b);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.cta-btn--hoverfill:hover { transform: translateY(-1px) scale(1.04); color: #fff; border-color: transparent; box-shadow: 0 12px 30px rgba(219, 0, 0, .35); }
.cta-btn--hoverfill:hover::after { transform: scaleX(1) }
.cta-btn--hoverfill:active { transform: translateY(0) scale(1.0) }

/* MOBILE MENU STYLES */
.mobile-menu-btn {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  z-index: 20;
}
.mobile-menu-btn svg {
  width: 32px; height: 32px;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-nav-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%;
  background: #fff;
  padding: 80px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 5; /* Behind brand logo but on top of hero content */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.mobile-nav-overlay.is-open {
  transform: translateY(0);
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--ink); /* Dark color for white background */
  cursor: pointer;
  padding: 5px;
}
.mobile-close-btn svg {
  width: 32px; height: 32px;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav-links a {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
.mobile-nav-links a.mobile-login {
  color: var(--brand);
  border-bottom: none;
  margin-top: 10px;
}

.hero-center { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 32px; }
.hero h1 { color: #fff; margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-size: clamp(36px, 5vw, 64px); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }

.hero p {
  color: #fff;
  opacity: .9;
  margin: 32px auto 0;
  max-width: 860px;
  font-size: clamp(16px, 2.2vw, 20px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

/* MAIN CONTENT */
main { background: #fff }

.section { padding-top: 80px; padding-bottom: 80px; }

/* Alternating Features */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }

/* Global H2 Styles */
.feature-text h2 {
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  color: var(--heading);
  line-height: 1.25;
}

/* Updated Bullet List Styles for Feature Text */
.feature-text ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.feature-text li {
  margin-bottom: 10px;
}
.feature-text li:last-child {
  margin-bottom: 0;
}

.feature-img {
  position: relative;
}
.feature-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #f3f4f6;
}

/* Sketch Button Style */
.btn-sketch {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
}
.btn-sketch:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(219, 0, 0, 0.2);
}

/* Newsletter Section */
.newsletter-section {
  background: #f9fafb;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  padding: 60px 20px;
}

.newsletter-content h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: normal;
}
.newsletter-content p {
  color: var(--muted);
  margin: 0 0 24px;
}

.newsletter-form {
  display: inline-flex;
  gap: 12px;
  max-width: 600px;
  width: 100%;
}
.input-field {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.input-field:focus {
  border-color: var(--brand);
}
.newsletter-form .btn-sketch {
  padding-left: 40px;
  padding-right: 40px;
  white-space: nowrap;
}

/* Demo Form Section */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.demo-left h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 0 0 24px;
}
.demo-left h2 strong {
  font-weight: 800;
}

.demo-left p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 1rem;
}

.demo-right h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 20px;
  text-align: center;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--brand);
}

/* Checkbox Styles */
.checkbox-group-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 8px;
  display: block;
}
.checkbox-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-item input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.form-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 16px;
  font-weight: 700;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(219, 0, 0, 0.25);
}

.disclaimer {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}
.disclaimer a { text-decoration: underline; color: #6b7280; }

/* FOOTER STYLES */
footer {
  border-top: 1px solid #eee;
  padding: 60px 0 40px;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
  object-fit: contain;
  align-self: flex-start;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.footer-contact-item a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-contact-item a:hover { text-decoration: underline; color: var(--brand); }

.footer-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading);
  margin: 0 0 4px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

@media (prefers-reduced-motion:reduce) {
  .cta-btn, .tab-btn, .btn-sketch { transition: none }
  .hero-bg img { transition: none }
}

/* Responsive Logic */
@media (max-width: 1024px) {
  .feature-row { gap: 40px; }
  .demo-grid { gap: 40px; }
}

@media (max-width: 780px) {
  .container { padding: 0 28px; }

  /* Hero Adjustments */
  .hero { height: 100svh; min-height: 520px }

  /* --- MOBILE HERO IMAGE FIX --- */
  /* Hide all images by default on mobile to stop visual slideshow */
  .hero-bg img {
    display: none !important;
  }
  /* Force display Image #5 only, and ensure it is centered */
  .hero-bg img:nth-child(5) {
    display: block !important;
    opacity: 1 !important;
    object-position: center;
  }
  /* ----------------------------- */

  .hero-top { padding: max(12px, env(safe-area-inset-top)) 24px 12px 24px; gap: 10px; }
  .brand-left img { height: 36px }

  /* HIDE Desktop Nav & CTA */
  .nav-links { display: none }
  .header-right .cta-btn { display: none; }

  /* SHOW Mobile Menu Toggle */
  .mobile-menu-btn { display: block; }

  .hero-center { padding: 0 24px }
  .hero h1 { font-size: clamp(28px, 7.2vw, 38px) }
  .hero p { font-size: clamp(14px, 4vw, 16px); max-width: 560px; margin-top: 24px; }

  /* Stack Features */
  .section { padding-top: 60px; padding-bottom: 60px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 80px; }

  .feature-row.alt .feature-text { order: 0; }
  .feature-row.alt .feature-img { order: 1; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn-sketch { width: 100%; text-align: center; }

  /* Demo Stack */
  .demo-grid { grid-template-columns: 1fr; gap: 30px; }
  .demo-left h2 { font-size: 30px; margin-bottom: 16px; }
  .demo-right h2 { font-size: 28px; margin-bottom: 16px; }

  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}