/* Home page — bold dark "aurora" redesign.
   Scoped under body.home so other pages keep the light theme.
   Loaded AFTER style.css, so these rules win. */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

.home {
  --hbg: #070b18;
  --hglass: rgba(255, 255, 255, 0.06);
  --hglass-line: rgba(255, 255, 255, 0.12);
  --hmuted: #9aa6c4;
  background: var(--hbg);
  color: #eef2ff;
}

/* Living aurora background */
.home::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  background:
    radial-gradient(40vmax 40vmax at 18% 12%, rgba(99, 102, 241, 0.55), transparent 60%),
    radial-gradient(38vmax 38vmax at 85% 8%, rgba(6, 182, 212, 0.45), transparent 60%),
    radial-gradient(42vmax 42vmax at 75% 88%, rgba(168, 85, 247, 0.40), transparent 60%),
    radial-gradient(36vmax 36vmax at 10% 85%, rgba(236, 72, 153, 0.30), transparent 60%);
  filter: blur(8px) saturate(130%);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(7, 11, 24, 0.7) 100%),
    linear-gradient(180deg, rgba(7,11,24,0.2), rgba(7,11,24,0.85));
  pointer-events: none;
}
.home > * { position: relative; z-index: 1; }

@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(2%, 2%, 0) rotate(8deg) scale(1.12); }
  100% { transform: translate3d(1%, -2%, 0) rotate(-6deg) scale(1.08); }
}

