/* ===== RESET & BASE ===== */
*, *::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;
}

/* ===== VARIABLES ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f9f9fb;
  --border: #e4e4e7;
  --border-hover: #c4c4cb;
  --text: #09090b;
  --text-muted: #71717a;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-bg: #eef2ff;
  --accent-border: #c7d2fe;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --transition: 180ms ease;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-links .nav-cta {
  padding: 0.5rem 1.125rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity var(--transition);
}

.nav-links .nav-cta:hover {
  color: #fff;
  opacity: 0.85;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }

/* ===== HERO ===== */
.hero {
  padding: calc(64px + 7rem) 0 7rem;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(79, 70, 229, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

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

.hero-title {
  font-size: clamp(3.25rem, 7.5vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
  max-width: 13ch;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3), 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35), 0 8px 20px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 22ch;
}

.section-desc {
  margin-top: 0.875rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ===== GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

/* ===== CARDS ===== */
.card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STACK PILLS ===== */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pill {
  padding: 0.4375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
  cursor: default;
}

.pill:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ===== CONTACT SECTION ===== */
.contact-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42ch;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ===== LEGAL PAGES ===== */
.legal-header {
  padding: calc(64px + 4.5rem) 0 3rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  transition: color var(--transition);
}

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

.breadcrumb-sep {
  color: var(--border-hover);
}

.legal-header h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0 5rem;
}

.legal-toc {
  position: sticky;
  top: calc(64px + 2rem);
}

.legal-toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-toc-list a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.3125rem 0;
  display: block;
  line-height: 1.5;
  border-left: 2px solid transparent;
  padding-left: 0.875rem;
  transition: all var(--transition);
}

.legal-toc-list a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}

.legal-body h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(64px + 2rem);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-body ul, .legal-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-body ul li, .legal-body ol li {
  margin-bottom: 0.375rem;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.legal-body a:hover {
  text-decoration-color: var(--accent);
}

.legal-highlight {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-highlight p {
  margin-bottom: 0;
  color: var(--text);
}

.legal-highlight strong {
  color: var(--accent);
}

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-card p {
  margin-bottom: 0.5rem;
}

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

/* ===== STEPS (data deletion) ===== */
.steps {
  counter-reset: steps;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition);
}

.steps li:hover {
  border-color: var(--border-hover);
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  content: counter(steps);
}

.step-num::before {
  content: counter(steps);
}

.step-body {
  flex: 1;
}

.step-body strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

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

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

  .hero {
    padding: calc(64px + 4.5rem) 0 4.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .contact-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links .nav-cta {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
