/* ==========================================================
   First Ring — AI Receptionist for Medspas
   warm wellness palette
   ivory #FBF8F3 · cream #F1ECE3 · sage #6B8E6F · champagne #C9A876
   ========================================================== */

:root {
  /* palette */
  --bg: #FBF8F3;
  --bg-2: #F1ECE3;
  --surface: #ffffff;
  --surface-2: #F7F2EA;
  --pale: #E5DDD0;
  --border: #EAE3D5;
  --border-strong: #D4C9B3;
  --text: #2C2A26;
  --text-dim: #5C5751;
  --text-mute: #918979;

  --accent: #6B8E6F;
  --accent-2: #547156;
  --accent-soft: rgba(107, 142, 111, 0.10);
  --accent-glow: rgba(107, 142, 111, 0.28);

  --warn: #C9A876;
  --warn-soft: rgba(201, 168, 118, 0.20);

  /* type */
  --font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "DM Serif Display", "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* radii — softer for wellness */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* layout */
  --container: 1200px;
  --pad-x: 32px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: white; }

/* container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* type scale */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}

.h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.h1 em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--accent-2); font-weight: 400; }

.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 640px;
}

.body { color: var(--text-dim); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}

.btn-primary {
  background: var(--accent);
  color: #FBF8F3;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 14px 30px -16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 18px 36px -14px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-mute);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.25s var(--ease);
  padding: 18px 0;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(251, 248, 243, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.005em;
  font-weight: 400;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent-2), var(--accent));
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px var(--accent-glow);
  color: #FBF8F3;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255,255,255,0.30), transparent 55%);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }

@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
}

/* sections */
section { position: relative; }

.section-pad {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 780px;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg);
}

/* soft organic dot field instead of techy grid */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(107,142,111,0.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 30%, transparent 78%);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-mesh::before,
.hero-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.hero-mesh::before {
  width: 720px; height: 720px;
  left: -240px; top: -180px;
  background: radial-gradient(circle, rgba(107, 142, 111, 0.25) 0%, transparent 65%);
  animation: float-a 18s ease-in-out infinite alternate;
}
.hero-mesh::after {
  width: 600px; height: 600px;
  right: -120px; top: 60px;
  background: radial-gradient(circle, rgba(201, 168, 118, 0.28) 0%, transparent 65%);
  animation: float-b 22s ease-in-out infinite alternate;
}

.hero-blob {
  position: absolute;
  width: 520px; height: 520px;
  left: 32%; top: 48%;
  background: radial-gradient(circle, rgba(232, 201, 192, 0.32) 0%, transparent 60%);
  filter: blur(110px);
  animation: float-c 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes float-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 80px) scale(1.1); }
}
@keyframes float-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 120px) scale(1.15); }
}
@keyframes float-c {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(80px, -100px) scale(0.9); }
}

.reduce-motion .hero-mesh::before,
.reduce-motion .hero-mesh::after,
.reduce-motion .hero-blob {
  animation: none !important;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 980px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  width: fit-content;
  box-shadow: 0 1px 2px rgba(44,42,38,0.04);
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  margin-left: 4px;
}
.hero-badge .pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.hero-trust .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-mute);
}

/* hero scroll preview */
.hero-preview {
  position: relative;
  margin-top: 72px;
  max-width: 780px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
  box-shadow:
    0 1px 0 rgba(44,42,38,0.02) inset,
    0 30px 60px -30px rgba(44,42,38,0.16),
    0 8px 18px -10px rgba(44,42,38,0.06);
}

/* problem stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat-num .unit {
  font-size: 0.55em;
  color: var(--accent);
  margin-left: 4px;
  font-style: italic;
}
.stat-label {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.5;
  max-width: 280px;
}
.stat-tag {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.bento-tile {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bento-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(44,42,38,0.14);
}
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(107,142,111,0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.bento-tile:hover::before { opacity: 1; }

.tile-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(107,142,111,0.18);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  position: relative;
  z-index: 1;
}
.tile-body { position: relative; z-index: 1; }
.tile-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--text);
}
.tile-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.tile-a { grid-column: span 3; grid-row: span 2; }
.tile-b { grid-column: span 3; grid-row: span 1; }
.tile-c { grid-column: span 3; grid-row: span 1; }
.tile-e { grid-column: span 2; grid-row: span 2; }
.tile-f { grid-column: span 4; grid-row: span 1; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile-a, .tile-b, .tile-c, .tile-e, .tile-f {
    grid-column: span 2; grid-row: span 1;
  }
  .tile-a { grid-row: span 2; }
  .tile-e { grid-row: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-e { grid-row: span 1; }
}

/* feature illustration in big tile */
.tile-illu-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 30px 30px;
  pointer-events: none;
  opacity: 0.88;
}
.tile-illu-wave .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(107,142,111,0.25));
  border-radius: 3px;
  animation: wave 1.8s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
}
.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
}
.step-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(107,142,111,0.18);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

/* "How it works" gets a subtle cream section background to break the page */
#how {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* final CTA — sage brand block */
.cta-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) clamp(32px, 6vw, 80px);
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 60%, #7fa583 100%);
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,0.08) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}
.cta-banner::after {
  /* warm champagne glow */
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(232, 201, 192, 0.55) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-banner h2 {
  color: #FBF8F3;
  max-width: 820px;
}
.cta-banner h2 em { color: #F1ECE3; }
.cta-banner .lead {
  color: rgba(251, 248, 243, 0.86);
  max-width: 580px;
}
.cta-banner .eyebrow { color: rgba(251, 248, 243, 0.7); }

.cta-banner .btn-primary {
  background: var(--warn);
  color: var(--text);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.25);
}
.cta-banner .btn-primary:hover { background: #D9B988; color: var(--text); }
.cta-banner .btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  color: #FBF8F3;
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 60px;
  margin-top: 80px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand p {
  margin: 14px 0 0;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.55;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* reveal */
.reveal { opacity: 1; transform: none; }
.pre-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.pre-reveal.in {
  opacity: 1;
  transform: none;
}
.reduce-motion .pre-reveal,
.reduce-motion .pre-reveal.in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* small */
.muted { color: var(--text-mute); }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
