:root {
  --primary: #4db6ac;
  --secondary: #ffb74d;
  --text: #111111;
  --text-muted: #5f6663;
  --bg: #f7f8f6;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(241, 251, 248, 0.78);
  --border: rgba(17, 17, 17, 0.08);
  --shadow: 0 24px 50px rgba(17, 17, 17, 0.08);
  --bg-gradient:
    radial-gradient(1000px 520px at 10% -10%, rgba(153, 221, 204, 0.35), transparent 60%),
    radial-gradient(900px 540px at 90% 0%, rgba(255, 183, 77, 0.25), transparent 55%),
    var(--bg);
}

html[data-theme="dark"] {
  --text: #f5f7f6;
  --text-muted: #a6b0ad;
  --bg: #0e1413;
  --surface: rgba(19, 27, 26, 0.92);
  --surface-soft: rgba(24, 36, 34, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --bg-gradient:
    radial-gradient(1000px 520px at 10% -10%, rgba(77, 182, 172, 0.2), transparent 60%),
    radial-gradient(900px 540px at 90% 0%, rgba(255, 183, 77, 0.16), transparent 55%),
    var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  min-height: 100vh;
  padding: 36px 20px 60px;
  transition: background 0.2s ease, color 0.2s ease;
}

h1,
h2 {
  font-family: "Urbanist", sans-serif;
  letter-spacing: -0.02em;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
  z-index: -1;
}

.ambient-a {
  width: 340px;
  height: 340px;
  top: -100px;
  left: -50px;
  background: rgba(77, 182, 172, 0.55);
}

.ambient-b {
  width: 380px;
  height: 380px;
  right: -100px;
  bottom: -140px;
  background: rgba(255, 183, 77, 0.48);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.hero {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.04;
}

.hero p {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: 1rem;
  max-width: 70ch;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.switchboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.surface-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 1.42rem;
}

.surface-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.surface-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.btn {
  width: fit-content;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #369f95);
  color: #ffffff;
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
}

.theme-toggle {
  min-width: 122px;
}

.theme-toggle.theme-toggle-icon-btn {
  display: inline-flex;
  align-items: center;
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
  justify-content: center;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon-moon {
  stroke: none;
  fill: currentColor;
}

@media (max-width: 900px) {
  .switchboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 12px 40px;
  }

  .hero,
  .surface-card {
    border-radius: 16px;
    padding: 14px;
  }
}
