:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #111827;
  --muted: #5f6878;
  --line: #dfe5ee;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f4ef;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101419;
  --surface: #171d24;
  --surface-strong: #202832;
  --text: #f5f7fb;
  --muted: #aeb8c6;
  --line: #2d3744;
  --accent: #5eead4;
  --accent-strong: #99f6e4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.theme-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--accent);
  color: var(--bg);
}

.site-nav {
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  padding: 0.45rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

.theme-toggle {
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.theme-toggle__icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -0.25rem -0.25rem 0 color-mix(in srgb, var(--bg) 55%, transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 4.6rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.hero__content {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.hero__lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.55rem;
  font-weight: 800;
}

.button--primary {
  background: var(--accent);
  color: var(--bg);
}

.button--secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero__panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__panel > div {
  padding: 1.25rem;
  border-radius: 0.55rem;
  background: var(--surface-strong);
}

.metric,
.metric-label {
  display: block;
}

.metric {
  font-size: 2rem;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--surface);
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-grid,
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.feature-card,
.app-tile,
.learning-item {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
}

.feature-card {
  min-height: 13rem;
  padding: 1.5rem;
}

.feature-card p,
.app-tile p,
.learning-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-card__tag {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.learning-list {
  display: grid;
  gap: 0.8rem;
}

.learning-item {
  display: grid;
  grid-template-columns: 3rem 13rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
}

.learning-item span {
  color: var(--accent-strong);
  font-weight: 800;
}

.app-tile {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.35rem;
}

.app-tile__icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.feature-card:hover,
.app-tile:hover,
.learning-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card,
.app-tile,
.learning-item,
.theme-toggle,
.button,
.site-nav a,
.site-footer a {
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section__heading {
    display: block;
  }

  .feature-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .learning-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .learning-item p {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .theme-toggle__text {
    display: none;
  }

  .site-nav {
    gap: 0.35rem;
    font-size: 0.9rem;
  }

  .button {
    width: 100%;
  }
}
