:root{
  --bg: #0d1117;
  --panel: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.12);
  --text: #e6edf3;
  --muted: #9fb0c3;
  --green: #4ade80;   /* plant green */
  --teal: #22d3ee;    /* accent */
}

/* Global */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 380px at 10% -10%, #082e2a 0%, transparent 60%),
    radial-gradient(900px 380px at 90% -20%, #182a4b 0%, transparent 60%),
    linear-gradient(180deg, #0b1820, var(--bg));
}

/* ===== Header (sticky top) ===== */
#header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}

.header-spacer{ height: 74px; }

.brand{ display: flex; align-items: center; gap: 10px; font-weight: 700; }
#header-img{ width: 36px; height: 36px; object-fit: contain; }

/* ===== Nav Bar (flexbox) ===== */
#nav-bar{
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
#nav-bar .nav-link{
  color: var(--text); text-decoration: none; padding: 8px 12px;
  border-radius: 999px; border: 1px solid transparent;
  transition: .2s ease;
}
#nav-bar .nav-link:hover{
  background: rgba(255,255,255,0.08);
  border-color: var(--stroke);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section{ padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
h1,h2,h3,h4{ margin: 0 0 10px; }
p{ color: var(--muted); }

/* ===== Hero ===== */
.hero .hero-inner{
  display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.hero-copy{ flex: 1 1 420px; min-width: 280px; }
.hero h1{
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #b7ffcf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 28px rgba(74, 222, 128, .25);
}
.hero .sub{ margin: 12px 0 20px; font-size: clamp(16px, 2.2vw, 18px); }

/* Form (required fields) */
#form{ display: flex; gap: 10px; flex-wrap: wrap; }
#email{
  padding: 12px 14px; border-radius: 999px; border: 1px solid var(--stroke);
  background: rgba(255,255,255, .06); color: var(--text); min-width: 260px; outline: none;
}
#email::placeholder{ color: #b8c2d8; }
#submit{
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  color: #04110a; font-weight: 800; letter-spacing: .2px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transition: transform .15s ease, filter .2s ease;
}
#submit:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Hero visual */
.hero-visual{ position: relative; flex: 1 1 420px; min-width: 320px; display: grid; place-items: center; isolation: isolate; }
.hero-img{
  width: min(560px, 92%); border-radius: 18px; border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.glow{
  --mx: 50%; --my: 50%;
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(360px 260px at var(--mx) var(--my), rgba(74,222,128,.35), transparent 60%),
    radial-gradient(360px 260px at calc(var(--mx) - 12%) calc(var(--my) - 12%), rgba(34,211,238,.25), transparent 60%);
  filter: blur(22px); opacity: .9; pointer-events: none;
}

/* ===== Features ===== */
.features h2, .how h2, .specs h2, .pricing h2, .contact h2{
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 16px;
}
.cards{
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 18px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.card:hover{
  background: rgba(255,255,255, .08);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ===== How it works (Video) ===== */
.how .how-copy{ margin-bottom: 14px; }
.video-wrap{
  position: relative; aspect-ratio: 16/9; max-width: 960px; border-radius: 18px;
  border: 1px solid var(--stroke); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
#video{ width: 100%; height: 100%; display: block; }

/* ===== Specs ===== */
.spec-grid{
  display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr);
}
.spec{
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px;
}

/* ===== Pricing ===== */
.tiers{
  display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(240px, 1fr));
}
.tier{
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 18px; text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.tier .price{ font-size: 28px; font-weight: 800; }
.tier ul{ list-style: none; padding: 0; margin: 10px 0 8px; color: var(--muted); }
.tier .btn{
  margin-top: auto; display: inline-block; text-decoration: none;
  color: #04110a; background: linear-gradient(90deg, var(--green), var(--teal));
  padding: 10px 14px; border-radius: 999px; font-weight: 800;
}
.tier.featured{ outline: 2px solid var(--green); background: linear-gradient(180deg, rgba(74,222,128,.10), rgba(34,211,238,.08)); }

/* ===== Contact ===== */
.inline-form{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.inline-form input[type="email"]{
  padding: 12px 14px; border-radius: 999px; border: 1px solid var(--stroke);
  background: rgba(255,255,255, .06); color: var(--text); min-width: 260px; outline: none;
}
.inline-form input[type="submit"]{
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  color: #04110a; font-weight: 800; background: linear-gradient(90deg, var(--green), var(--teal));
}

/* ===== Footer ===== */
.footer{
  padding: 24px; text-align: center; color: var(--muted);
  border-top: 1px solid var(--stroke); background: rgba(255,255,255,.03);
}

/* ===== Media Queries (required) ===== */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .spec-grid{ grid-template-columns: repeat(2, 1fr); }
  .tiers{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .cards, .spec-grid, .tiers{ grid-template-columns: 1fr; }
  .header-spacer{ height: 90px; } /* allow for wrapped nav */
}

/* Subtle fade-in for sections */
.section{
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .7s ease forwards;
}
.section:nth-of-type(2){ animation-delay: .05s; }
.section:nth-of-type(3){ animation-delay: .1s; }
.section:nth-of-type(4){ animation-delay: .15s; }
.section:nth-of-type(5){ animation-delay: .2s; }
.section:nth-of-type(6){ animation-delay: .25s; }

@keyframes fadeUp{ to{ opacity: 1; transform: translateY(0);} }
