:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --surface: #313244;
  --overlay: #6c7086;
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --blue: #89b4fa;
  --mauve: #cba6f7;
  --green: #a6e3a1;
  --peach: #fab387;
  --pink: #f5c2e7;
  --mono: ui-monospace, "JetBrainsMono Nerd Font", "FiraCode Nerd Font", "Fira Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 24, 37, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface);
}

header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}

.logo {
  font: 700 18px var(--mono);
  color: var(--text);
}
.logo span { color: var(--mauve); }

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav a { color: var(--subtext); }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.hero {
  padding-block: 88px 64px;
  text-align: center;
}
.hero h1 {
  font: 800 clamp(40px, 8vw, 72px)/1.05 var(--mono);
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--mauve), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--subtext);
  max-width: 640px;
  margin: 0 auto 32px;
}

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--surface);
  color: var(--text);
}
.btn.primary { background: var(--mauve); color: var(--crust); border-color: var(--mauve); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.terminal {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
  background: var(--crust);
  border: 1px solid var(--surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.terminal .bar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: var(--mantle);
  border-bottom: 1px solid var(--surface);
}
.terminal .bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.terminal .bar i:nth-child(1) { background: #f38ba8; }
.terminal .bar i:nth-child(2) { background: #f9e2af; }
.terminal .bar i:nth-child(3) { background: var(--green); }
.terminal pre {
  margin: 0;
  padding: 18px 20px;
  font: 15px/1.7 var(--mono);
  overflow-x: auto;
}
.p-os { color: var(--crust); background: var(--mauve); padding: 0 6px; }
.p-dir { color: var(--crust); background: var(--peach); padding: 0 6px; }
.p-git { color: var(--crust); background: var(--green); padding: 0 6px; }
.p-time { color: var(--crust); background: var(--blue); padding: 0 6px; }
.p-char { color: var(--green); font-weight: 700; }
.p-dim { color: var(--overlay); }

section { padding-block: 64px; }
section h2 {
  font: 700 28px var(--mono);
  margin: 0 0 8px;
}
section p.lead { color: var(--subtext); margin: 0 0 32px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--mantle);
  border: 1px solid var(--surface);
  border-radius: 10px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font: 700 18px var(--mono); }
.card:nth-child(1) h3 { color: var(--peach); }
.card:nth-child(2) h3 { color: var(--green); }
.card:nth-child(3) h3 { color: var(--blue); }
.card p { margin: 0; color: var(--subtext); }

code, pre.code {
  font-family: var(--mono);
}
code {
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
pre.code {
  background: var(--crust);
  border: 1px solid var(--surface);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
}
pre.code .c { color: var(--overlay); }

.steps { display: grid; gap: 28px; }
.step h3 { margin: 0 0 10px; font: 700 17px var(--mono); }
.step h3 b { color: var(--mauve); margin-right: 8px; }

.tabs { border: 1px solid var(--surface); border-radius: 8px; overflow: hidden; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs .labels {
  display: flex;
  flex-wrap: wrap;
  background: var(--mantle);
  border-bottom: 1px solid var(--surface);
}
.tabs label {
  padding: 10px 18px;
  cursor: pointer;
  font: 600 14px var(--mono);
  color: var(--subtext);
  border-bottom: 2px solid transparent;
}
.tabs .panel { display: none; }
.tabs .panel pre.code { border: 0; border-radius: 0; }
#t-zsh:checked ~ .labels label[for="t-zsh"],
#t-bash:checked ~ .labels label[for="t-bash"],
#t-ash:checked ~ .labels label[for="t-ash"] {
  color: var(--text);
  border-bottom-color: var(--mauve);
}
#t-zsh:checked ~ .p-zsh,
#t-bash:checked ~ .p-bash,
#t-ash:checked ~ .p-ash { display: block; }
.tabs input:focus-visible ~ .labels { outline: 2px solid var(--blue); outline-offset: -2px; }

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.gallery figure {
  margin: 0;
  background: var(--crust);
  border: 1px solid var(--surface);
  border-radius: 8px;
  padding: 12px;
}
.gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--subtext);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

footer {
  border-top: 1px solid var(--surface);
  padding-block: 28px;
  color: var(--overlay);
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
