@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ecf3f1;
  --bg-2: #e1ece8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --steel: #94a3b8;
  --line: rgba(15, 23, 42, 0.09);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-2: rgba(255, 255, 255, 0.88);
  --graphite: linear-gradient(160deg, #0f1f24 0%, #163036 100%);
  --m1: #10b981;
  --m2: #0f766e;
  --m3: #f59e0b;
  --ok: #059669;
  --warn: #d97706;
  --r: 24px;
  --r-sm: 14px;
  --sh-1: 0 4px 20px rgba(15, 23, 42, 0.05);
  --sh-2: 0 12px 36px rgba(15, 23, 42, 0.08);
  --sh-3: 0 24px 60px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.16), transparent 40%),
              radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.10), transparent 35%),
              linear-gradient(180deg, #f3f8f6 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

#netCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body > *:not(#netCanvas) {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fixed Frosted Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(244, 246, 249, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-word .accent {
  color: var(--m3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-pill:hover {
  background: #fff;
  box-shadow: var(--sh-1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-1);
}

.btn-dark:hover {
  background: #232830;
  box-shadow: var(--sh-2);
}

.btn-glass {
  background: var(--glass-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-glass:hover {
  background: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 11px;
}

.mobile-toggle {
  display: none;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Page Offset for Fixed Header */
.page-top {
  padding-top: 96px;
}

/* Hero Section */
.hero-wrap {
  padding: 124px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 20px;
  box-shadow: var(--sh-1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.18);
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.grad-text {
  background: linear-gradient(95deg, var(--m2) 0%, var(--m1) 48%, var(--m3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Phone Mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 28px;
}

.phone-frame {
  width: 300px;
  max-width: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 44px;
  padding: 14px 18px 18px;
  border: 8px solid #161b22;
  box-shadow: var(--sh-3);
}

.phone-notch {
  width: 86px;
  height: 22px;
  background: #161b22;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.phone-home-bar {
  width: 104px;
  height: 4px;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  margin: 14px auto 0;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

.phone-greet {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.phone-dark-card {
  background: var(--graphite);
  color: #fff;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
}

.phone-dark-card small {
  color: #a6b0bd;
  font-size: 0.78rem;
}

.phone-amount {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 4px 0;
}

.phone-trend {
  font-size: 0.78rem;
  color: #5eead4;
  font-weight: 600;
}

.phone-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.phone-mini {
  background: var(--bg);
  border-radius: 14px;
  padding: 10px 12px;
}

.phone-mini small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.phone-mini strong {
  font-size: 1.05rem;
}

.phone-shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3faf6;
  border: 1px solid rgba(31, 157, 85, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--sh-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.float-top {
  top: 40px;
  right: 0;
}

.float-mid {
  top: 230px;
  left: -8px;
  color: var(--ok);
}

.float-bot {
  bottom: 44px;
  right: 4px;
}

/* Tilted Ticker Ribbon */
.ticker-wrap {
  margin: 28px 0 40px;
  transform: rotate(-1.5deg);
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  font-size: 0.95rem;
}

.ticker-sep {
  color: var(--m1);
  margin: 0 10px;
}

.ticker-sep-red {
  color: var(--m3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m2);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 28px;
}

/* Glass Cards & Grids */
.card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh-1);
}

.card-solid {
  background: var(--glass-2);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tabs */
.tab-pills {
  display: inline-flex;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab-pill {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.tab-pill.active {
  background: var(--ink);
  color: #fff;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--m2);
  margin-bottom: 6px;
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.slider-group {
  margin-bottom: 20px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 8px;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.calc-result {
  background: var(--graphite);
  color: #fff;
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh-3);
}

.calc-big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 12px;
}

/* Stats Strip */
.stat-card {
  text-align: left;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Forms & Tables (Host/Portal/Simulator) */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--m1);
  border-color: transparent;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-green { background: rgba(31, 157, 85, 0.14); color: var(--ok); }
.pill-amber { background: rgba(217, 119, 6, 0.14); color: var(--warn); }
.pill-red { background: rgba(224, 50, 43, 0.14); color: var(--m3); }

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(91, 183, 234, 0.16);
  border: 1px solid rgba(43, 79, 168, 0.25);
  color: var(--ink);
}

.code-block {
  background: #161920;
  color: #e6edf3;
  border-radius: 16px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Dashboard Sidebar Shell */
.dash-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 92px;
  background: var(--glass-2);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-user-box {
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.dash-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dash-menu-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
}

.dash-menu-btn.active {
  background: var(--ink);
  color: #fff;
}

.dash-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

/* Split-Screen Auth Layout (Owner / Guest / Admin Login) */
.auth-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.auth-hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #163036 0%, #0f1f24 55%, #0c171b 100%);
  color: #fff;
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: var(--sh-3);
}

.auth-logo-box {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  box-shadow: var(--sh-2);
}

.auth-hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
}

.auth-hero-title {
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
}

.auth-hero-sub {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin-bottom: 26px;
}

.auth-feature-list {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-watermark {
  position: absolute;
  bottom: -18px;
  left: 16px;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--sh-2);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.phone-input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.phone-prefix {
  padding: 11px 14px;
  background: var(--bg);
  font-weight: 700;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  font-size: 0.92rem;
}

.phone-input-group input {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .dash-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dash-user-box,
  .dash-divider {
    display: none;
  }

  .dash-menu-btn {
    width: auto;
    padding: 8px 14px;
  }

  .hero-grid,
  .calc-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--sh-3);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .phone-stage {
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
  }

  .float-top,
  .float-mid,
  .float-bot {
    position: static;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