/* Header on dark */
.home .site-header {
  background: rgba(9, 13, 28, 0.55);
  border-bottom: 1px solid var(--hglass-line);
}
.home .brand,
.home .brand:hover { color: #fff; }
.home .brand .brand-sub { color: #9aa6c4; }
.home .nav-links a { color: #c7d0ec; }
.home .nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.home .nav-links a.active { color: #fff; }

/* ---------- HERO ---------- */
.home .hero-x {
  position: relative;
  padding: 64px 0 80px;
}
.hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  color: #c7d0ec;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  animation: rise .6s ease both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}
.home .hero-x h1 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
  animation: rise .7s ease .05s both;
}
.gtext {
  background: linear-gradient(100deg, #818cf8 0%, #22d3ee 50%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home .hero-x .sub {
  font-size: 19px;
  color: var(--hmuted);
  max-width: 540px;
  margin: 0 0 30px;
  animation: rise .7s ease .12s both;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 38px;
  animation: rise .7s ease .18s both;
}
.btn-glow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  color: #0b1020;
  background: linear-gradient(100deg, #a5b4fc, #67e8f9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 18px 40px -14px rgba(103, 232, 249, 0.7);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-glow:hover {
  color: #0b1020;
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 26px 54px -14px rgba(103, 232, 249, 0.85);
}
.btn-ghost-d {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: #dbe2ff;
  border: 1px solid var(--hglass-line);
  background: var(--hglass);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-ghost-d:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }

.stat-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: rise .7s ease .24s both;
}
.stat {
  flex: 1 1 0;
  min-width: 110px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  backdrop-filter: blur(8px);
}
.stat .n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px; font-weight: 700; color: #fff; line-height: 1;
}
.stat .n .gtext { font-weight: 700; }
.stat .t { font-size: 12.5px; color: var(--hmuted); margin-top: 6px; }

/* ---------- Glass calculator ---------- */
.home .calc-wrap {
  background: rgba(15, 20, 40, 0.55);
  border: 1px solid var(--hglass-line);
  border-radius: 26px;
  padding: 30px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: rise .8s ease .2s both;
}
.home .calc-wrap::before {
  background: linear-gradient(100deg, #818cf8, #22d3ee, #c084fc);
  height: 4px;
  border-radius: 26px 26px 0 0;
}
.calc-title {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
  margin: 0 0 4px;
}
.calc-title .pin {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  font-size: 15px;
}
.calc-note { color: var(--hmuted); font-size: 13.5px; margin: 0 0 18px; }

.home .field label { color: #c7d0ec; }
.home .field select,
.home .field input,
.home .field textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #eef2ff;
  border-radius: 12px;
}

/* Custom-styled selects */
.home .field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2398a4c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}
.home .field select::-ms-expand { display: none; }
.home .field select option {
  color: #eef2ff;
  background: #11162b;
}
.home .field select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}
.home .field select:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: #67e8f9;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.home .field input:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: #67e8f9;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18);
}
.home .calc-actions .btn {
  background: linear-gradient(100deg, #a5b4fc, #67e8f9);
  color: #0b1020;
  box-shadow: 0 16px 34px -14px rgba(103, 232, 249, 0.7);
}
.home #resetBtn {
  background: rgba(255,255,255,0.06) !important;
  color: #dbe2ff !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.home #resetBtn:hover { background: rgba(255,255,255,0.12) !important; }
.home .result { border-top-color: rgba(255,255,255,0.1); }
.home .summary-row { color: var(--hmuted); border-bottom-color: rgba(255,255,255,0.1); }
.home .summary-row strong { color: #eef2ff; }
.home .gate-list li {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.home .gate-list li .gname { color: #eef2ff; }
.home .gate-list li:hover { border-color: #67e8f9; }
.home .keywords-note { color: #7e8bb0; }

/* ---------- Sections on dark ---------- */
.home .section h2 { color: #fff; }
.home .section .lead { color: var(--hmuted); }

.section-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}

/* Bento cards */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .b-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.bento .b-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(129, 140, 248, 0.18), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.bento .b-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.28); }
.bento .b-card:hover::after { opacity: 1; }
.bento .b-card > * { position: relative; }
.bento .ic {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(129,140,248,0.25), rgba(34,211,238,0.25));
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 18px;
}
.bento h3 { margin: 0 0 8px; color: #fff; font-size: 20px; font-weight: 700; }
.bento p { margin: 0; color: var(--hmuted); }
.bento a { color: #7dd3fc; }

/* Feature split panel */
.home .split-panel {
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  border-radius: 26px;
  padding: 44px;
  backdrop-filter: blur(10px);
}
.home .split-panel h2 { color: #fff; }
.home .split-panel p { color: var(--hmuted); }
.home .feature-img { border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(0,0,0,0.8); height: 320px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home::before { animation: none; }
}

@media (max-width: 940px) {
  .hero-shell { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr; }
  .home .split-panel { padding: 28px; }
}

/* ---------- Inner pages on dark theme ---------- */
.home .content-body,
.home .contact-box,
.home .faq-item {
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.home .content-body h2,
.home .content-body h3,
.home .contact-box h3,
.home .faq-item h3 { color: #fff !important; }
.home .content-body p,
.home .content-body li,
.home .faq-item p { color: #c2cae6; }
.home .content-body a,
.home .contact-box a { color: #7dd3fc; }
.home .content-body strong { color: #eef2ff; }
.home .contact-box .row .k { color: #fff; }
.home .contact-box .row span:not(.k) { color: #c2cae6; }
.home .faq-item:hover { border-color: rgba(255, 255, 255, 0.28); }

.home .callout {
  background: rgba(129, 140, 248, 0.12);
  border-left: 4px solid #818cf8;
  color: #d7ddf5;
}

.home .rate-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hglass-line);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.home .rate-table th {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-bottom-color: var(--hglass-line);
}
.home .rate-table td { color: #c2cae6; border-bottom-color: rgba(255, 255, 255, 0.08); }
.home .rate-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

.home .card {
  background: var(--hglass);
  border: 1px solid var(--hglass-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.home .card:hover { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75); }
.home .card h3 { color: #fff; }
.home .card p { color: var(--hmuted); }

/* ---------- SVG icons ---------- */
.ic svg { width: 26px; height: 26px; color: #bcc6ff; }
.calc-title .pin svg { width: 17px; height: 17px; color: #fff; }
.btn-glow svg { width: 18px; height: 18px; }
.btn-ghost-d svg { width: 17px; height: 17px; }
