@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #000000;
  --surface: #111111;
  --text: #FFFFFF;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --border: #333333;
  --border-light: rgba(255, 255, 255, 0.12);
  --radius-lg: 16px;
  --radius-xl: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --surface: #FAFAFA;
    --text: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #E8E8E8;
    --border-light: rgba(0, 0, 0, 0.08);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border-light);
}

@media (prefers-color-scheme: light) {
  .nav {
    background-color: rgba(255, 255, 255, 0.7);
  }
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo svg {
  width: 20px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

/* ========== Hero (Landing) ========== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-logo {
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-logo svg {
  width: 64px;
  height: 96px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--text);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========== Features ========== */
.features {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Legal pages ========== */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.footer-dot {
  color: var(--text-tertiary);
  font-size: 13px;
}

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

/* ========== Tables (legal pages) ========== */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-page thead {
  display: table-header-group;
}

.legal-page table,
.legal-page thead,
.legal-page tbody,
.legal-page tr,
.legal-page th,
.legal-page td {
  display: revert;
}

.legal-page th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.legal-page td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}

.legal-page tbody tr:last-child td {
  border-bottom: none;
}

/* ========== Mobile menu toggle ========== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .legal-page h1 {
    font-size: 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .legal-page table {
    font-size: 13px;
  }

  .legal-page th,
  .legal-page td {
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .hero-logo svg {
    width: 48px;
    height: 72px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .features {
    padding: 48px 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .legal-page {
    padding: 80px 20px 60px;
  }

  .legal-page h1 {
    font-size: 24px;
  }

  .legal-meta {
    margin-bottom: 32px;
  }

  .legal-page h2 {
    font-size: 18px;
    margin-top: 32px;
  }

  .legal-page h3 {
    font-size: 15px;
  }

  .legal-page p,
  .legal-page ul,
  .legal-page ol {
    font-size: 14px;
  }

  .footer {
    padding: 24px 20px;
    gap: 8px;
  }

  .footer a {
    font-size: 12px;
  }

  .footer-dot {
    font-size: 12px;
  }
}

@media (max-width: 640px) and (prefers-color-scheme: light) {
  .nav-links {
    background-color: rgba(255, 255, 255, 0.95);
  }
}
