/* ── Reset & tokens ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-lt:   #eff6ff;
  --accent:       #0ea5e9;
  --text:         #0f172a;
  --text-2:       #475569;
  --muted:        #94a3b8;
  --border:       #e2e8f0;
  --nav-bg:       rgba(255,255,255,.85);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 40px rgba(37,99,235,.12), 0 4px 16px rgba(0,0,0,.06);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-pill:  999px;
}

[data-theme="dark"] {
  --bg:           #090d16;
  --surface:      #111827;
  --surface-2:    #1e293b;
  --primary:      #3b82f6;
  --primary-dark: #2563eb;
  --primary-lt:   rgba(59, 130, 246, 0.16);
  --accent:       #38bdf8;
  --text:         #f8fafc;
  --text-2:       #94a3b8;
  --muted:        #64748b;
  --border:       #1e293b;
  --nav-bg:       rgba(17, 24, 39, 0.85);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md:    0 4px 16px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.25);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Background mesh ─────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37,99,235,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%,  rgba(14,165,233,.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout wrapper ──────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top nav ─────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color .3s ease, border-color .3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
  display: block;
}

.logo-sm {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.brand-creator {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .35rem .9rem;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── Hero section ────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  gap: 0;
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-pill);
  padding: .35rem 1rem .35rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .025em;
  margin-bottom: 2rem;
}

.badge-icon {
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.badge-icon svg { width: 11px; height: 11px; color: #fff; }

/* headline */
.headline {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.headline .word-em {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ── Email form ──────────────────────────────────────────────────── */
.notify-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 480px;
  width: 100%;
  margin-bottom: .75rem;
}

.input-wrap {
  flex: 1 1 220px;
  position: relative;
}

.input-wrap svg {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.notify-form input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}

.notify-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.notify-form input::placeholder { color: var(--muted); }

.notify-form button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .75rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 2px 12px rgba(37,99,235,.35);
}

.notify-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.notify-form button:active { transform: translateY(0); }

.form-note {
  font-size: .82rem;
  color: #16a34a;
  min-height: 1.2rem;
  font-weight: 500;
}

/* ── Divider ─────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
  margin: 3rem 0 2.5rem;
}

.divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border);
}

.divider span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Countdown ───────────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 4rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  position: relative;
  flex: 1;
  min-width: 90px;
}

.countdown-item + .countdown-item {
  border-left: 1px solid var(--border);
}

.count {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .3rem;
}

.countdown .label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Feature strip ───────────────────────────────────────────────── */
.features {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feat-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
}

.feat-icon svg { width: 20px; height: 20px; color: var(--primary); }

.feat-body h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.feat-body p {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Nav right ───────────────────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: .75rem; }

/* ── Theme Toggle Button ─────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  outline: none;
  transition: all .2s ease;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; color: #facc15; }
[data-theme="dark"] .moon-icon { display: none; }

/* Dark mode specific fine-tuning */
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59,130,246,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(56,189,248,.08) 0%, transparent 55%);
}

[data-theme="dark"] .product-featured {
  background: linear-gradient(160deg, #111827 50%, #1e293b 100%);
  border-color: rgba(59,130,246,.35);
}

[data-theme="dark"] .esangrah-logo {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: rgba(59,130,246,.3);
}

[data-theme="dark"] .status-coming {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

[data-theme="dark"] .notify-form input {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .notify-form input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo-sm { width: 26px !important; height: 26px !important; border-radius: 7px !important; }
.logo-sm svg { width: 14px !important; height: 14px !important; }

.footer-brand-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-size: .78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

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

/* ── Software Suite section ──────────────────────────────────────── */
.suite {
  width: 100%;
  padding: 5rem 2rem;
  background: var(--bg);
}

.suite-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-featured {
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(160deg, #ffffff 60%, #eff6ff 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.product-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-upcoming {
  background: var(--surface-2);
  border-style: dashed;
  opacity: .88;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.product-logo svg { width: 24px; height: 24px; }

.esangrah-logo {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(37,99,235,.2);
}

.esangrah-logo svg { color: var(--primary); }

.upcoming-logo {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.upcoming-logo svg { color: var(--muted); }

.product-status {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
}

.status-coming {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fde68a;
}

.status-planned {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.product-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}

.product-tagline {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: -.4rem;
}

.product-upcoming .product-tagline { color: var(--muted); }

.product-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
}

.product-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.product-highlights li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .84rem;
  color: var(--text-2);
}

.product-highlights li svg {
  width: 14px; height: 14px;
  color: #16a34a;
  flex-shrink: 0;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: .5rem;
  transition: gap .2s;
}

.product-cta:hover { gap: .65rem; }
.product-cta svg { width: 14px; height: 14px; }

.product-cta-muted {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .5rem;
  font-style: italic;
}

/* ── Platform values strip (4-col) ──────────────────────────────── */
.features {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}

.features-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feat-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
}

.feat-icon svg { width: 20px; height: 20px; color: var(--primary); }

.feat-body h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.feat-body p {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-status span:last-child { display: none; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .countdown-item { padding: 1rem 1.1rem; min-width: 68px; }
  .count { font-size: 1.8rem; }
  .suite { padding: 3rem 1.25rem; }
  .footer { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
}

