/* SmartPal Voice — landing styles
   Direction: dark luxury + glass depth, violet→cyan brand gradient (SmartPal family) */

:root {
  --bg: #07070d;
  --bg-raise: #0d0d17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --text-dim: #9aa0b4;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(92deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --danger: #f87171;
  --ok: #34d399;

  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem);
  --text-h2: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  --space-section: clamp(4.5rem, 3rem + 5vw, 9rem);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-base)/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: "Sora", "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }
section { padding-block: var(--space-section); position: relative; }

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- atmosphere ---------- */
.glow {
  position: absolute; pointer-events: none; filter: blur(90px); opacity: .5; z-index: 0;
  border-radius: 50%;
}
.glow--violet { background: #6d28d9; }
.glow--cyan { background: #0e7490; }

.grain::before {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 13, 0.75);
  border-bottom: 1px solid var(--stroke);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; padding-block: .85rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.06rem; text-decoration: none; font-family: "Sora", sans-serif; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-grad);
  display: grid; place-items: center; font-size: .8rem; color: #fff;
}
.logo b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav__links a { text-decoration: none; color: var(--text-dim); font-size: .93rem; transition: color .2s; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }
.lang { display: flex; gap: 2px; border: 1px solid var(--stroke); border-radius: 999px; padding: 3px; }
.lang a {
  text-decoration: none; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; color: var(--text-dim);
}
.lang a[aria-current="true"] { background: var(--surface-strong); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 "Inter", sans-serif; text-decoration: none; color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn--primary { background: var(--accent-grad); box-shadow: 0 8px 30px rgba(139, 92, 246, .35); }
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 92, 246, .5); }
.btn--ghost { background: var(--surface); border: 1px solid var(--stroke); color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--surface-strong); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn:active { transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(4rem, 8vw, 7.5rem) var(--space-section); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-2); }
.hero h1 { font-size: var(--text-hero); line-height: 1.04; font-weight: 700; }
.hero h1 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 1.5rem; max-width: 34rem; color: var(--text-dim); font-size: 1.12rem; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__note { margin-top: 1.1rem; font-size: .85rem; color: var(--text-dim); }
.hero__note b { color: var(--ok); }

/* phone visual */
.phone {
  position: relative; margin-inline: auto; width: min(330px, 80vw);
  border: 1px solid var(--stroke); border-radius: 38px; padding: 1.3rem;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.phone__head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--stroke); }
.phone__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; font-weight: 700; }
.phone__head small { display: block; color: var(--ok); font-size: .74rem; }
.phone__head span { font-weight: 600; font-size: .95rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 74px; justify-content: center; padding-block: 1.2rem; }
.wave i {
  width: 4px; border-radius: 3px; background: var(--accent-grad); height: 12px;
  animation: wave 1.15s ease-in-out infinite;
}
.wave i:nth-child(2n) { animation-delay: .12s; }
.wave i:nth-child(3n) { animation-delay: .24s; }
.wave i:nth-child(5n) { animation-delay: .36s; }
@keyframes wave { 50% { height: 52px; } }
.chat { display: grid; gap: .6rem; }
.bubble {
  padding: .6rem .9rem; border-radius: 14px; font-size: .82rem; max-width: 88%;
  opacity: 0; transform: translateY(8px); animation: pop .5s var(--ease) forwards;
}
.bubble--caller { background: var(--surface-strong); border: 1px solid var(--stroke); justify-self: start; border-bottom-left-radius: 4px; }
.bubble--agent { background: linear-gradient(120deg, rgba(139,92,246,.25), rgba(34,211,238,.18)); border: 1px solid rgba(139,92,246,.35); justify-self: end; border-bottom-right-radius: 4px; }
.bubble:nth-child(1) { animation-delay: .4s; }
.bubble:nth-child(2) { animation-delay: 1.3s; }
.bubble:nth-child(3) { animation-delay: 2.3s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- stats strip ---------- */
.stats { border-block: 1px solid var(--stroke); background: var(--bg-raise); padding-block: 2.6rem; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat b { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-family: "Sora", sans-serif; display: block; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-dim); font-size: .92rem; }

/* ---------- section headers ---------- */
.sec-head { max-width: 44rem; margin-bottom: 3.2rem; }
.sec-head h2 { font-size: var(--text-h2); line-height: 1.15; }
.sec-head p { margin-top: 1rem; color: var(--text-dim); }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.45); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 700 .85rem/1 "Sora", sans-serif; color: var(--accent-2); letter-spacing: .1em;
}
.step h3 { margin-top: .9rem; font-size: 1.15rem; }
.step p { margin-top: .6rem; color: var(--text-dim); font-size: .95rem; }
.step .tag { display: inline-block; margin-top: 1rem; font-size: .76rem; color: var(--accent-2); border: 1px solid rgba(34,211,238,.3); padding: .2rem .6rem; border-radius: 999px; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.card {
  border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface);
  padding: 1.7rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }
