:root{
  --bg:#07070A;
  --bg2:#0B0B10;
  --text:#F6F6F8;
  --muted: rgba(246,246,248,.72);
  --line: rgba(255,255,255,.10);

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);

  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --shadow2: 0 14px 60px rgba(0,0,0,.35);
  --radius: 22px;

  --accent: rgba(163,0,45,.92);
  --accentDark: rgba(110,0,30,.92);
  --accentGlow: rgba(163,0,45,.25);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(163,0,45,.18), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.45;
}

/* Links */
a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

/* Layout */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 22px;
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:22px; top:22px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff; color:#000;
  border-radius:12px;
  z-index:999;
}

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

.muted{ color:var(--muted); }
.tiny{ font-size:12px; }

/* ===== Glass Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid transparent;
  background: rgba(7,7,10,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled{
  background: rgba(7,7,10,.58);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* Wordmark */
.brand,
.brand:visited,
.brand:hover,
.brand:active{
  color:inherit;
  text-decoration:none;
}
.brand__text{
  font-weight:800;
  letter-spacing:-0.03em;
  font-size:18px;
  color: rgba(246,246,248,.96);
}
.brand__dot{ color: rgba(246,246,248,.70); }
.brand__tld{
  color: rgba(246,246,248,.65);
  font-weight:700;
}

/* Desktop nav */
.nav__links{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav__links a{
  padding:10px 12px;
  border-radius:14px;
  color: rgba(246,246,248,.72);
  font-weight:700;
  letter-spacing:-0.01em;
}
.nav__links a:hover{
  background: rgba(255,255,255,.06);
  color: rgba(246,246,248,.92);
}

/* ===== Buttons + Haptic tap feedback ===== */
/* Haptic: subtle press + glow; works on mobile too */
.btn,
.nav__toggle,
.mobile-overlay__close,
.to-top,
.mobile-overlay__link{
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  font-weight:800;
  letter-spacing:-0.01em;
  transform: translateZ(0);
  transition: transform .14s ease, filter .14s ease, box-shadow .18s ease, background .18s ease;
}
.btn--small{ padding:10px 12px; }

.btn--primary{
  background: linear-gradient(180deg, var(--accent), var(--accentDark));
  border-color: rgba(255,255,255,.12);
}

.btn:active{
  transform: scale(.98);
  filter: brightness(1.03);
}
.btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(163,0,45,.20),
    var(--shadow);
}

/* ===== Hamburger (animated to X) ===== */
.nav__toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow2);
  align-items:center;
  justify-content:center;
  padding:0;
  position:relative;
  transform: translateZ(0);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
}

/* Haptic press on hamburger */
.nav__toggle:active{
  transform: scale(.96);
  box-shadow: 0 10px 45px rgba(0,0,0,.35);
}

/* The 3 lines */
.nav__toggle span{
  position:absolute;
  left:50%;
  width:18px;
  height:2px;
  background: rgba(246,246,248,.92);
  border-radius:2px;
  transform: translateX(-50%);
  transition: transform .22s ease, opacity .18s ease, top .22s ease, background .18s ease;
}
.nav__toggle span:nth-child(1){ top: 14px; }
.nav__toggle span:nth-child(2){ top: 20px; }
.nav__toggle span:nth-child(3){ top: 26px; }

/* When menu is open -> animate to X */
.nav__toggle.is-open span:nth-child(1){
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2){
  opacity:0;
}
.nav__toggle.is-open span:nth-child(3){
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ===== Hero ===== */
.hero{ padding:74px 0 42px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:start;
}
h1{
  margin:0 0 14px;
  font-size:56px;
  line-height:1.02;
  letter-spacing:-0.035em;
}
.lead{
  margin:0 0 18px;
  font-size:18px;
  color: rgba(246,246,248,.80);
  max-width:62ch;
}
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 18px;
}
.chip{
  display:inline-flex;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(246,246,248,.78);
  font-weight:700;
  font-size:13px;
}
.hero__cta{ margin-top:6px; }

/* Panel */
.panel{
  position:relative;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height:220px;
}
.panel__glow{
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(220px 180px at 20% 20%, rgba(163,0,45,.35), transparent 60%),
    radial-gradient(260px 200px at 80% 30%, rgba(255,255,255,.12), transparent 55%);
  filter: blur(18px);
  opacity:.9;
}
.panel__content{ position:relative; padding:22px; }
.panel__kicker{
  margin:0 0 8px;
  font-weight:800;
  letter-spacing:-0.02em;
  color: rgba(246,246,248,.92);
}
.panel__text{ margin:0 0 12px; color: rgba(246,246,248,.72); }
.panel__meta{
  margin:0;
  color: rgba(246,246,248,.65);
  font-weight:700;
  font-size:13px;
}

