:root{
  --bg: #070A12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.10);
  --accent: #67E8F9;
  --accent2: #A78BFA;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 28px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(103,232,249,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(167,139,250,.12), transparent 60%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  position: relative; /* allow absolute children to reference this when needed */
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Top progress bar */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1000;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.60);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark{
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(103,232,249,.35), rgba(167,139,250,.35));
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-text{
  display: grid;
  line-height: 1.05;
}
.brand-text strong{ font-size: 14px; }
.brand-text span{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a{
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,.82);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 14px;
  cursor: pointer;
}
.burger{
  display:block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.85);
  margin: 0 auto;
  position: relative;
}
.burger::before, .burger::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.85);
}
.burger::before{ top:-6px; }
.burger::after{ top: 6px; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(103,232,249,.22), rgba(167,139,250,.18));
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .15s ease, filter .15s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn:active{ transform: translateY(0px); }

.btn-small{ padding: 10px 12px; border-radius: 12px; font-weight: 800; }
.btn-ghost{
  background: rgba(255,255,255,.04);
  box-shadow: none;
}
.link{
  color: rgba(255,255,255,.86);
  font-weight: 700;
}
.link:hover{ text-decoration: underline; }
.muted{ color: var(--muted); }

/* Sections */
.section{
  padding: 72px 0;
}
.section-muted{
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.02), transparent);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.section-head h2{
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* HERO adjustments */
.hero{
  position: relative;
  padding: 86px 0 54px;
  overflow: visible;
}

/* Align decorative hero background with the centered container:
   - center the background to the middle of the container using left:50% and translateX
   - cap the width to the same --max so decorations align with content edges
*/
.hero-bg{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(1200px, calc(var(--max) + 320px)); /* wiggle room for glow, but constrained */
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(500px 260px at 30% 30%, rgba(103,232,249,.16), transparent 60%),
    radial-gradient(420px 240px at 70% 40%, rgba(167,139,250,.14), transparent 60%);
  filter: blur(0px);
}

/* Hero grid: make sure grid aligns to container and gives room for media glow */
.hero-grid{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2; /* put content above hero-bg */
}

/* Pill / hero copy */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: 12px;
}
.pill .dot{
  width: 10px; height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.hero h1{
  margin: 14px 0 0;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.cta-row{
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.trust-item{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.trust-item strong{ display:block; font-size: 14px; }
.trust-item span{ display:block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.hero-media{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
}

/* Media card: avoid overflowing shadows misaligning layout; keep content above bg */
.media-card{
  position: relative;
  border-radius: var(--radius2);
  overflow: visible; /* allow glow element to show but remain anchored */
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  z-index: 3; /* image sits above floating stat background */
}

.media-card img{
  width: 100%;
  height: auto;
  display: block;
}

.media-glow{
  position: absolute;
  inset: auto -30% -30% -30%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(103,232,249,.22), transparent 70%);
  pointer-events: none;
}

/* Floating stats: attach to the hero-media area rather than page right edge.
   On wide screens they sit to the right-bottom of the media card; on small screens they reposition.
*/
.floating-stats{
  position: absolute;
  right: -8px;       /* small offset so it hugs the media card */
  bottom: -14px;
  display: grid;
  gap: 10px;
  width: min(300px, 48%);
  z-index: 4;
}

.stat{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10, 14, 26, .70);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.stat-title{ display:block; font-weight: 900; letter-spacing: .01em; }
.stat-sub{ display:block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Cards */
.cards{
  display: grid;
  gap: 16px;
}
.cards.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: 0 12px 35px rgba(0,0,0,.28);
  padding: 18px;
}
.card h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card p{ color: var(--muted); margin: 10px 0 0; }

.card-actions{
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.card-media .media-mini{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.mini-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mini-k{ display:block; font-size: 12px; color: var(--muted); }
.mini-v{ display:block; margin-top: 3px; font-weight: 800; font-size: 13px; }

/* Checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,.80);
  font-weight: 600;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(103,232,249,.16);
  border: 1px solid rgba(103,232,249,.35);
  color: rgba(255,255,255,.92);
  font-weight: 900;
}

/* Specs */
.specs{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.spec{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.spec-k{ color: var(--muted); font-weight: 700; }
.spec-v{ font-weight: 800; color: rgba(255,255,255,.86); }

.banner{
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(103,232,249,.14), rgba(167,139,250,.10));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.banner h3{ margin: 0; font-size: 18px; }
.banner p{ margin: 6px 0 0; color: var(--muted); }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
  align-items: start;
}
.contact-line{ margin-top: 10px; }

.note{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
}

.form .field{
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.form label{ font-weight: 800; font-size: 13px; color: rgba(255,255,255,.86); }
.form input, .form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, transform .15s ease;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(103,232,249,.45);
}
.error{
  min-height: 16px;
  color: rgba(255,120,120,.95);
  font-weight: 700;
  font-size: 12px;
}
.form-hint{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Footer */
.footer{
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr .8fr .9fr;
  gap: 18px;
  align-items: start;
}
.footer-links{
  display: grid;
  gap: 8px;
}
.footer-links a{
  color: rgba(255,255,255,.78);
  font-weight: 700;
}
.footer-links a:hover{ color: rgba(255,255,255,.92); }
.footer-cta{
  display: grid;
  justify-items: end;
  gap: 10px;
}
.footer-brand{ margin-bottom: 10px; }

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0px);
}

/* Responsive tweaks to keep hero backgrounds aligned */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .floating-stats{ right: 8px; bottom: 8px; width: min(320px, 72%); }
  .cards.two{ grid-template-columns: 1fr; }
  .cards.three{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-cta{ justify-items: start; }
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-grid; place-items: center; }
  .nav-links{
    position: absolute;
    right: 20px;
    top: 68px;
    width: min(92vw, 320px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(7,10,18,.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px; }
  .spec{ grid-template-columns: 1fr; }
}

/* Make hero-bg adapt on very small screens */
@media (max-width: 560px){
  .hero-bg{
    width: calc(100% + 80px);
    left: 50%;
    transform: translateX(-50%);
    top: -80px;
    height: 420px;
    opacity: 0.95;
  }
  .floating-stats{ position: static; width: 100%; margin-top: 10px; }
}