.card--3 { grid-column: span 3; }
.card--2 { grid-column: span 2; }
.card--4 { grid-column: span 4; }
.card h3 { font-size: 1.08rem; display: flex; gap: .6rem; align-items: center; }
.card p { margin-top: .55rem; color: var(--text-dim); font-size: .93rem; }
.card .ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--surface-strong); border: 1px solid var(--stroke); display: grid; place-items: center; font-size: 1rem; }

/* ---------- niche photo cards ---------- */
.niche-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.niche-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--stroke); aspect-ratio: 4 / 5; display: block;
}
.niche-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.niche-card:hover img { transform: scale(1.06); }
.niche-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .95rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(7,7,13,.92));
  font-size: .95rem; font-weight: 600;
}
@media (max-width: 760px) { .niche-cards { grid-template-columns: 1fr 1fr; gap: .8rem; } }

/* ---------- niches ---------- */
.niches { display: flex; flex-wrap: wrap; gap: .7rem; }
.niche {
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--surface); font-size: .9rem; color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.niche:hover { color: var(--text); border-color: rgba(34,211,238,.5); }

/* ---------- pricing ---------- */
.pricing { background: var(--bg-raise); border-block: 1px solid var(--stroke); }
.price-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.3rem; align-items: stretch; }
.price-card {
  border-radius: 22px; padding: 2.4rem; position: relative;
  background: linear-gradient(160deg, rgba(139,92,246,.14), rgba(34,211,238,.06) 70%);
  border: 1px solid rgba(139,92,246,.4);
}
.price-card--plain { background: var(--surface); border: 1px solid var(--stroke); }
.price-card .amount { font: 700 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 "Sora", sans-serif; }
.price-card .amount small { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.price-card ul { list-style: none; margin-top: 1.5rem; display: grid; gap: .65rem; }
.price-card li { display: flex; gap: .6rem; font-size: .95rem; color: var(--text-dim); }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.price-card li.no::before { content: "✕"; color: var(--danger); }
.badge {
  position: absolute; top: -13px; left: 2.2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  background: var(--accent-grad); padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase;
}
.compare { margin-top: 3rem; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--stroke); }
.compare th { color: var(--text-dim); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.compare td:first-child { color: var(--text-dim); }
.compare .hl { color: var(--accent-2); font-weight: 600; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface);
  padding: 1.1rem 1.4rem; margin-bottom: .8rem;
}
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::after { content: "+"; color: var(--accent-2); font-size: 1.25rem; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: .8rem; color: var(--text-dim); font-size: .95rem; }

/* ---------- form ---------- */
.cta-final { text-align: center; }
.form {
  margin: 2.6rem auto 0; max-width: 620px; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 2rem;
}
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--text-dim); }
.form input, .form select {
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--bg-raise); color: var(--text); font: inherit; width: 100%;
}
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form button { grid-column: 1 / -1; }
.form__msg { grid-column: 1 / -1; font-size: .9rem; display: none; }
.form__msg.ok { display: block; color: var(--ok); }
.form__msg.err { display: block; color: var(--danger); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--stroke); padding-block: 2.6rem; color: var(--text-dim); font-size: .88rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }

/* ---------- hero background & demo emphasis ---------- */
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
}
.btn--demo {
  font-size: 1.06rem; padding: 1.05rem 2rem;
  animation: demopulse 2.6s ease-in-out infinite;
}
@keyframes demopulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(139,92,246,.4); }
  50% { box-shadow: 0 10px 46px rgba(34,211,238,.6); }
}
.hero__demo-note { margin-top: .8rem; font-size: .85rem; color: var(--accent-2); }

