/* ===== Bherva Shared Styles ===== */
:root {
  --bg: #02030a;
  --bg-1: #06091a;
  --bg-2: #0a1024;
  --ink: #f5f7fb;
  --ink-dim: #8a92a8;
  --ink-soft: #b9c0d4;
  --line: rgba(180,200,255,0.10);
  --line-strong: rgba(180,200,255,0.22);
  --brand-1: #00d4ff;
  --brand-2: #00a3ff;
  --brand-3: #0066ff;
  --brand-glow: rgba(0,165,255,0.45);
  --grad: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  --grad-soft: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(0,102,255,0.18));
  --whatsapp: #25d366;
  --hot: #ff5b3a;
  --warm: #ffb93a;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; line-height: 1.5;
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(0,102,255,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(0,212,255,0.08), transparent 60%);
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-1); box-shadow: 0 0 12px var(--brand-1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
  position: relative; overflow: hidden; will-change: transform;
}
.btn-primary { background: var(--grad); color: #001229; box-shadow: 0 8px 32px rgba(0,165,255,0.35); }
.btn-primary:hover { box-shadow: 0 12px 48px rgba(0,165,255,0.5); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(2,3,10,0.7); border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; position: relative; }
.nav-links > a, .nav-links > .has-drop > a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 400;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > a:hover, .nav-links > .has-drop > a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links > a.active, .nav-links > .has-drop > a.active { color: var(--brand-1); }
.has-drop { position: relative; }
.has-drop .drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-top: 6px;
  background: rgba(8,12,28,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 10px; min-width: 240px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
/* Invisible bridge so cursor can cross the gap without losing hover */
.has-drop .drop::before {
  content: ''; position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.has-drop:hover .drop { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.drop a:hover { background: rgba(0,165,255,0.1); color: var(--ink); }
.drop a small { display: block; color: var(--ink-dim); font-size: 11px; margin-top: 2px; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--line); padding: 80px 28px 36px; margin-top: 80px; }
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px;
}
.foot-grid .brand img { height: 56px; }
.foot-grid .brand p { color: var(--ink-dim); margin: 18px 0 0; max-width: 320px; line-height: 1.5; font-size: 14px; }
.foot-col h4 { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.25s; }
.foot-col a:hover { color: var(--ink); }
.foot-bot {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: 13px;
}

/* ===== Reveals ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* Section heads */
.sec-head { max-width: 900px; margin: 0 auto 80px; text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head h2 {
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 500; letter-spacing: -0.035em;
  line-height: 1.0; margin: 16px 0 18px; text-wrap: balance;
}
.sec-head h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 500; }
/* Italic gradient-clip text — extend painting area to prevent glyph clipping */
h1 em, h2 em, h3 em, .sec-head h2 em, .grad-text {
  padding-inline-end: 0.18em;
  padding-inline-start: 0.02em;
}
.sec-head p { color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 19px); max-width: 640px; margin: 0 auto; }
.section { padding: 140px 28px; position: relative; }

/* Page header */
.page-hero { padding: 180px 28px 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, black 100%);
  pointer-events: none; opacity: 0.4;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 65px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.0;
  margin: 18px auto 24px; max-width: 900px; text-wrap: balance;
  position: relative;
}
.page-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 500; }
.page-hero p { color: var(--ink-soft); font-size: 19px; max-width: 600px; margin: 0 auto 36px; position: relative; }
.page-hero .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }

/* ===== Reusable iPhone-style phone frame ===== */
.bh-phone-wrap {
  position: relative;
  width: 100%; max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9/19;
  z-index: 2;
}
.bh-phone-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle, rgba(0,165,255,0.45), transparent 60%);
  filter: blur(50px); z-index: -1;
  animation: bhPhoneGlow 4s ease-in-out infinite;
}
@keyframes bhPhoneGlow { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.bh-phone {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0c1230, #050817);
  border-radius: 44px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bh-phone::before {
  content: ''; position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 20px; border-radius: 999px;
  background: #000; z-index: 5;
}

/* ===== Bherva SVG icons (Lucide-style, 24x24 stroke) ===== */
.bh-i { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; }
.bh-i svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
