:root {
  --bg: #020617;
  --bg-elevated: #02091a;
  --bg-soft: #050b1f;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --accent-2: #4ade80;
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.65);
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.85),
    rgba(2, 6, 23, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #06b6d4 45%, #0f172a 80%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.75);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: inherit;
  border: 2px solid rgba(15, 23, 42, 0.8);
}

.logo-text {
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
}

.logo-text span {
  color: var(--accent);
}

.nav-center {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(30, 64, 175, 0.6);
  transform: translateY(-1px);
}

.nav-link--active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  background: radial-gradient(circle at 30% 0, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.9));
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}

.nav-search:hover {
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
  color: var(--accent);
}

.nav-lang {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: default;
}

.nav-lang-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 11px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

/* Mobile dropdown nav */

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 10px;
  background: rgba(2, 6, 23, 0.98);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-mobile .nav-link {
  display: block;
  width: 100%;
}

/* HERO */

.hero-wrap {
  padding: 26px 0 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(140deg, #020617, #020617 40%, #020617 75%, #000);
  border-radius: 32px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(148, 163, 184, 0.03);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.13), transparent 55%);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.hero-title {
  font-size: clamp(26px, 3.1vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 10px;
}

.hero-title span {
  background: linear-gradient(to right, #22d3ee, #4ade80);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-pill {
  font-size: 11px;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
}

.hero-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
  color: #0b1120;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.7);
  transition: transform .12s ease, box-shadow .14s ease, filter .14s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
}

.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.8);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-secondary-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.hero-secondary-text span {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  background: radial-gradient(circle at 10% 0, rgba(34, 211, 238, 0.18), transparent 55%),
              radial-gradient(circle at 80% 120%, rgba(56, 189, 248, 0.2), transparent 55%),
              linear-gradient(145deg, #020617, #020617 40%, #020617 80%, #000);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.hero-orbit-inner {
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(30, 64, 175, 0.5);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(135deg, #020617, #020617 45%, #000);
  overflow: hidden;
}

.hero-orbit-line {
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transform: rotate(-16deg);
}

.hero-ev {
  position: absolute;
  bottom: 14%;
  left: 5%;
  right: 5%;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(120deg, #0ea5e9, #22d3ee, #38bdf8);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
}

.hero-ev::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background: linear-gradient(130deg, #f9fafb, #e5e7eb 45%, #cbd5f5 80%);
  clip-path: polygon(0 40%, 20% 10%, 75% 0, 100% 20%, 100% 80%, 30% 100%, 0 80%);
}

.hero-ev-strip {
  position: absolute;
  top: 16%;
  left: 10%;
  right: 10%;
  height: 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, #020617, #0f172a);
}

.hero-ev-light {
  position: absolute;
  top: 38%;
  right: 9%;
  width: 16%;
  height: 18%;
  border-radius: 40% 80% 40% 80%;
  background: radial-gradient(circle at 0 50%, #e0f2fe, #7dd3fc 55%, transparent 75%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.hero-badge {
  position: absolute;
  top: 14%;
  right: 10%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.85);
}

/* SECTIONS */

.section {
  padding: 14px 0 6px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.section-link {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  cursor: pointer;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(30, 64, 175, 0.5);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transition: transform .14s ease, box-shadow .14s ease, border-color .16s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.7);
}

.card-thumb {
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.16), transparent 60%),
              linear-gradient(135deg, #020617, #020617 40%, #020617 80%, #000);
  height: 120px;
  position: relative;
  overflow: hidden;
}

.card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.card-meta span strong {
  color: var(--accent);
}

.card-excerpt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.small-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.96);
}

.small-pill--accent {
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.98);
}

/* GUIDES / TOOLS */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 18px;
}

.guide-list {
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-subtle);
}

.guide-item {
  padding: 7px 6px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s ease, color .14s ease, transform .12s ease;
}

.guide-item:hover {
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  transform: translateY(-1px);
}

.guide-item span {
  font-size: 11px;
  color: var(--accent);
}

.tool-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 197, 94, 0.7);
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.2), transparent 60%),
    linear-gradient(135deg, #020617, #020617 60%, #000);
  padding: 12px 12px 10px;
  box-shadow: 0 14px 40px rgba(22, 101, 52, 0.7);
}

.tool-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-text {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tool-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.tool-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

.tool-input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.tool-note {
  font-size: 11px;
  color: rgba(209, 213, 219, 0.9);
}

/* NEWS STRIP */

.news-strip {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.8);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), #020617);
  padding: 7px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}

.news-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
}

.news-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  flex: 0 0 auto;
}

/* FOOTER */

.footer {
  margin-top: 18px;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 60%, #000);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(107, 114, 128, 0.85);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .nav-center {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile.nav-mobile--open {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px 16px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-sub {
    max-width: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 0 12px;
  }

  .hero {
    border-radius: 22px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 24px;
  }
}
