:root {
  --navy: #0b1426;
  --navy-mid: #111d35;
  --navy-light: #1a2744;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --cyan: #06b6d4;
  --accent: linear-gradient(135deg, #3b82f6, #06b6d4);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Noto Sans SC', 'PingFang SC', -apple-system, sans-serif;
  --header-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 300;
  transition: width 0.1s linear;
}

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  z-index: 210;
}

.logo-mark svg {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  margin: 0 auto;
}

.nav-overlay {
  display: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 48px) 0 64px;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.3);
  top: 10%;
  left: -5%;
  animation: float-1 12s ease-in-out infinite;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.25);
  bottom: 15%;
  right: -5%;
  animation: float-2 15s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, -15px); }
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: fade-up 0.8s ease both;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fff 30%, #93c5fd 70%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: fade-up 0.8s 0.1s ease both;
}

.br-mobile {
  display: none;
}

.hero-desc {
  font-size: clamp(14px, 3.5vw, 16px);
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fade-up 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 8px;
  backdrop-filter: blur(8px);
  animation: fade-up 0.8s 0.4s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hero-scroll:hover {
  opacity: 0.9;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { top: -50%; }
  100% { top: 150%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Values strip ── */
.values-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-top: -1px;
}

.values-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.value-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.value-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.value-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  min-width: 90px;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Sections ── */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Card icon ── */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.card-icon-sm svg {
  width: 20px;
  height: 20px;
}

/* ── About ── */
.about {
  background: var(--surface);
}

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

.about-card {
  padding: 28px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── License ── */
.license {
  background: var(--bg);
}

.license-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.license-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--navy);
  color: #fff;
}

.license-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.license-badge svg {
  width: 22px;
  height: 22px;
}

.license-panel-head h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.license-panel-head p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.license-rows {
  padding: 8px 24px;
}

.license-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.license-row:last-child {
  border-bottom: none;
}

.license-row .label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 100px;
}

.license-row .value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.license-row .value.masked {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.scope-details {
  margin: 0 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scope-details summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scope-details summary::-webkit-details-marker {
  display: none;
}

.scope-details summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.scope-details[open] summary::after {
  content: '−';
}

.scope-details .scope-text {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 24px 20px;
  padding: 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
}

/* ── Scope ── */
.scope {
  background: var(--surface);
}

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

.scope-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.scope-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.scope-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.scope-card:hover::before {
  opacity: 1;
}

.scope-num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  font-weight: 700;
  color: rgba(59, 130, 246, 0.08);
  line-height: 1;
}

.scope-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.scope-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Contact ── */
.contact {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.contact-card,
.icp-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  padding: 8px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 72px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.contact-domains {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.contact-domains a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-domains a:hover {
  text-decoration: underline;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.icp-panel {
  padding: 24px;
}

.icp-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.icp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.icp-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.04);
}

.icp-item:active {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
}

.icp-domain {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.icp-num {
  flex: 1;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.icp-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  right: 20px;
  bottom: calc(24px + var(--safe-bottom));
  z-index: 150;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.back-top[hidden] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 32px 20px calc(32px + var(--safe-bottom));
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.footer-logo {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-icp {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-icp a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-note {
  font-size: 11px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid, .orb, .hero-scroll-line::after,
  .reveal, .hero-badge, .hero h1, .hero-desc,
  .hero-actions, .hero-stats {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Mobile nav open state ── */
body.menu-open {
  overflow: hidden;
}

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

.nav.open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid,
  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    background: var(--navy-mid);
    padding: calc(var(--header-h) + 16px) 16px 24px;
    gap: 4px;
    z-index: 205;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 204;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav.open ~ .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: calc(var(--header-h) + 32px) 0 64px;
    min-height: auto;
  }

  .hero-scroll {
    display: none;
  }

  .values-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .value-item {
    padding: 12px;
    gap: 8px;
  }

  .value-text {
    font-size: 13px;
  }

  .back-top {
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
  }

  .br-mobile {
    display: inline;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
    margin-bottom: 36px;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding: 16px 0;
  }

  .stat {
    padding: 0 8px;
    min-width: 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .about-grid,
  .scope-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-card,
  .scope-card {
    padding: 20px;
  }

  .license-panel-head {
    padding: 20px;
  }

  .license-rows {
    padding: 4px 16px;
  }

  .license-row {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .license-row .label {
    min-width: auto;
    font-size: 12px;
  }

  .license-row .value {
    text-align: left;
    font-size: 14px;
  }

  .scope-details {
    margin: 0 16px 12px;
  }

  .privacy-note {
    margin: 0 16px 16px;
  }

  .contact-card {
    padding: 4px 16px;
  }

  .contact-item {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }

  .contact-value {
    text-align: left;
  }

  .contact-domains {
    align-items: flex-start;
  }

  .icp-panel {
    padding: 20px 16px;
  }

  .icp-item {
    flex-wrap: wrap;
    padding: 14px;
  }

  .icp-num {
    width: 100%;
    text-align: left;
    order: 3;
    padding-left: 0;
    margin-top: 2px;
  }

  .icp-arrow {
    margin-left: auto;
  }

  .footer-icp {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-badge {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 5px 12px;
  }
}
