/* ============================================================
   Lumera — neumorphic soft-UI (dark)
   Single base color; light + dark shadow vars drive every panel.
   ============================================================ */

:root {
  /* --- the one base color everything is extruded from --- */
  --base:        #23262e;   /* surface all panels share */
  --base-deep:   #1c1f26;   /* page background, slightly darker */
  --base-raised: #272b34;   /* hovered/raised surfaces */

  /* --- the two shadow lights: the soul of neumorphism --- */
  --sh-dark:  rgba(13, 15, 19, 0.85);   /* lower-right cast shadow */
  --sh-light: rgba(58, 64, 78, 0.55);   /* upper-left highlight */

  /* --- low-contrast monochrome ink --- */
  --ink:      #d7dbe4;
  --ink-dim:  #9097a6;
  --ink-faint:#646b7b;

  /* --- the single soft accent glow --- */
  --accent:      #7be0c8;   /* mint-aqua, calm */
  --accent-deep: #45b8a0;
  --accent-glow: rgba(123, 224, 200, 0.35);

  /* --- distances & radii: everything is rounded --- */
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --d: 7px;            /* shadow offset distance */
  --b: 16px;           /* shadow blur */

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  /* reusable extrude recipes */
  --extrude:
    var(--d) var(--d) var(--b) var(--sh-dark),
    calc(var(--d) * -1) calc(var(--d) * -1) var(--b) var(--sh-light);
  --extrude-sm:
    4px 4px 9px var(--sh-dark),
    -4px -4px 9px var(--sh-light);
  --inset:
    inset var(--d) var(--d) var(--b) var(--sh-dark),
    inset calc(var(--d) * -1) calc(var(--d) * -1) var(--b) var(--sh-light);
  --inset-sm:
    inset 3px 3px 7px var(--sh-dark),
    inset -3px -3px 7px var(--sh-light);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--base-deep);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* soft accent glow drifting behind the page */
.glow-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 480px at 78% 8%, var(--accent-glow), transparent 70%),
    radial-gradient(700px 540px at 10% 92%, rgba(123,224,200,0.10), transparent 72%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

main, .topbar, .footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

.accent { color: var(--accent); text-shadow: 0 0 26px var(--accent-glow); }

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

/* ---------------- buttons: soft pills ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 0.78rem 1.6rem;
  border: none; cursor: pointer;
  border-radius: var(--r-pill);
  background: var(--base);
  color: var(--ink);
  box-shadow: var(--extrude-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--extrude); }
.btn:active { box-shadow: var(--inset-sm); transform: translateY(0); }

.btn-accent {
  color: var(--base-deep);
  background:
    linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow:
    5px 5px 12px var(--sh-dark),
    -4px -4px 10px var(--sh-light),
    0 0 22px var(--accent-glow);
}
.btn-accent:hover {
  box-shadow:
    6px 6px 16px var(--sh-dark),
    -5px -5px 12px var(--sh-light),
    0 0 34px var(--accent-glow);
}
.btn-done { background: var(--base) !important; color: var(--accent) !important; box-shadow: var(--inset-sm) !important; }

/* ---------------- topbar ---------------- */
.topbar {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  max-width: 1240px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }

.brand-orb {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--base);
  box-shadow: var(--extrude-sm);
  display: grid; place-items: center;
}
.brand-orb.small { width: 30px; height: 30px; }
.orb-core {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-core 2.4s ease-in-out infinite;
}
@keyframes pulse-core {
  0%,100% { transform: scale(1); opacity: 0.85; }
  50%     { transform: scale(1.28); opacity: 1; }
}

.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--ink-dim); font-size: 0.93rem; transition: color 0.15s; }
.nav a:hover { color: var(--accent); }
.nav-cta { margin-left: 0.3rem; }

/* ---------------- hero ---------------- */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 3rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-deep);
  padding: 0.4rem 1rem; border-radius: var(--r-pill);
  background: var(--base); box-shadow: var(--inset-sm); margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.05; font-weight: 700; }
