:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #0f172a;
  --muted: #475569;
  --primary: #00796b;
  --primary-soft: rgba(0, 121, 107, 0.12);
  --accent: #0a84ff;
  --danger: #dc2626;
  --border: rgba(15, 23, 42, 0.1);
  --radius: 18px;
}

[data-theme="dark"] {
  --bg: #0b0f0e;
  --surface: #151b19;
  --surface-2: #1d2623;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #2dd4bf;
  --primary-soft: rgba(45, 212, 191, 0.14);
  --accent: #38bdf8;
  --danger: #f87171;
  --border: rgba(241, 245, 249, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gate / Login */
.gate-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top right, var(--primary-soft), transparent 55%), var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.gate-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 10px;
}
.gate-card h1 { margin: 0 0 6px; font-size: 24px; }
.gate-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #052e29; }
[data-theme="light"] .btn-primary, :root:not([data-theme="dark"]) .btn-primary { color: #ffffff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-full { width: 100%; }

.error-msg {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  padding: 46px 0 28px;
}
.hero-box {
  background: linear-gradient(135deg, var(--primary-soft), rgba(10, 132, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
}
.hero h2 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
.hero p { margin: 0 0 20px; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h3 { margin: 0; font-size: 22px; }
.section-head span { color: var(--muted); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h4 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
}
.pill-green { background: var(--primary-soft); color: var(--primary); }

/* Timeline */
.timeline { display: grid; gap: 12px; }
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 16px 18px;
}
.timeline-item small { color: var(--primary); font-weight: 700; }
.timeline-item h4 { margin: 4px 0 6px; font-size: 16px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

footer {
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.hidden { display: none !important; }
