/* Meta-Insight website – shared stylesheet */

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

/* ── Tokens ──────────────────────────────────────────────────── */

:root {
  --bg:           #ffffff;
  --bg2:          #f5f5f7;
  --bg-glass:     rgba(255, 255, 255, 0.72);
  --text:         #1d1d1f;
  --text2:        #6e6e73;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(14, 165, 196, 0.5);
  --accent:       #0ea5c4;
  --accent-hover: #0891b2;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:    0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-icon:  0 8px 32px rgba(10, 60, 100, 0.22), 0 2px 8px rgba(0,0,0,0.12);
  --radius:       16px;
  --radius-sm:    10px;
  --max-width:    900px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #000000;
    --bg2:          #111113;
    --bg-glass:     rgba(0, 0, 0, 0.72);
    --text:         #f5f5f7;
    --text2:        #86868b;
    --border:       rgba(255, 255, 255, 0.09);
    --border-hover: rgba(14, 165, 196, 0.6);
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    --shadow-lg:    0 12px 32px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.3);
    --shadow-icon:  0 8px 40px rgba(14, 165, 196, 0.25), 0 2px 12px rgba(0,0,0,0.5);
  }
}

/* ── Base ────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / Nav ────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
}

header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

header nav { display: flex; gap: 20px; }

header nav a {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.15s ease;
}
header nav a:hover { color: var(--text); text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 96px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text2);
}
footer a { color: var(--text2); }
footer a:hover { color: var(--text); }

/* ── Scroll reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 72px 0 64px;
  position: relative;
}

/* Subtle radial glow behind the icon */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 165, 196, 0.10) 0%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 165, 196, 0.16) 0%, transparent 70%);
  }
}

.hero-icon {
  display: inline-block;
  margin-bottom: 28px;
  animation: icon-drop 0.7s var(--ease-out) both;
}

.hero-icon img {
  width: 120px;
  height: 120px;
  border-radius: 27px; /* macOS continuous corner approximation */
  box-shadow: var(--shadow-icon);
  display: block;
}

@keyframes icon-drop {
  from { opacity: 0; transform: scale(0.88) translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin-bottom: 20px;
  animation: fade-up 0.6s 0.1s var(--ease-out) both;
}

.hero .tagline {
  font-size: 19px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
  animation: fade-up 0.6s 0.18s var(--ease-out) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.26s var(--ease-out) both;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  letter-spacing: 0.1px;
}

/* ── Section header ──────────────────────────────────────────── */

.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.section-header p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text2);
}

/* ── Feature cards ───────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s ease;
  cursor: default;
}

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

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  /* color and background set inline per card */
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
}

/* ── Supported tools table ───────────────────────────────────── */

.tools-section {
  margin-bottom: 72px;
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.tools-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 16px;
  background: var(--bg2);
  color: var(--text2);
}

.tools-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.tools-table tbody tr {
  transition: background 0.15s ease;
}

.tools-table tbody tr:hover {
  background: var(--bg2);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, "Cascadia Code", monospace;
  font-size: 0.85em;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ── Privacy callout ─────────────────────────────────────────── */

.privacy-callout {
  background: linear-gradient(135deg, rgba(14, 165, 196, 0.07) 0%, rgba(14, 165, 196, 0.03) 100%);
  border: 1px solid rgba(14, 165, 196, 0.25);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (prefers-color-scheme: dark) {
  .privacy-callout {
    background: linear-gradient(135deg, rgba(14, 165, 196, 0.10) 0%, rgba(14, 165, 196, 0.04) 100%);
    border-color: rgba(14, 165, 196, 0.30);
  }
}

.privacy-callout .pc-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(14, 165, 196, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.privacy-callout h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.privacy-callout p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.55;
}

.privacy-callout a {
  font-weight: 500;
}

/* ── Privacy policy page ─────────────────────────────────────── */

.page-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.page-header .meta {
  font-size: 14px;
  color: var(--text2);
}

.policy-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 40px 0 12px;
}

.policy-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

.policy-body p  { margin-bottom: 14px; }
.policy-body ul, .policy-body ol { margin: 0 0 14px 20px; }
.policy-body li { margin-bottom: 6px; }

.policy-body .highlight {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
}

.policy-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 24px;
}