.lede { color: var(--ink-dim); font-size: 1.12rem; margin: 1.5rem 0 2rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 1.4rem; margin-top: 2.6rem; flex-wrap: wrap;
}
.stat {
  background: var(--base); border-radius: var(--r);
  padding: 1rem 1.3rem; box-shadow: var(--extrude-sm);
  min-width: 120px;
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.stat-label { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------------- the orb: signature move ---------------- */
.orb-panel {
  background: var(--base);
  border-radius: var(--r-lg);
  padding: 2.4rem 2rem;
  box-shadow: var(--extrude);
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}
.orb-stage {
  width: min(300px, 70vw); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--base-deep);
  box-shadow: var(--inset);
  display: grid; place-items: center;
  position: relative;
}
.orb-ring {
  width: 78%; height: 78%; border-radius: 50%;
  background: var(--base);
  box-shadow: var(--extrude);
  display: grid; place-items: center;
  position: relative;
}
/* drifting glow halo behind the ring */
.orb-ring::before {
  content: ""; position: absolute; inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  animation: halo 3.2s ease-in-out infinite;
  z-index: -1;
}
@keyframes halo {
  0%,100% { opacity: 0.45; transform: scale(0.95); }
  50%     { opacity: 0.9;  transform: scale(1.08); }
}
.orb-inner {
  width: 72%; height: 72%; border-radius: 50%;
  background: var(--base-deep);
  box-shadow: var(--inset);
  display: grid; place-items: center;
}
/* the live waveform */
.wave {
  display: flex; align-items: center; gap: 3px; height: 56%;
}
.wave span {
  width: 4px; border-radius: var(--r-pill);
  background: linear-gradient(var(--accent), var(--accent-deep));
  box-shadow: 0 0 8px var(--accent-glow);
  animation: bar 1.1s ease-in-out infinite;
  height: 30%;
}
.wave span:nth-child(1){animation-delay:-1.0s}.wave span:nth-child(2){animation-delay:-0.9s}
.wave span:nth-child(3){animation-delay:-0.8s}.wave span:nth-child(4){animation-delay:-0.7s}
.wave span:nth-child(5){animation-delay:-0.6s}.wave span:nth-child(6){animation-delay:-0.5s}
.wave span:nth-child(7){animation-delay:-0.4s}.wave span:nth-child(8){animation-delay:-0.3s}
.wave span:nth-child(9){animation-delay:-0.2s}.wave span:nth-child(10){animation-delay:-0.1s}
.wave span:nth-child(11){animation-delay:0s}.wave span:nth-child(12){animation-delay:-0.15s}
.wave span:nth-child(13){animation-delay:-0.25s}.wave span:nth-child(14){animation-delay:-0.35s}
.wave span:nth-child(15){animation-delay:-0.45s}.wave span:nth-child(16){animation-delay:-0.55s}
.wave span:nth-child(17){animation-delay:-0.65s}.wave span:nth-child(18){animation-delay:-0.75s}
.wave span:nth-child(19){animation-delay:-0.85s}.wave span:nth-child(20){animation-delay:-0.95s}
@keyframes bar {
  0%,100% { height: 22%; opacity: 0.6; }
  50%     { height: 92%; opacity: 1; }
}
.wave-loud span { animation-duration: 0.62s; }

.orb-readout {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-dim);
}
.orb-readout #orb-status { transition: opacity 0.22s ease; min-width: 6.5em; }
.orb-timer { margin-left: auto; color: var(--accent-deep); }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-core 1.8s ease-in-out infinite;
}

/* ---------------- generic section ---------------- */
.section {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}
.sec-head { max-width: 40rem; margin-bottom: 2.6rem; }
.sec-tag {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep);
}
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0.6rem 0 0.7rem; }
.sec-head p { color: var(--ink-dim); font-size: 1.05rem; }

/* ---------------- use case cards ---------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.card {
  background: var(--base); border-radius: var(--r);
  padding: 1.7rem 1.5rem; box-shadow: var(--extrude);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
.card p { color: var(--ink-dim); font-size: 0.95rem; }
.card-ic {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--base-deep); box-shadow: var(--inset-sm);
  position: relative;
}
.card-ic::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.ic-cal::after  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='4' y='5' width='16' height='16' rx='3'/><path d='M4 9h16M8 3v4M16 3v4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='4' y='5' width='16' height='16' rx='3'/><path d='M4 9h16M8 3v4M16 3v4'/></svg>"); }
.ic-life::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/><path d='M12 4v3M12 17v3M4 12h3M17 12h3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/><path d='M12 4v3M12 17v3M4 12h3M17 12h3'/></svg>"); }
.ic-phone::after{ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M5 4h4l2 5-3 2a11 11 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M5 4h4l2 5-3 2a11 11 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.ic-bell::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M6 9a6 6 0 0 1 12 0c0 5 2 6 2 6H4s2-1 2-6'/><path d='M10 19a2 2 0 0 0 4 0'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M6 9a6 6 0 0 1 12 0c0 5 2 6 2 6H4s2-1 2-6'/><path d='M10 19a2 2 0 0 0 4 0'/></svg>"); }

/* ---------------- quality grid ---------------- */
.quality-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.q-card {
  background: var(--base); border-radius: var(--r);
  padding: 1.8rem 1.5rem; box-shadow: var(--extrude);
}
.q-num { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--accent); display: block; }
.q-num small { font-size: 1rem; color: var(--ink-dim); font-weight: 500; }
.q-label { display: block; font-family: var(--font-display); font-size: 1rem; margin: 0.4rem 0 0.7rem; }
.q-card p { color: var(--ink-dim); font-size: 0.9rem; }

