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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f8f9fc;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3b82f6;
}

.navbar nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #3b82f6;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Button */
.cta-btn {
  background: white;
  color: #3b82f6;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #2563eb;
  color: white;
}
.cta-btn[disabled],
.secondary-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Secondary / Get Early Access Button ===== */
.secondary-btn,
.secondary-btn .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 0;
}

/* Visual style */
.secondary-btn {
  --bg1: #06b6d4;   /* teal-cyan */
  --bg2: #3b82f6;   /* blue */
  --shadow: 0 8px 20px rgba(59,130,246,0.16);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: #fff;
  padding: 0.72rem 1.35rem;
  border-radius: 999px; /* pill */
  box-shadow: var(--shadow);
  transition: transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms, filter 180ms;
  will-change: transform, box-shadow, filter;
  display: inline-flex;
  align-items: center;
}

/* optional inline icon (if using HTML tweak with .btn-ico) */
.secondary-btn .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.05rem;
  transform: translateY(-1px);
}

/* fallback: add an icon via pseudo-element if HTML unchanged */
.secondary-btn::before {
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-1px);
  font-size: 1.02rem;
  line-height: 1;
}
.secondary-btn .btn-ico + .btn-text::before { content: none; }

/* Hover / active */
.secondary-btn:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 30px rgba(59,130,246,0.20);
  filter: saturate(1.05);
}

.secondary-btn:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 8px 18px rgba(59,130,246,0.16);
}

/* Focus (keyboard accessibility) */
.secondary-btn:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 4px;
  box-shadow: 0 10px 24px rgba(59,130,246,0.14);
}

/* Disabled state */
.secondary-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Make it full-width on small screens for better tap targets */
@media (max-width: 520px) {
  .secondary-btn {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
  }
  /* ensure the primary cta and secondary stack nicely (you already use flex) */
  .hero .hero-content > div { /* the container around the two buttons */
    flex-direction: column;
    gap: 12px;
  }
}

/* Small visual tweak if you use both cta-btn and secondary-btn next to each other */
.cta-btn {
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
}


/* Sections */
section {
  padding: 5rem 2rem;
}

.features {
  background: white;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #f3f4f6;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.about {
  text-align: center;
}

.cta {
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  text-align: center;
  color: white;
}

/* Supporters box */
.support-box {
  margin-top: 1rem;
  font-size: 1rem;
  color: #f3f4f6;
}

.email-box {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.email-box input {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
}

.email-box button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
/* make sure the button sits on top and receives touch events on mobile */
.email-box button {
  position: relative;
  z-index: 1100;
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* small polish on mobile */
}

.email-box button:hover {
  background: #2563eb;
}

.highlight {
  margin-top: 1rem;
  font-weight: bold;
  color: #3b82f6;
}


footer {
  background: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 1.5rem;
}

/* Demo animation */
.demo {
  text-align: center;
  padding: 3rem 1rem;
  background: #f9fafb;
}

:root {
  /* how far the PPT travels between laptops (desktop) */
  --ppt-shift: 50px;
}

.demo-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px; /* desktop spacing between laptops */
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.laptop-wrap {
  position: relative;
  width: 260px; /* desktop laptop size */
  overflow: hidden; /* prevents ppt going outside the laptop */
}

.laptop {
  width: 100%;
  height: auto;
  display: block;
}

.ppt {
  position: absolute;
  width: 46%;          /* scale with laptop size */
  top: 28%;            /* position inside the laptop screen */
  left: 27%;
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Animate PPT leaving left laptop */
.ppt-left {
  animation: movePPT 4s infinite linear;
}

/* Animate PPT appearing inside right laptop */
.ppt-right {
  animation: appearPPT 4s infinite linear;
}

/* Keyframes for left PPT (smooth exit) */
@keyframes movePPT {
  0%   { opacity: 1;   transform: translateX(0); }
  25%  { opacity: 1;   transform: translateX(calc(var(--ppt-shift) * 0.4)); }
  35%  { opacity: 0.6; transform: translateX(calc(var(--ppt-shift) * 0.7)); }
  45%  { opacity: 0;   transform: translateX(var(--ppt-shift)); }
  100% { opacity: 0;   transform: translateX(var(--ppt-shift)); }
}

/* Keyframes for right PPT (smooth entry) */
@keyframes appearPPT {
  0%, 44% { opacity: 0;   transform: translateX(calc(var(--ppt-shift) * -0.4)); }
  50%     { opacity: 0.4; transform: translateX(calc(var(--ppt-shift) * -0.2)); }
  60%     { opacity: 0.8; transform: translateX(calc(var(--ppt-shift) * -0.1)); }
  70%     { opacity: 1;   transform: translateX(0); }
  100%    { opacity: 1;   transform: translateX(0); }
}

.demo-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #374151;
}

/* Shows the email input box when clicked support button */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* small form layout for email/country/source */
.email-box {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.email-box input[type="email"],
.email-box input[list],
.email-box input[type="text"],
.email-box select {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 180px;
  flex: 0 1 220px;
}

#statusMsg {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* override .hidden/.visible used for sections */
.email-box.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
}

.email-box.visible {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s ease;
}

/* Early Support Section */
.early-support {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 900px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.early-support:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.early-support h2 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.early-support p {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.early-support strong {
  color: #3b82f6; /* highlight important text */
}

.early-support h3 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #111827;
}

.early-support .tier1-offer-list {
  margin-top: 1rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #374151;
  line-height: 1.6;
}

.early-support .tier1-offer-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.6rem;
  position: relative;
}

.early-support .tier1-offer-list li::before {
  content: "✔";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.early-support .cta-btn {
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

.early-support .cta-btn:hover {
  box-shadow: 0 6px 18px rgba(59,130,246,0.35);
}


/* ============= Mobile Responsive ============= */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding: 10px;
  }

  /* Header: stack or collapse nav */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav a {
    font-size: 13px;
    margin-left: 0;
  }

  /* Hero: stack text above visual */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 22px;
  }
  .hero-text .description {
    font-size: 14px;
  }
  .cta {
    flex-direction: column;
    gap: 10px;
  }

  /* Right visual smaller */
  .stage {
    height: 220px;
    padding: 10px;
  }
  .window-demo {
    width: 160px;
    height: 100px;
    left: 40px;
    top: 60px;
  }

  /* Features */
  .features ul {
    font-size: 14px;
  }

  /* How section: stack vertically */
  .how {
    flex-direction: column;
  }

  /* Usecases: single column */
  .usecases {
    grid-template-columns: 1fr;
  }

  /* Footer: stack */
  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-sub {
    font-size: 10px;
  }
  .hero-text h1 {
    font-size: 18px;
  }
  .hero-text .description {
    font-size: 13px;
    line-height: 1.3;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root { --ppt-shift: 26px; }             /* shorter travel on tablets/phones */

  .demo { padding: 2.25rem 1rem; }

  .demo-container {
    flex-direction: column;                 /* stack laptops vertically */
    align-items: center;
    gap: 28px;                              /* smaller space between laptops */
    max-width: 100%;
  }

  .laptop-wrap { width: 220px; }            /* smaller laptop */
  .ppt {
    width: 48%;                             /* auto-scale PPT to screen */
    top: 27%;
    left: 26%;
  }

  .demo-caption { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  :root { --ppt-shift: 18px; }              /* even shorter travel on small phones */
  .laptop-wrap { width: 180px; }
  .ppt {
    width: 50%;
    top: 27%;
    left: 25%;
  }
  .demo-caption { font-size: 0.9rem; }
}