/* ─── CallForge landing — Apple-style dark ─── */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-2: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-mute: #6e6e73;
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --accent-3: #bf5af2;
  --success: #30d158;
  --danger: #ff453a;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reveal animations (cinematic hero sequence) ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  animation: reveal 1.8s var(--ease-slow) forwards;
}
/* Legacy generic delays (kept for compatibility) */
.reveal-delay-1 { animation-delay: 0.25s; }
.reveal-delay-2 { animation-delay: 0.55s; }
.reveal-delay-3 { animation-delay: 0.9s; }
.reveal-delay-4 { animation-delay: 1.2s; }

/* Hero orchestration: diamond first, then H1, then hint, then the rest */
.reveal-diamond { animation: diamond-enter 2.4s var(--ease-slow) 0.2s forwards; }
.reveal-h1      { animation-delay: 1.6s; animation-duration: 2.2s; }
/* Word-by-word staccato reveal for hero H1 */
.reveal-word-1  { animation-delay: 1.6s; animation-duration: 2.4s; }
.reveal-word-2  { animation-delay: 2.7s; animation-duration: 2.4s; }
.reveal-word-3  { animation-delay: 3.8s; animation-duration: 2.4s; }
.reveal-hint    { animation-delay: 5.0s; animation-duration: 2.2s; }
.reveal-sub     { animation-delay: 5.8s; animation-duration: 2s; }
.reveal-form    { animation-delay: 6.4s; animation-duration: 2s; }
.reveal-trust   { animation-delay: 7.0s; animation-duration: 2s; }

.hero-title .word {
  display: inline-block;
}

@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Diamond materializes from scale(0.2), rotating and unblurring */
@keyframes diamond-enter {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-90deg);
    filter: blur(40px) brightness(0.2);
  }
  40% {
    opacity: 0.4;
    filter: blur(16px) brightness(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) brightness(1);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 1s var(--ease-slow),
    transform 1s var(--ease-slow);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll { animation: none; transition: none; opacity: 1; transform: none; filter: none; }
}

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Background FX ─── */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: float 32s ease-in-out infinite;
}
.orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, #0a84ff 0%, transparent 65%);
  top: -200px; left: -180px;
}
.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #bf5af2 0%, transparent 65%);
  top: 10%; right: -160px;
  animation-delay: -10s;
}
.orb-3 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #5e5ce6 0%, transparent 65%);
  top: 40%; left: 30%;
  animation-delay: -20s;
  opacity: 0.32;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.92); }
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 120deg, #0a84ff, #5e5ce6, #bf5af2, #0a84ff);
  box-shadow: 0 0 24px rgba(10, 132, 255, 0.45);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.4s var(--ease);
}
.nav-links a { transition: color 0.35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.25);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 24px 100px;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-title {
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 200;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 0 0 32px;
}
.grad {
  font-weight: 300;
  background: linear-gradient(120deg, #0a84ff 0%, #5e5ce6 45%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ─── Demo form ─── */
.demo-form {
  max-width: 620px;
  margin: 0 auto 56px;
}
.demo-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 20px 60px rgba(0,0,0,0.5);
  text-align: left;
}
.demo-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
}
.demo-head strong { color: var(--text); }
.demo-sub { color: var(--text-mute); }
.pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}
.demo-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.input-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(0,0,0,0.55);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}
.flag {
  font-size: 20px;
  margin-right: 10px;
}
#phone {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  padding: 18px 0;
  font-family: inherit;
  letter-spacing: 0.01em;
}
#phone::placeholder { color: var(--text-mute); }

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  min-height: 58px;
  background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.45);
  filter: brightness(1.08);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-arrow {
  width: 18px; height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-primary.loading .btn-label,
.btn-primary.loading .btn-arrow { display: none; }
.btn-primary.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-large {
  padding: 0 36px;
  min-height: 64px;
  font-size: 17px;
}

.demo-status {
  margin-top: 16px;
  min-height: 22px;
  font-size: 14px;
  font-weight: 500;
}
.demo-status.success { color: var(--success); }
.demo-status.error { color: var(--danger); }
.demo-status.info { color: var(--text-dim); }

.demo-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ─── The Diamond — hero-centerpiece pulsing brand rhombus ─── */
.diamond-cta {
  --size: clamp(220px, 32vw, 340px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 56px auto 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.diamond-core {
  position: absolute;
  inset: 0;
  /* Horizontal brand mark — rounded square, no rotation */
  border-radius: calc(var(--size) * 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 55%),
    conic-gradient(from 140deg, #0a84ff 0%, #5e5ce6 35%, #bf5af2 65%, #0a84ff 100%);
  box-shadow:
    0 0 80px rgba(10, 132, 255, 0.55),
    0 0 160px rgba(94, 92, 230, 0.35),
    0 0 240px rgba(191, 90, 242, 0.25),
    inset 0 0 60px rgba(255, 255, 255, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
  animation:
    diamond-breathe 4.2s ease-in-out infinite,
    diamond-shimmer 12s linear infinite;
  transition: filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.diamond-shine {
  position: absolute;
  inset: 8%;
  border-radius: calc(var(--size) * 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.diamond-edge {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--size) * 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Outer auras — soft glow halos pulsing out of sync */
.diamond-aura {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.35) 0%, rgba(191, 90, 242, 0.15) 35%, transparent 65%);
  filter: blur(40px);
  animation: aura-pulse 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.diamond-aura-2 {
  inset: -35%;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.25) 0%, transparent 60%);
  animation-duration: 5.6s;
  animation-delay: -1.2s;
  filter: blur(60px);
}

@keyframes diamond-breathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.12);
  }
}
@keyframes diamond-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@keyframes aura-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.1); }
}