.voice-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 150;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent-grad); color: #fff; font: 600 .95rem/1 "Inter", sans-serif;
  animation: demopulse 2.6s ease-in-out infinite;
}
.voice-fab:hover { transform: translateY(-2px); }

/* ---------- hero business scheme ---------- */
.scheme { position: relative; width: min(540px, 92vw); aspect-ratio: 520 / 600; margin-inline: auto; z-index: 1; }
.scheme .lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scheme .lines path {
  fill: none; stroke: url(#schemeGrad); stroke-width: 2;
  stroke-dasharray: 6 7; stroke-linecap: round;
  animation: dashflow 1.5s linear infinite; opacity: .8;
}
@keyframes dashflow { to { stroke-dashoffset: -26; } }

.node { position: absolute; z-index: 1; }
.node--call {
  left: 50%; top: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .5rem 1rem; border-radius: 999px; font-size: .8rem;
  background: var(--surface-strong); border: 1px solid var(--stroke); backdrop-filter: blur(6px);
}
.node--call .ring { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; flex: 0 0 9px; }

.node--center { left: 50%; top: 43%; transform: translate(-50%, -50%); width: 34%; text-align: center; }
.ph-ring {
  display: block; border-radius: 50%; padding: 4px;
  background: var(--accent-grad);
  box-shadow: 0 0 36px rgba(139,92,246,.5);
  animation: demopulse 2.6s ease-in-out infinite;
}
.ph-circle { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #0b0b14; }
.node--center b { display: block; margin-top: .6rem; font-size: .92rem; font-family: "Sora", sans-serif; }
.node--center small { color: var(--accent-2); font-size: .72rem; }

.chip-node {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .8rem; border-radius: 12px; font-size: .8rem;
  background: rgba(13,13,23,.82); border: 1px solid var(--stroke); backdrop-filter: blur(6px);
}
.chip-node b { font-size: .78rem; display: block; line-height: 1.15; }
.chip-node small { color: var(--text-dim); font-size: .66rem; display: block; }

.mgr { width: 16%; text-align: center; }
.mgr .ph-ring { padding: 3px; animation: none; box-shadow: 0 0 20px rgba(34,211,238,.35); }
.mgr span { display: block; margin-top: .35rem; font-size: .68rem; color: var(--text-dim); line-height: 1.2; }

.flow-label {
  position: absolute; z-index: 2; white-space: nowrap;
  font-size: .66rem; color: var(--accent-2);
  background: rgba(7,7,13,.85); border: 1px solid rgba(34,211,238,.35);
  padding: .18rem .55rem; border-radius: 999px;
}
.scheme-caption { margin-top: .6rem; text-align: center; font-size: .8rem; color: var(--text-dim); }

/* step images */
.step-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-top: 1.1rem; border: 1px solid var(--stroke); }

@media (max-width: 900px) {
  .chip-node small { display: none; }
  .node--call { font-size: .72rem; }
}

/* ---------- voice demo panel ---------- */
.voice-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: min(340px, calc(100vw - 40px));
  background: linear-gradient(165deg, rgba(20,20,34,.97), rgba(10,10,18,.97));
  border: 1px solid rgba(139,92,246,.45); border-radius: 20px;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(139,92,246,.15);
  display: none; flex-direction: column; gap: .6rem;
}
.voice-panel.open { display: flex; }
.voice-panel__head { display: flex; align-items: center; gap: .55rem; font-size: .92rem; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); flex: 0 0 9px; }
.voice-panel.live .voice-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.voice-wave { height: 44px; padding-block: .2rem; }
.voice-wave i { animation-play-state: paused; }
.voice-panel.live .voice-wave i { animation-play-state: running; }
.voice-transcript { font-size: .82rem; color: var(--text-dim); min-height: 1.2em; margin: 0; }
.voice-end { align-self: flex-end; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--3, .card--2, .card--4 { grid-column: span 2; }
  .price-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .nav__links { display: none; }
  .form { grid-template-columns: 1fr; }
}
