/* ═══════════════════════════════════════════════════════════════
   SANTH TOOLS — Design System
   Apple Cinematic v6.6 / Obsidian Titanium
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  /* Void */
  --void: #000000;
  --bg-surface: #0A0B0C;
  --bg-elevated: #111113;
  --bg-card: #161618;

  /* Titanium spectrum */
  --titanium-50: #FAFAFA;
  --titanium-100: #F4F4F5;
  --titanium-200: #E4E4E7;
  --titanium-300: #D4D4D8;
  --titanium-400: #A1A1AA;
  --titanium-500: #71717A;
  --titanium-600: #52525B;
  --titanium-700: #3F3F46;
  --titanium-800: #27272A;
  --titanium-900: #18181B;

  /* Accent — restrained */
  --accent: #0A84FF;
  --accent-soft: rgba(10, 132, 255, 0.08);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.10);

  /* Spacing */
  --section-gap: clamp(80px, 12vw, 192px);
  --content-max: 1200px;
  --content-narrow: 800px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--void);
  color: var(--titanium-200);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

/* ── Titanium Gradient Text ───────────────────────────────────── */
.gradient-titanium {
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    #F4F4F5 25%,
    #D4D4D8 60%,
    #A1A1AA 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-titanium-soft {
  background: linear-gradient(180deg,
    #E4E4E7 0%,
    #A1A1AA 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Typography ───────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--titanium-500);
  margin-bottom: 16px;
}

.body-large {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--titanium-400);
}

.body-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--titanium-400);
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

section {
  padding: var(--section-gap) 0;
}

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(5, 6, 7, 0.88);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--titanium-100);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--titanium-400);
  transition: color 0.25s var(--ease-out);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--titanium-100);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--titanium-200);
  transition: width 0.3s var(--ease-spring);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  background: white;
  color: black;
  transition: all 0.25s var(--ease-out);
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.08);
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--titanium-200);
  margin: 5px 0;
  transition: all 0.3s var(--ease-out);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 6, 7, 0.96);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: white;
  color: black;
  transition: all 0.25s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  background: transparent;
  color: var(--titanium-200);
  transition: all 0.25s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.35s var(--ease-spring);
}

.card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* ── Grid ─────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0;
  text-align: center;
}

.footer-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--titanium-300);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--titanium-500);
  transition: color 0.25s var(--ease-out);
}

.footer-links a:hover {
  color: var(--titanium-200);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--titanium-700);
}

/* ── Scroll Progress ──────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--titanium-400), var(--titanium-200));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Badge / Pill ─────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--titanium-400);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: rgba(10, 132, 255, 0.15);
  color: var(--accent);
}

/* ── Tool Card (Affiliate) ────────────────────────────────────── */
.tool-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.tool-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--titanium-100);
}

.tool-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--titanium-500);
}

.tool-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--titanium-400);
  flex-grow: 1;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--titanium-200);
  transition: all 0.25s var(--ease-out);
  margin-top: auto;
}

.tool-card-cta:hover {
  color: white;
  gap: 10px;
}

.tool-card-cta .arrow {
  transition: transform 0.25s var(--ease-out);
}

.tool-card-cta:hover .arrow {
  transform: translateX(3px);
}

/* ── Feature Row ──────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}

/* ── Newsletter form ──────────────────────────────────────────── */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--titanium-100);
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.newsletter-form input::placeholder {
  color: var(--titanium-600);
}

.newsletter-form input:focus {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ── Stat Block ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--titanium-500);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Category Tabs ────────────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.category-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--titanium-400);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.category-tab:hover {
  border-color: var(--border-hover);
  color: var(--titanium-200);
}

.category-tab.active {
  background: white;
  color: black;
  border-color: white;
}

/* ── About page  ──────────────────────────────────────────────── */
.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.values-list li {
  padding-left: 24px;
  border-left: 2px solid var(--titanium-800);
  transition: border-color 0.3s var(--ease-out);
}

.values-list li:hover {
  border-left-color: var(--titanium-400);
}

.values-list strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--titanium-100);
  margin-bottom: 4px;
}
