:root {
  --bg: #0a0a12;
  --bg-2: #0f0f1a;
  --surface: #1a1a2e;
  --accent: #16213e;
  --primary: #e94560;
  --primary-glow: rgba(233, 69, 96, 0.45);
  --primary-soft: #ff6b8a;
  --text: #eaeaea;
  --muted: #8892b0;
  --ok: #7fdbca;
  --border: rgba(233, 69, 96, 0.15);
  --glass: rgba(26, 26, 46, 0.72);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(233, 69, 96, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(22, 33, 62, 0.8), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(233, 69, 96, 0.08), transparent 50%),
    var(--bg);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(233, 69, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 69, 96, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.text-accent { color: var(--primary); }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft), #ff9eb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.cawra-nav {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #c23152);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 24px var(--primary-glow);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark.sm { width: 28px; height: 28px; font-size: 0.85rem; border-radius: 8px; }

.brand-logo.sm { width: 28px; height: 28px; border-radius: 8px; }

.brand-text { font-weight: 700; letter-spacing: -0.02em; }

.brand-version,
.footer-version,
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.35);
  color: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.brand-version {
  margin-left: 0.35rem;
}

.footer-version {
  margin-left: 0.5rem;
}

.hero-badge .version-badge {
  margin-left: 0.15rem;
}

.cawra-nav .nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.cawra-nav .nav-link:hover { color: var(--text); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lang-flag:hover,
.lang-flag.active {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-flag.active {
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.45);
}

body.lang-zh {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary), #c23152);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-outline-light {
  border-color: var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.btn-outline-light:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--text);
}

/* Hero */
.hero-section {
  padding: 140px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-heading {
  margin-bottom: 1.25rem;
}

.hero-product-name {
  display: block;
  font-size: clamp(3.5rem, 11vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.65rem;
}

.hero-tagline {
  display: block;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.1rem;
  color: var(--primary);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* IDE Mockup */
.ide-mockup {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--primary-glow);
  background: var(--bg-2);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s;
}

.ide-mockup:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.ide-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--accent);
}

.ide-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.ide-topbar span:first-child { background: #ff5f57; }
.ide-topbar span:nth-child(2) { background: #febc2e; }
.ide-topbar span:nth-child(3) { background: #28c840; }

.ide-title {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.ide-body {
  display: grid;
  grid-template-columns: 48px 1fr 140px;
  min-height: 280px;
}

.ide-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--accent);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ide-file {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.ide-file.active {
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--primary-glow);
}

.ide-editor {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
}

.code-line { white-space: nowrap; }
.indent { padding-left: 1.2rem; }
.indent-2 { padding-left: 2.4rem; }
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.cm { color: var(--muted); }

.ide-panel {
  background: var(--surface);
  border-left: 1px solid var(--accent);
  padding: 12px;
}

.panel-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.panel-node {
  font-size: 0.68rem;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--muted);
  border-left: 3px solid transparent;
}

.panel-node.done { border-left-color: var(--ok); color: var(--ok); }
.panel-node.active {
  border-left-color: var(--primary);
  color: var(--text);
  background: rgba(233, 69, 96, 0.12);
}

.panel-model {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--primary);
  padding: 6px;
  background: var(--bg);
  border-radius: 6px;
  text-align: center;
}

/* Sections */
.section-block {
  padding: 100px 0;
}

.alt-section {
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.4), transparent);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Process flow */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.flow-step {
  flex: 1 1 200px;
  max-width: 240px;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.flow-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.flow-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0.4;
  padding: 0 0.25rem;
}

@media (max-width: 991px) {
  .flow-arrow { display: none; }
}

/* Feature cards */
.feature-card {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 8px 40px rgba(233, 69, 96, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Model grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.model-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.model-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.12);
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.5);
}

.model-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.model-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.model-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Router */
.router-explainer h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.check-list a,
.small-muted a {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.check-list a:hover,
.small-muted a:hover {
  color: #fff;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.router-diagram {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.router-node.center {
  text-align: center;
  font-weight: 700;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), #c23152);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.router-branch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-size: 0.85rem;
}

