/* ============================================================
   uScope — Home Page Styles (index.html)
   Requires: main.css
============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Radial teal glow */
.hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(18,184,160,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom teal gradient line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s ease forwards;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s 0.18s ease forwards;
}

.hero h1 em { font-style: italic; color: var(--teal); }

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.5s 0.25s ease forwards;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-wrap {
  width: 100%;
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.5s 0.32s ease forwards;
}

.search-bar {
  display: flex;
  align-items: center;
  height: 54px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 27px;
  padding: 0 8px 0 22px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  background: rgba(255,255,255,0.09);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18,184,160,0.12);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 300;
  color: #fff;
}

.search-bar input::placeholder { color: rgba(255,255,255,0.28); }

.search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.search-btn:hover { background: var(--teal-dim); transform: scale(1.06); }

.search-btn svg {
  width: 15px; height: 15px;
  stroke: #fff; fill: none;
  stroke-width: 2.3; stroke-linecap: round;
}

/* Example chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}

.chip {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chip:hover {
  color: var(--teal);
  border-color: rgba(18,184,160,0.4);
  background: rgba(18,184,160,0.08);
}

/* Social proof stat bar */
.hero-stat {
  margin-top: 52px;
  opacity: 0;
  animation: fadeUp 0.5s 0.5s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.22);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-stat strong { color: rgba(255,255,255,0.5); font-weight: 500; }

.hero-stat-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

/* ── Shared Section ─────────────────────────────────────────── */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 32px;
}

.s-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 48px;
}

.s-title em { font-style: italic; color: var(--teal); }

/* ── Website of the Week ────────────────────────────────────── */
.wotw-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.wotw-left {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wotw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.3;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.wotw-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.wotw-url  { font-size: 0.78rem; color: var(--ink-4); margin-bottom: 20px; }

.wotw-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.wotw-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 36px; }

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.tag.green {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: transparent;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.15s, transform 0.15s;
}

.visit-btn:hover { background: var(--teal); transform: translateY(-1px); }

.visit-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.wotw-right {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.wotw-right::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,184,160,0.15), transparent 70%);
  pointer-events: none;
}

.wotw-visual { text-align: center; position: relative; z-index: 1; }

.wotw-icon-wrap {
  width: 88px; height: 88px;
  border-radius: 22px;
  background: rgba(18,184,160,0.15);
  border: 1px solid rgba(18,184,160,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
}

.wotw-visual-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.wotw-visual-cat  { font-size: 0.72rem; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Categories ─────────────────────────────────────────────── */
#categories {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}

.cat-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.see-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--teal-mid);
  transition: gap 0.15s, border-color 0.15s;
}

.see-all:hover { gap: 9px; border-color: var(--teal); }

.cat-scroll {
  display: flex;
  gap: 12px;
  padding: 0 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.cat-card {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-card:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.cat-icon  { font-size: 1.4rem; margin-bottom: 2px; }
.cat-name  { font-size: 0.88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cat-desc  { font-size: 0.75rem; font-weight: 300; color: var(--ink-3); line-height: 1.55; }
.cat-count { font-size: 0.68rem; color: var(--teal); font-weight: 500; margin-top: auto; }

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-body {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-points   { display: flex; flex-direction: column; gap: 16px; }
.about-point    { display: flex; gap: 14px; align-items: flex-start; }

.point-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 1px solid var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.point-check svg { width: 10px; height: 10px; stroke: var(--teal); fill: none; stroke-width: 2.5; stroke-linecap: round; }

.about-point p  { font-size: 0.85rem; font-weight: 400; color: var(--ink-2); line-height: 1.6; }

.about-right    { display: flex; flex-direction: column; gap: 0; }

.stat-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-row:first-child { border-top: 1px solid var(--line); }

.stat-num   { font-family: 'DM Serif Display', serif; font-size: 2.4rem; letter-spacing: -0.03em; color: var(--ink); }
.stat-label { font-size: 0.82rem; font-weight: 300; color: var(--ink-3); text-align: right; max-width: 160px; line-height: 1.5; }

/* ── How it Works ───────────────────────────────────────────── */
.how-section       { background: var(--ink); padding: 100px 40px; }
.how-inner         { max-width: 1040px; margin: 0 auto; }
.how-section .s-title { color: #fff; margin-bottom: 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2A2A2A;
}

.step          { background: var(--dark); padding: 40px 36px; }
.step-num      { font-family: 'DM Serif Display', serif; font-size: 3rem; color: #2A2A2A; line-height: 1; margin-bottom: 20px; }
.step h3       { font-size: 0.95rem; font-weight: 500; color: #fff; margin-bottom: 10px; }
.step p        { font-size: 0.83rem; font-weight: 300; color: #787878; line-height: 1.7; }

/* ── CTA ────────────────────────────────────────────────────── */
#cta           { background: var(--dark); padding: 100px 32px; text-align: center; }
#cta .eyebrow  { margin-bottom: 16px; }

.cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
}

.cta-title em { color: var(--teal); font-style: italic; }

.cta-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  max-width: 360px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
}

.btn-teal:hover { background: var(--teal-dim); transform: translateY(-1px); }

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wotw-card   { grid-template-columns: 1fr; }
  .wotw-right  { min-height: 220px; }
  .about-grid  { grid-template-columns: 1fr; gap: 48px; }
  .steps       { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cat-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .cat-scroll::-webkit-scrollbar { display: none; }
  .cat-card   { min-width: 160px; flex: 0 0 160px; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wotw-left  { padding: 32px 24px; }
  .section    { padding: 72px 20px; }
  .how-section { padding: 72px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
}
