/* VenvStudio — venvstudio.com
   Palette is the app's own: Catppuccin Mocha, the same colours the icon uses. */

:root {
  --base:      #1e1e2e;
  --mantle:    #181825;
  --crust:     #11111b;
  --surface0:  #313244;
  --surface1:  #45475a;
  --surface2:  #585b70;
  --overlay0:  #6c7086;
  --text:      #cdd6f4;
  --subtext:   #a6adc8;
  --blue:      #89b4fa;
  --sapphire:  #74c7ec;
  --green:     #a6e3a1;
  --yellow:    #f9e2af;
  --peach:     #fab387;
  --pink:      #f38ba8;
  --mauve:     #cba6f7;
  --teal:      #94e2d5;
  --red:       #f38ba8;

  --maxw: 1140px;
  --gap: 1.5rem;
  --radius: 14px;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

code, pre { font-family: var(--mono); font-size: .92em; }

/* ── header ─────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 24, 37, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface0);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1rem;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand span b { color: var(--blue); }
.brand span i { color: var(--green); font-style: normal; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--subtext); padding: .45rem .75rem; border-radius: 8px;
  font-size: .94rem; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--surface0); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--surface0); }
.nav .gh { color: var(--text); }

.menu-btn {
  display: none; margin-left: auto;
  background: var(--surface0); border: 1px solid var(--surface1); color: var(--text);
  border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; line-height: 1;
}

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { padding: 4.5rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(137,180,250,.14), transparent 70%);
  pointer-events: none;
}
.hero-icon {
  width: 92px; height: 92px; border-radius: 22px; display: block; margin: 0 auto 1.4rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--subtext);
  max-width: 44rem; margin: 0 auto 2rem;
}
.hero .tag { color: var(--green); font-weight: 600; }

.btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--crust); }
.btn-primary:hover { background: #9cc1fb; }
.btn-ghost { background: var(--surface0); color: var(--text); border-color: var(--surface1); }
.btn-ghost:hover { background: var(--surface1); }

/* ── stats strip ────────────────────────────────────────────────────── */

.stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--surface0);
  border: 1px solid var(--surface0); border-radius: var(--radius);
  overflow: hidden; margin: 3rem 0;
}
.stats div { background: var(--mantle); padding: 1.1rem .75rem; text-align: center; }
.stats b { display: block; font-size: 1.5rem; color: var(--blue); font-weight: 700; letter-spacing: -0.02em; }
.stats span { font-size: .8rem; color: var(--subtext); text-transform: uppercase; letter-spacing: .06em; }

/* ── sections ───────────────────────────────────────────────────────── */

section { padding: 3.25rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--subtext); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mauve); margin-bottom: .6rem;
}

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--mantle); border: 1px solid var(--surface0);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--subtext); margin: 0; font-size: .95rem; }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: .7rem; line-height: 1; }
a.card:hover { border-color: var(--surface2); text-decoration: none; }

/* ── env type table ─────────────────────────────────────────────────── */

.envs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.env {
  background: var(--mantle); border: 1px solid var(--surface0); border-radius: 12px;
  padding: 1.05rem; text-align: center;
}
.env .e { font-size: 1.5rem; display: block; margin-bottom: .35rem; }
.env b { display: block; font-size: .98rem; }
.env span { font-size: .8rem; color: var(--overlay0); font-family: var(--mono); }

/* ── code ───────────────────────────────────────────────────────────── */

.code {
  position: relative; background: var(--crust); border: 1px solid var(--surface0);
  border-radius: 12px; margin: 0 0 1rem;
}
.code pre { margin: 0; padding: 1.05rem 3.25rem 1.05rem 1.15rem; overflow-x: auto; }
.code code { color: var(--text); }
.code .c { color: var(--overlay0); }
.code .k { color: var(--green); }
.code .a { color: var(--peach); }
.copy {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--surface0); border: 1px solid var(--surface1); color: var(--subtext);
  border-radius: 7px; padding: .3rem .55rem; font-size: .75rem; cursor: pointer;
  font-family: var(--sans); font-weight: 600;
}
.copy:hover { color: var(--text); background: var(--surface1); }
.copy.done { color: var(--green); border-color: var(--green); }

/* ── download table ─────────────────────────────────────────────────── */

.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dl a {
  display: block; background: var(--mantle); border: 1px solid var(--surface0);
  border-radius: 12px; padding: 1.35rem; text-align: center; color: var(--text);
}
.dl a:hover { border-color: var(--blue); text-decoration: none; }
.dl .os { font-size: 1.9rem; display: block; margin-bottom: .5rem; }
.dl b { display: block; font-size: 1rem; }
.dl code { display: block; margin-top: .4rem; font-size: .78rem; color: var(--overlay0); }

/* ── screenshots ────────────────────────────────────────────────────── */

.shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1rem; align-items: start;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%; display: block; border-radius: 10px;
  border: 1px solid var(--surface0); cursor: zoom-in; background: var(--mantle);
}
.shots img:hover { border-color: var(--blue); }
.shots figcaption { font-size: .84rem; color: var(--subtext); padding: .5rem .15rem 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(17,17,27,.94); padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; border: 1px solid var(--surface1); }

/* ── misc ───────────────────────────────────────────────────────────── */

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: var(--subtext); font-size: .95rem; }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.list li b { color: var(--text); font-weight: 600; }

.note {
  background: var(--mantle); border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; color: var(--subtext); font-size: .93rem;
}
.note b { color: var(--text); }

.cta {
  background: linear-gradient(135deg, rgba(137,180,250,.11), rgba(203,166,247,.08));
  border: 1px solid var(--surface0); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; margin: 1rem 0 0;
}
.cta h2 { margin-bottom: .5rem; }
.cta p { color: var(--subtext); margin-bottom: 1.5rem; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--surface0); background: var(--mantle);
  margin-top: 3rem; padding: 2.25rem 0; font-size: .9rem; color: var(--subtext);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.site-foot nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-foot .ver {
  font-family: var(--mono); font-size: .8rem; color: var(--overlay0);
  border: 1px solid var(--surface0); border-radius: 20px; padding: .12rem .6rem;
}

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .g3, .dl { grid-template-columns: repeat(2, 1fr); }
  .envs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mantle); border-bottom: 1px solid var(--surface0); padding: .5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .8rem; border-radius: 8px; }
  .g2, .g3, .dl { grid-template-columns: 1fr; }
  .envs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2rem; }
  .cta { padding: 1.75rem 1.25rem; }
  .site-foot nav { margin-left: 0; width: 100%; }
}
