:root {
  color-scheme: light dark;
  --bg: #fafbfd;
  --surface: #ffffff;
  --text: #12151b;
  --muted: #586172;
  --line: #e4e7ee;
  --accent-1: #6366f1;
  --accent-2: #06b6d4;
  --glow-1: rgba(99, 102, 241, 0.16);
  --glow-2: rgba(6, 182, 212, 0.12);
  --icon: #5458e8;
  --icon-bg: rgba(99, 102, 241, 0.1);
  --shadow: 0 1px 2px rgba(18, 21, 27, 0.04), 0 8px 24px rgba(18, 21, 27, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #13161d;
    --text: #eceef3;
    --muted: #9ba4b4;
    --line: #232834;
    --glow-1: rgba(99, 102, 241, 0.24);
    --glow-2: rgba(6, 182, 212, 0.14);
    --icon: #9aa1fb;
    --icon-bg: rgba(99, 102, 241, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(56rem 28rem at 12% -8%, var(--glow-1), transparent 62%),
    radial-gradient(48rem 26rem at 96% 2%, var(--glow-2), transparent 60%),
    var(--bg);
}

.top,
main,
footer {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}

.brand b,
.accent {
  font-weight: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang a,
.lang span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.lang a {
  color: var(--muted);
}

.lang a:hover {
  color: var(--text);
}

.lang span {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

main {
  flex: 1;
}

.hero {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 4rem;
  animation: rise 0.7s ease-out both;
}

.term {
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  color: #d9dde5;
  background: #0f1218;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28), 0 0 0 1px rgba(99, 102, 241, 0.1);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.term-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #2a303c;
}

.term-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.term-body p {
  margin: 0;
  line-height: 2;
}

.term .p {
  color: #8b93f8;
}

.term .ok {
  color: #34d399;
}

.cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1.1rem;
  vertical-align: -0.2rem;
  background: var(--accent-2);
  animation: blink 1.1s steps(1) infinite;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .term {
    display: block;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 36rem;
  margin: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 28px var(--glow-1);
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px var(--glow-1);
}

.cta svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding-bottom: 4.5rem;
  animation: rise 0.7s 0.12s ease-out both;
}

.pillars article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pillars svg {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 0.75rem;
  color: var(--icon);
  background: var(--icon-bg);
}

.pillars h2 {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.pillars p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact a {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.contact a:hover {
  color: var(--accent-1);
}

footer {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0.2rem 0;
}

a:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 999px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .pillars {
    animation: none;
  }

  .cta {
    transition: none;
  }

  .cursor {
    animation: none;
  }
}

@media (max-width: 40rem) {
  .top,
  main,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  footer::before {
    left: 1rem;
    right: 1rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}
