:root {
  --bg: #070b16;
  --bg-soft: #0d1325;
  --panel: rgba(15, 22, 42, 0.82);
  --panel-strong: rgba(10, 16, 32, 0.95);
  --border: rgba(138, 161, 255, 0.18);
  --text: #eef2ff;
  --muted: #a9b4d0;
  --blue: #66d1ff;
  --purple: #bb7dff;
  --pink: #ff6bd6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 209, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(187, 125, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #070b16 0%, #090d1c 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(6, 10, 22, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner,
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.site-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-btn,
.btn,
.slider-btn,
.card-link,
.text-link,
.footer-nav a {
  transition: 180ms ease;
}

.account-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.account-btn {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.account-btn:hover,
.account-btn:focus-visible {
  border-color: rgba(102, 209, 255, 0.5);
  background: rgba(102, 209, 255, 0.1);
}

main {
  padding: 24px 0 72px;
}

.hero {
  padding-top: 18px;
}

.hero-card,
.update-slide,
.tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 560px;
  border-radius: var(--radius-lg);
}

.hero-image,
.hero-overlay,
.hero-copy {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.88) 0%, rgba(4, 8, 18, 0.64) 44%, rgba(4, 8, 18, 0.3) 100%),
    linear-gradient(180deg, rgba(10, 17, 33, 0.06), rgba(10, 17, 33, 0.55));
}

.hero-copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 620px;
  padding: 48px;
}

.eyebrow,
.section-kicker,
.tool-type,
.update-tag {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.tool-type {
  color: var(--blue);
}

.hero h1,
.section-head h2,
.tool-card h3,
.update-slide h3 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  max-width: 10ch;
}

.hero-text,
.section-note,
.update-slide p,
.tool-card p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 1.03rem;
  line-height: 1.7;
}

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

.btn-primary {
  color: #08101e;
  background: linear-gradient(135deg, var(--blue), #c4f1ff);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(102, 209, 255, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.updates,
.tools {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-note {
  max-width: 34ch;
  margin: 0;
  text-align: right;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 209, 255, 0.4);
}

.updates-slider {
  position: relative;
  min-height: 250px;
}

.update-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  padding: 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(12, 19, 36, 0.96), rgba(19, 14, 42, 0.96)),
    linear-gradient(90deg, rgba(102, 209, 255, 0.14), rgba(255, 107, 214, 0.08));
}

.update-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.update-tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: #08101e;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.update-slide h3 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.update-slide p,
.tool-card p {
  margin: 14px 0 0;
  line-height: 1.7;
}

.text-link,
.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover,
.card-link:hover,
.footer-nav a:hover,
.text-link:focus-visible,
.card-link:focus-visible,
.footer-nav a:focus-visible {
  color: var(--blue);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(13, 19, 37, 0.98), rgba(9, 14, 28, 0.96));
}

.tool-card.featured {
  grid-column: span 2;
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(102, 209, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 20, 38, 0.98), rgba(9, 14, 28, 0.96));
}

.tool-card h3 {
  font-size: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.85);
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-card {
    min-height: 520px;
  }

  .hero-copy {
    max-width: 100%;
    padding: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .site-footer-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    min-height: 540px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4, 8, 18, 0.38) 0%, rgba(4, 8, 18, 0.84) 72%, rgba(4, 8, 18, 0.96) 100%);
  }

  .hero-copy {
    justify-content: end;
    padding: 24px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .updates-slider {
    min-height: 300px;
  }

  .update-slide {
    padding: 22px;
  }

  .tool-grid,
  .tool-card.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .tool-grid {
    display: grid;
  }
}
