:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --ink: #16181d;
  --ink-soft: #52565f;
  --ink-faint: #8a8f99;
  --line: #e6e7ea;
  --accent: #2f5fff;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 1080px;
  --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 8px 24px rgba(20, 22, 30, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark { font-size: 18px; }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--ink-faint); }

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 40px;
  max-width: 560px;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.project-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.project-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 16px;
  flex-grow: 1;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-meta li {
  font-size: 13px;
  color: var(--ink-faint);
  padding-left: 16px;
  position: relative;
}

.project-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.project-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.project-link:hover { text-decoration: underline; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 16px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 600;
}

.fact-value {
  font-size: 15px;
  font-weight: 500;
}

/* Contact */
.contact-inner { text-align: left; }

.contact-email {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-email:hover { border-color: var(--accent); }

/* Footer */
.site-footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-sub a {
  color: var(--ink-faint);
  text-decoration: none;
}

.footer-sub a:hover { color: var(--ink-soft); }

/* Privacy index & policy pages */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.policy-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-list a {
  display: block;
  padding: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.policy-list a span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.policy-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.policy-doc .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}

.policy-doc .back-link:hover { color: var(--ink); }

.policy-doc h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.policy-doc .updated {
  color: var(--ink-faint);
  font-size: 13px;
  margin: 0 0 40px;
}

.policy-doc h2 {
  font-size: 18px;
  margin: 36px 0 12px;
}

.policy-doc p, .policy-doc li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.policy-doc ul {
  padding-left: 20px;
}

.policy-doc li { margin-bottom: 6px; }

.policy-doc strong { color: var(--ink); }

.policy-doc a.inline { color: var(--accent); }

/* Responsive */
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav.nav-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