/* Hover — the diamond comes to life */
.diamond-cta:hover .diamond-core {
  box-shadow:
    0 0 120px rgba(10, 132, 255, 0.75),
    0 0 220px rgba(94, 92, 230, 0.55),
    0 0 320px rgba(191, 90, 242, 0.45),
    inset 0 0 70px rgba(255, 255, 255, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.15);
}
.diamond-cta:hover .diamond-aura {
  animation-duration: 2.4s;
}
.diamond-cta:active .diamond-core {
  animation-play-state: paused;
  transform: scale(0.96);
  transition: transform 0.15s ease-out;
}
.diamond-cta:focus-visible .diamond-edge {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── Diamond hint ("click to try") ─── */
.diamond-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  margin: 0 auto 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: -0.005em;
}
.diamond-hint .hint-arrow {
  font-size: 18px;
  color: var(--text);
  animation: hint-bounce 2.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

/* Honor reduced-motion for all diamond animations */
@media (prefers-reduced-motion: reduce) {
  .diamond-core, .diamond-aura, .hint-arrow, .diamond-cta { animation: none !important; }
}

/* ─── Legacy browser button (removed from hero but kept for any future use) ─── */
.btn-browser {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(10,132,255,0.14) 0%, rgba(191,90,242,0.14) 100%),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  transition: all 0.35s var(--ease-slow);
  position: relative;
  overflow: hidden;
}
.btn-browser::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6, #bf5af2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-slow);
  pointer-events: none;
}
.btn-browser:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(10,132,255,0.22) 0%, rgba(191,90,242,0.22) 100%),
    rgba(255,255,255,0.05);
  box-shadow: 0 12px 40px rgba(10,132,255,0.2);
}
.btn-browser:hover::before { opacity: 1; }
.btn-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background:
    conic-gradient(from 120deg, #0a84ff, #5e5ce6, #bf5af2, #0a84ff);
  box-shadow:
    0 0 28px rgba(10, 132, 255, 0.55),
    inset 0 0 18px rgba(255,255,255,0.15);
  animation: mark-shimmer 6s linear infinite;
}
@keyframes mark-shimmer {
  0%   { filter: hue-rotate(0deg); transform: rotate(0deg); }
  100% { filter: hue-rotate(360deg); transform: rotate(360deg); }
}
.btn-browser-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.btn-browser-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.btn-browser-sub {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
}
.btn-browser .btn-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-browser:hover .btn-arrow {
  color: var(--text);
  transform: translateX(4px);
}