/* ===== Sections ===== */
.section{ padding:72px 0; }
.section--alt{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.section__head{ margin-bottom:18px; }

h2{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:-0.02em;
}

/* Cards */
.grid{ display:grid; gap:14px; }
.grid--cards{ grid-template-columns: repeat(3,1fr); }

.card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
}
.card h3{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-0.01em;
}
.card p{ margin:0; }

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.about-card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
}
.about-card h3{ margin:0 0 14px; }
.steps{ display:grid; gap:14px; }
.step h4{
  margin:0 0 6px;
  font-size:14px;
  letter-spacing:-0.01em;
  color: rgba(246,246,248,.92);
}
.step p{ margin:0; }

/* Newsletter */
.newsletter .inline-form{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
}
.inline-form input{
  flex:1;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(246,246,248,.95);
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.inline-form input:focus{
  border-color: rgba(163,0,45,.7);
  box-shadow: 0 0 0 4px rgba(163,0,45,.18);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  gap:16px;
  align-items:start;
}
.contact-item + .contact-item{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
}
.contact-card h4{
  margin:0 0 6px;
  font-size:14px;
  letter-spacing:-0.01em;
  color: rgba(246,246,248,.92);
}
.form label{
  display:block;
  font-weight:700;
  font-size:13px;
  color: rgba(246,246,248,.78);
  margin-bottom:10px;
}
.form input, .form select, .form textarea{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(246,246,248,.95);
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.form textarea{ resize:vertical; min-height:120px; }
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(163,0,45,.7);
  box-shadow: 0 0 0 4px rgba(163,0,45,.18);
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* Footer */
.footer{
  padding:52px 0 22px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:16px;
  align-items:start;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.footer h3{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-0.01em;
}
.footer h4{
  margin:0 0 10px;
  font-size:13px;
  color: rgba(246,246,248,.85);
  letter-spacing:-0.01em;
}
.footer ul{ list-style:none; padding:0; margin:0; }
.footer li + li{ margin-top:8px; }
.footer a{ color: rgba(246,246,248,.72); }
.footer a:hover{ color: rgba(246,246,248,.92); }

.footer__bottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:18px;
}

/* ===== Fullscreen Mobile Overlay Menu ===== */
.mobile-overlay{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
  background: rgba(7,7,10,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-overlay.is-open{ display:block; }

/* Subtle entrance animation */
.mobile-overlay__panel{
  position:absolute;
  inset:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,10,14,.84);
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  padding:16px;
  display:flex;
  flex-direction:column;
  transform: translateY(10px) scale(.99);
  opacity: 0;
  transition: transform .20s ease, opacity .20s ease;
}
.mobile-overlay.is-open .mobile-overlay__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-overlay__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 4px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.mobile-overlay__brand{
  font-weight:800;
  letter-spacing:-0.03em;
  font-size:16px;
  color: rgba(246,246,248,.96);
}
.mobile-overlay__close{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(246,246,248,.92);
  font-size:18px;
  font-weight:800;
  box-shadow: var(--shadow2);
  transition: transform .14s ease, box-shadow .18s ease;
}
.mobile-overlay__close:active{ transform: scale(.96); }

.mobile-overlay__links{
  display:grid;
  gap:12px;
  padding:16px 4px 6px;
}
.mobile-overlay__link{
  padding:16px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(246,246,248,.90);
  font-weight:800;
  font-size:16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  transition: transform .14s ease, background .18s ease, box-shadow .18s ease;
}
.mobile-overlay__link:hover{ background: rgba(255,255,255,.06); }
.mobile-overlay__link:active{
  transform: scale(.985);
  box-shadow: 0 8px 30px rgba(0,0,0,.20);
}
.mobile-overlay__cta{
  background: linear-gradient(180deg, var(--accent), var(--accentDark));
  border-color: rgba(255,255,255,.12);
}
.mobile-overlay__footer{
  margin-top:auto;
  padding:10px 4px 2px;
}

/* Lock scroll when menu open */
body.menu-open{
  overflow:hidden;
  touch-action:none;
}

/* ===== Back to Top Button ===== */
.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:120;
  width:48px;
  height:48px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(7,7,10,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(246,246,248,.92);
  font-size:18px;
  font-weight:900;
  box-shadow: var(--shadow);
  opacity:0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.to-top.is-visible{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.to-top:active{
  transform: translateY(0) scale(.96);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  h1{ font-size:42px; }
  .hero__inner{ grid-template-columns:1fr; }
  .grid--cards{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr; }
}

/* Show hamburger only on phones */
@media (max-width: 720px){
  .nav__links--desktop{ display:none; }
  .nav__toggle{ display:flex; }
  .brand__text{ font-size:16px; }
  .hero{ padding:56px 0 34px; }
}

@media (max-width: 520px){
  h1{ font-size:34px; line-height:1.05; }
  .lead{ font-size:16px; }
  .chip{ font-size:12px; padding:8px 10px; }
  .hero__cta .btn{ width:100%; }
  .newsletter .inline-form{
    flex-direction:column;
    align-items:stretch;
  }
}

/* Respect reduced motion users */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}