/* ---------------- transcript ---------------- */
.transcript {
  background: var(--base-deep); border-radius: var(--r-lg);
  padding: 2rem clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: var(--inset);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 360px;
}
.t-row { display: flex; gap: 0.9rem; align-items: flex-start; transition: opacity 0.3s ease; }
.t-caller { flex-direction: row-reverse; }
.t-who {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint);
  padding-top: 0.55rem; min-width: 3.6em; text-align: right;
}
.t-caller .t-who { text-align: left; }
.t-bubble {
  background: var(--base); border-radius: var(--r);
  padding: 0.7rem 1.1rem; max-width: 70%;
  box-shadow: var(--extrude-sm); font-size: 0.98rem;
  min-height: 1.2em;
}
.t-agent .t-bubble { border-bottom-left-radius: 8px; }
.t-caller .t-bubble {
  border-bottom-right-radius: 8px;
  color: var(--base-deep);
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 4px 4px 9px var(--sh-dark), -4px -4px 9px var(--sh-light), 0 0 16px var(--accent-glow);
}
.t-note { text-align: center; color: var(--ink-faint); font-size: 0.85rem; margin-top: 1.2rem; font-family: var(--font-mono); }

/* ---------------- integrations ---------------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.pill {
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-dim);
  padding: 0.55rem 1.2rem; border-radius: var(--r-pill);
  background: var(--base); box-shadow: var(--extrude-sm);
  transition: color 0.15s, box-shadow 0.15s;
}
.pill:hover { color: var(--accent); box-shadow: var(--inset-sm); }

.code-soft {
  background: var(--base); border-radius: var(--r);
  box-shadow: var(--extrude); overflow: hidden; max-width: 720px;
}
.code-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.3rem; background: var(--base-deep); box-shadow: var(--inset-sm);
}
.code-head .dot { width: 10px; height: 10px; animation: none; background: var(--ink-faint); box-shadow: none; }
.code-head .dot:nth-child(3) { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.code-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); }
.code-soft pre { padding: 1.4rem; overflow-x: auto; }
.code-soft code { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); line-height: 1.7; }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.price-card {
  background: var(--base); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; box-shadow: var(--extrude);
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  box-shadow: var(--extrude), 0 0 32px var(--accent-glow);
}
.price-badge {
  position: absolute; top: -0.7rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--base-deep); background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  padding: 0.3rem 0.9rem; border-radius: var(--r-pill);
  box-shadow: 0 0 14px var(--accent-glow);
}
.price-card h3 { font-size: 1.3rem; }
.price { margin: 0.8rem 0 1.4rem; display: flex; align-items: baseline; gap: 0.4rem; }
.price-num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent); }
.price-unit { color: var(--ink-dim); font-size: 0.95rem; }
.price-feats { list-style: none; margin-bottom: 1.8rem; flex: 1; }
.price-feats li { color: var(--ink-dim); font-size: 0.94rem; padding: 0.45rem 0 0.45rem 1.5rem; position: relative; }
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------------- CTA ---------------- */
.cta {
  max-width: 880px; margin: 2rem auto clamp(3rem, 7vw, 5rem);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--base); border-radius: var(--r-lg);
  box-shadow: var(--extrude); text-align: center;
}
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta p { color: var(--ink-dim); margin: 0.8rem 0 2rem; }
.cta-form { display: flex; gap: 0.8rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 200px;
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 0.85rem 1.4rem; border: none; outline: none;
  border-radius: var(--r-pill);
  background: var(--base-deep); box-shadow: var(--inset-sm);
}
.cta-form input::placeholder { color: var(--ink-faint); }

/* ---------------- footer ---------------- */
.footer {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 2.5rem;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(100,107,123,0.18);
}
.foot-brand { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-brand .brand-name { font-size: 1.2rem; }
.foot-brand .brand-orb { margin-bottom: 0.2rem; }
.foot-tag { color: var(--ink-faint); font-size: 0.9rem; max-width: 22rem; }
.foot-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 0.9rem; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 0.92rem; padding: 0.28rem 0; transition: color 0.15s; }
.foot-col a:hover { color: var(--accent); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.6rem; color: var(--ink-faint); font-size: 0.85rem; font-family: var(--font-mono);
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .orb-panel { order: -1; max-width: 360px; margin: 0 auto; }
  .nav { display: none; }
  .card-grid, .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .card-grid, .quality-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .t-bubble { max-width: 82%; }
  .hero-stats .stat { flex: 1; }
}