.router-branch.active {
  border: 1px solid var(--primary);
  background: rgba(233, 69, 96, 0.1);
}

.router-branch em {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  font-style: normal;
}

/* Environment cards */
.env-card {
  padding: 2rem;
  height: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s;
}

.env-card:hover { transform: translateY(-6px); }

.env-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.env-card h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.env-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.vscode-note {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.vscode-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.vscode-note p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* Price */
.lead-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.price-card {
  padding: 2.5rem;
  background: var(--glass);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(233, 69, 96, 0.15);
  text-align: center;
}

.price-amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-period {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price-card hr {
  border-color: var(--border);
  margin: 1.5rem 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.price-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Register */
.register-section {
  padding-bottom: 120px;
}

.register-container {
  max-width: 1400px;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.register-card {
  padding: 3rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.register-card-wide {
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.register-form-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.register-form-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}

.register-form-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.register-form-intro a {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-form-intro a:hover {
  color: #fff;
}

.register-form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.register-terms-box {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.register-terms-box .form-check-label {
  color: var(--text);
}

.register-terms-box a {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-terms-box a:hover {
  color: #fff;
}

.verify-pending-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.85;
}

.verify-resend-form {
  max-width: 360px;
}

.register-form-actions {
  border-top: 1px solid var(--border);
}

.register-tabs {
  max-width: 420px;
}

.register-tabs .nav-link {
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.register-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.cawra-input {
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.cawra-input:focus {
  background: var(--bg-2);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.cawra-input::placeholder { color: #555; }

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(127, 219, 202, 0.15);
  color: var(--ok);
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ok);
}

.small-muted {
  font-size: 0.85rem;
  color: var(--muted);
}

.download-version-card,
.download-platform-card {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(22, 33, 62, 0.55));
  border: 1px solid rgba(233, 69, 96, 0.35);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.download-version-card {
  max-width: 520px;
}

.download-platforms {
  text-align: center;
}

.download-platforms-home {
  margin-top: 1.25rem;
}

.download-platform-card .platform-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.download-platform-card .platform-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.download-platform-card.coming-soon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(22, 33, 62, 0.4));
  border-color: var(--border);
  box-shadow: none;
  opacity: 0.85;
}

.download-platform-card.coming-soon .download-version-number {
  margin-bottom: 1.25rem;
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-version-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.download-version-number {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.download-version-number span {
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.download-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.download-version-meta span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.cawra-footer {
  padding: 4rem 0 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-text a {
  color: var(--primary);
  text-decoration: none;
}

.footer-text a:hover { text-decoration: underline; }

.cawra-footer h6 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Legal pages */
.legal-page {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-content .legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.legal-content p, .legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content ul { padding-left: 1.25rem; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }

/* Gallery */
.gallery-preview {
  max-width: 1080px;
  margin: 0 auto;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-2);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: rgba(233, 69, 96, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
  outline: none;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 26, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay,
.gallery-thumb:focus-visible .gallery-thumb-overlay {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.92);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.gallery-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 4rem;
}

.gallery-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-tool-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-tool-btn:hover {
  background: rgba(233, 69, 96, 0.25);
  border-color: rgba(233, 69, 96, 0.5);
}

.gallery-zoom-label {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 3.5rem;
}

.gallery-close-btn {
  font-size: 1.6rem;
}

.gallery-lightbox-stage {
  position: relative;
  z-index: 2;
  width: min(92vw, 1400px);
  height: min(78vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.gallery-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.15s ease;
  will-change: transform;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(233, 69, 96, 0.3);
  border-color: rgba(233, 69, 96, 0.55);
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

body.gallery-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
  .hero-section { padding-top: 110px; }
  .hero-stats { gap: 1.5rem; }
  .ide-mockup { transform: none; }
  .ide-body { grid-template-columns: 36px 1fr; }
  .ide-panel { display: none; }
  .register-card { padding: 1.5rem; }
  .gallery-nav { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
  .gallery-prev { left: 0.5rem; }
  .gallery-next { right: 0.5rem; }
  .gallery-lightbox-toolbar { padding: 0.75rem; flex-wrap: wrap; }
}