/* ─── Divider "или" ─── */
.demo-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.demo-divider::before,
.demo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ─── Browser-demo overlay (active call UI) ─── */
.bd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-slow);
}
.bd-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.bd-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 40px 100px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.8s var(--ease-slow);
}
.bd-overlay.visible .bd-card {
  transform: translateY(0) scale(1);
}

.bd-state {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 32px;
}
.bd-state.live { color: #30d158; }
.bd-state.error { color: #ff453a; }

/* ─── The orb — brand-gradient "breathing" mark ─── */
.bd-orb-wrap {
  width: 240px;
  height: 240px;
  margin: 0 auto 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd-orb {
  width: 150px;
  height: 150px;
  border-radius: 44px;
  position: relative;
  background: conic-gradient(
    from 120deg,
    #0a84ff 0%,
    #5e5ce6 33%,
    #bf5af2 66%,
    #0a84ff 100%
  );
  box-shadow:
    0 0 80px rgba(10, 132, 255, 0.5),
    0 0 120px rgba(191, 90, 242, 0.35),
    inset 0 0 40px rgba(255, 255, 255, 0.1);
  animation: orb-spin 10s linear infinite, orb-breathe 3.4s ease-in-out infinite;
  transform: scale(1);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.bd-orb-inner {
  position: absolute;
  inset: 8px;
  border-radius: 38px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 60%);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.bd-orb-ring {
  position: absolute;
  inset: -24px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 60px rgba(94, 92, 230, 0.3) inset;
  animation: ring-pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orb-spin {
  0%   { background-position: 0% 50%; filter: hue-rotate(0deg); }
  100% { background-position: 100% 50%; filter: hue-rotate(30deg); }
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.1); opacity: 0.2; }
}

/* Active speaking boost via JS setting --bd-level */
.bd-orb.speaking {
  --bd-level: 0;
  transform: scale(calc(1 + var(--bd-level) * 0.35));
  box-shadow:
    0 0 calc(80px + var(--bd-level) * 140px) rgba(10, 132, 255, calc(0.5 + var(--bd-level) * 0.4)),
    0 0 calc(140px + var(--bd-level) * 180px) rgba(191, 90, 242, calc(0.35 + var(--bd-level) * 0.4)),
    inset 0 0 40px rgba(255, 255, 255, 0.15);
}

.bd-meta {
  margin-bottom: 32px;
}
.bd-timer {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-bottom: 8px;
}
.bd-hint {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 300;
  min-height: 20px;
}

.btn-hangup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 999px;
  color: #ff6b60;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.btn-hangup:hover {
  background: rgba(255, 69, 58, 0.2);
  border-color: rgba(255, 69, 58, 0.6);
  color: #ff8a80;
}
.btn-hangup svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 520px) {
  .bd-orb-wrap { width: 200px; height: 200px; }
  .bd-orb { width: 130px; height: 130px; }
  .bd-card { padding: 36px 24px 28px; }
}

/* ─── Trust bar ─── */
.trust {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 48px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
}
.trust-num {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.step p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Features grid ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feat:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.feat-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feat h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.feat p {
  color: var(--text-dim);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* ─── CTA repeat ─── */
.cta-section { padding: 100px 24px; }
.cta-inner {
  text-align: center;
  max-width: 720px;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p {
  color: var(--text-dim);
  font-size: 18px;
  margin: 0 0 36px;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px 40px;
  background: rgba(0,0,0,0.6);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 28px;
  color: var(--text-dim);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px;
  color: var(--text-mute);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 60px 20px 60px; }
  .demo-row { flex-direction: column; }
  .btn-primary { width: 100%; }
  .section { padding: 80px 20px; }
  .section-head { margin-bottom: 48px; }
  .demo-card { padding: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
