/* ================================================================
   tokens.css
   Design tokens, reset, base styles e utilitários globais
   Dr. Rogério Furtado — Oftalmologista
================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:        #f0f4f8;
  --bg-mid:         #ffffff;
  --bg-panel:       #e8f0fe;
  --bg-card:        rgba(255, 255, 255, 0.8);
  --bg-glass:       rgba(255, 255, 255, 0.75);
  --bg-glass-light: rgba(0, 163, 122, 0.05);

  /* Cyan accent system */
  --cyan:           #007a5c;
  --cyan-dim:       rgba(0, 163, 122, 0.6);
  --cyan-ghost:     rgba(0, 200, 150, 0.15);
  --cyan-border:    rgba(0, 163, 122, 0.2);
  --cyan-glow:      rgba(0, 200, 150, 0.08);
  --cyan-deep:      #007a5c;

  /* Text */
  --silver:         #0d1117;
  --silver-dim:     #57606a;
  --silver-faint:   rgba(13, 17, 23, 0.65);

  /* Gradients */
  --grad-lens:  linear-gradient(135deg, rgba(0,163,122,0.06) 0%, rgba(0,163,122,0.02) 50%, transparent 100%);
  --grad-laser: linear-gradient(180deg, rgba(0,163,122,0.05) 0%, transparent 60%);

  /* Typography */
  --ff-display: 'Outfit', system-ui, sans-serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-premium:  cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Base ──────────────────────────────────────────────────────── */
html {
  font-size: clamp(16px, 1.25vw, 20px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

body {
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,163,122,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(10,37,64,0.06) 0%, transparent 60%);
  color: var(--silver);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: #ffffff;
}

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

img, video, iframe, svg {
  display: block;
  max-width: 100%;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 3px; }
::-webkit-scrollbar-track  { background: var(--bg-deep); }
::-webkit-scrollbar-thumb  { background: var(--cyan-deep); border-radius: 2px; }

/* ── Grid overlay (tech feel) ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,209,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,209,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 75%);
}

/* ── Utilities ─────────────────────────────────────────────────── */
.section-wrapper {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}

.label {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.cyan-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  vertical-align: middle;
  margin-right: 0.75rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--silver);
  margin-top: 0.75rem;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan) 0%, #7DD3F8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
}

.section-header__right {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--silver-dim);
  line-height: 1.75;
}

/* Glass card base */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--cyan-border);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-lens);
  pointer-events: none;
}

/* Scan divider */
.scan-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  max-width: 100%;
}

.scan-divider::before,
.scan-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,209,255,0.2));
}

.scan-divider::after {
  background: linear-gradient(to left, transparent, rgba(0,209,255,0.2));
}

.scan-divider__dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

/* Rating stars */
.rating-stars       { display: flex; gap: 3px; margin-bottom: 0.5rem; }
.rating-stars svg   { color: var(--cyan); }

/* Evita que o título fique escondido sob a navbar fixa ao navegar por âncoras */
section[id], div[id] {
  scroll-margin-top: 110px;
}

