/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.14);

  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --accent: #059669;
  --accent-dim: rgba(5, 150, 105, 0.1);
  --accent-glow: rgba(5, 150, 105, 0.22);

  --coral: #e11d48;
  --coral-dim: rgba(225, 29, 72, 0.08);

  --amber: #d97706;
  --amber-dim: rgba(217, 119, 6, 0.1);

  --violet: #7c3aed;
  --violet-dim: rgba(124, 58, 237, 0.08);

  --teal: #0d9488;
  --teal-dim: rgba(13, 148, 136, 0.1);
  --teal-glow: rgba(13, 148, 136, 0.22);
  --teal-soft: rgba(204, 251, 241, 0.6);

  --on-accent: #ffffff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.1);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ── Ambient background ─────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}

.ambient__orb--1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
  top: -180px;
  right: -120px;
}

.ambient__orb--2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #ddd6fe 0%, transparent 70%);
  bottom: 10%;
  left: -160px;
}

.ambient__orb--3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #fecdd3 0%, transparent 70%);
  top: 45%;
  right: 15%;
  opacity: 0.4;
}

/* ── Typography helpers ─────────────────────────────────────── */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow--teal {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ── Header & nav ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 250, 0.82);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, var(--accent) 100%);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  transition: border-color 0.2s, background 0.2s !important;
}

.nav__cta:hover {
  border-color: var(--border-hover);
  background: rgba(15, 23, 42, 0.04);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.mobile-menu[hidden] {
  display: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  background: #047857;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(15, 23, 42, 0.04);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--teal {
  background: var(--teal);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 var(--teal-glow);
}

.btn--teal:hover {
  background: #0f766e;
  box-shadow: 0 8px 24px var(--teal-glow);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__visual {
  position: relative;
  height: 420px;
}

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.375rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease) infinite;
}

.hero__card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__card-dot--teal {
  background: var(--teal);
}

.hero__card--1 {
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}

.hero__card--2 {
  top: 42%;
  right: 0;
  animation-delay: -2s;
}

.hero__card--3 {
  bottom: 8%;
  left: 18%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ── About ────────────────────────────────────────────────────── */
.about {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 2.5rem 4rem;
}

.about__intro h2 {
  max-width: 20ch;
}

.about__body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

.about__stats li {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.about__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about__stat-label {
  font-size: 0.875rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* ── Dental spotlight ─────────────────────────────────────────── */
.spotlight {
  position: relative;
  z-index: 1;
  padding: 2rem 0 5rem;
}

.spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-soft) 0%, rgba(255, 255, 255, 0.95) 45%, #ffffff 100%);
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow: var(--shadow-md);
}

.spotlight__badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight__content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.spotlight__lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.spotlight__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.spotlight__features li {
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.spotlight__proof {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.spotlight__proof a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spotlight__visual {
  position: relative;
  min-height: 340px;
}

.spotlight__panel {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.spotlight__panel--main {
  padding: 1.25rem;
}

.spotlight__panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight__panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.spotlight__schedule {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spotlight__schedule li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.875rem;
}

.spotlight__schedule span {
  color: var(--text-subtle);
  font-weight: 500;
}

.spotlight__schedule strong {
  font-weight: 600;
}

.spotlight__schedule em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

.spotlight__panel--stat {
  position: absolute;
  right: 0;
  top: -1rem;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 8.5rem;
}

.spotlight__panel--accent {
  bottom: 0;
  top: auto;
  left: 1.5rem;
  background: var(--teal);
  border-color: transparent;
  color: var(--on-accent);
}

.spotlight__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.spotlight__stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}

.spotlight__panel--accent .spotlight__stat-label {
  opacity: 0.9;
}

/* ── Products ─────────────────────────────────────────────────── */
.products {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header__lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.35) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(13, 148, 136, 0.15);
}

.product-card--featured .product-card__body {
  flex: 1;
}

.product-card__tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.product-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
}

.product-card__icon svg {
  width: 24px;
  height: 24px;
}

.product-card__icon--coral {
  background: var(--coral-dim);
  color: var(--coral);
}

.product-card__icon--amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.product-card__icon--violet {
  background: var(--violet-dim);
  color: var(--violet);
}

.product-card__icon--teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.product-card__body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.product-card__body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}

.product-card__link svg {
  width: 14px;
  height: 14px;
}

.product-card__link:hover {
  gap: 0.625rem;
}

.product-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.product-card__link--muted {
  color: var(--text-muted);
}

.product-card__link--muted:hover {
  color: var(--text);
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact {
  position: relative;
  z-index: 1;
  padding: 0 0 7rem;
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.35) 0%, rgba(221, 214, 254, 0.3) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact__copy h2 {
  margin-bottom: 0.75rem;
}

.contact__copy p {
  color: var(--text-muted);
  max-width: 28rem;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.logo--footer {
  margin-bottom: 0.25rem;
}

.footer__tagline {
  color: var(--text-subtle);
  font-size: 0.9375rem;
}

.footer__copy {
  color: var(--text-subtle);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

/* ── Scroll reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero__visual {
    height: 280px;
    order: -1;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
  }

  .spotlight__inner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .spotlight__visual {
    min-height: 300px;
  }

  .product-card--featured {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .about__stats li {
    padding: 1.5rem;
  }

  .spotlight__actions {
    flex-direction: column;
  }

  .spotlight__actions .btn {
    width: 100%;
  }

  .contact__actions {
    width: 100%;
  }

  .contact__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__card {
    animation: none;
  }
}
