@font-face {
  font-family: "Ubuntu";
  src: local("Ubuntu Regular"), local("Ubuntu");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: local("Ubuntu Bold"), local("Ubuntu-Bold");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Mono";
  src: local("Ubuntu Mono Regular"), local("Ubuntu Mono");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #07141d;
  --bg-deep: #041019;
  --surface: #0d202c;
  --surface-2: #112936;
  --line: rgba(255,255,255,.13);
  --text: #f3f7f9;
  --muted: #aebcc4;
  --accent: #87c9dd;
  --accent-strong: #b7e6f2;
  --green: #86d3ae;
  --shadow: 0 24px 70px rgba(0,0,0,.30);
  --shadow-soft: 0 14px 34px rgba(0,0,0,.20);
  --radius: 1.2rem;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(64,146,181,.16), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, #081923 48%, var(--bg-deep) 100%);
  font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
code, pre { font-family: "Ubuntu Mono", "DejaVu Sans Mono", monospace; }
button, input { font: inherit; }

.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .65rem 1rem; border-radius: .5rem; background: white; color: #07141d;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7,20,29,.92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 4.8rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: grid; text-decoration: none; color: var(--text); line-height: 1.02;
}
.brand:hover { color: var(--text); }
.brand-main { font-weight: 900; font-size: 1.28rem; letter-spacing: .005em; }
.brand-sub {
  margin-top: .28rem; color: var(--muted); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  padding: .62rem .72rem; border-radius: .55rem;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(255,255,255,.055); }
.site-nav .nav-main-site { margin-left: .35rem; border: 1px solid var(--line); }
.menu-button {
  display: none; width: 2.8rem; height: 2.8rem; padding: .55rem;
  border: 1px solid var(--line); border-radius: .65rem;
  background: transparent; color: var(--text); cursor: pointer;
}
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: currentColor; }

.hero {
  position: relative; overflow: hidden; padding: clamp(4.8rem, 9vw, 8.5rem) 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(31,105,154,.30), transparent 28rem),
    linear-gradient(135deg, rgba(13,48,70,.64), rgba(5,18,28,.10) 58%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -12rem 30%; height: 20rem;
  background: radial-gradient(ellipse, rgba(91,180,214,.12), transparent 68%); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.eyebrow {
  margin: 0 0 .8rem; color: var(--green); font-size: .78rem;
  font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; font-weight: 900; }
h1 {
  max-width: 880px; margin: 0; font-size: clamp(2.8rem, 7vw, 5.9rem);
  letter-spacing: -.045em; font-weight: 900; text-shadow: 0 2px 18px rgba(0,0,0,.20);
}
.hero-copy {
  max-width: 780px; margin: 1.5rem 0 0; color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .72rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
.button.primary { color: #061119; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { color: #061119; background: var(--accent-strong); }
.button.secondary { color: var(--text); background: rgba(255,255,255,.025); }

.hosting-card {
  padding: 1.85rem; border: 1px solid rgba(183,230,242,.22); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24,72,96,.72), rgba(8,27,39,.88));
  box-shadow: var(--shadow);
}
.hosting-card img { width: 8rem; aspect-ratio: 2 / 1; object-fit: cover; border-radius: .5rem; box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 10px 28px rgba(0,0,0,.26); }
.hosting-label {
  margin: 1.2rem 0 .35rem; color: var(--green); font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.hosting-card h2 { margin: 0; font-size: 1.85rem; }
.hosting-card p:last-child { color: var(--muted); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid div { padding: 1.25rem 1.4rem; }
.trust-grid div + div { border-left: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid span { color: var(--muted); font-size: .92rem; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2, .key-layout h2 {
  margin: 0 0 .7rem; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.035em;
}
.section-heading p:last-child, .key-layout p { color: var(--muted); }

.tabs {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.035); box-shadow: var(--shadow);
}
.tab-list {
  display: flex; gap: .35rem; overflow-x: auto; padding: .7rem;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025);
}
.tab-list button {
  flex: 0 0 auto; padding: .72rem .95rem; border: 1px solid transparent;
  border-radius: .65rem; color: var(--muted); background: transparent;
  font-weight: 700; cursor: pointer;
}
.tab-list button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab-list button[aria-selected="true"] {
  color: var(--text); border-color: var(--line); background: rgba(255,255,255,.075);
}
.tabs [role="tabpanel"] { padding: clamp(1.2rem, 3vw, 2rem); }
.tabs [role="tabpanel"][hidden] { display: none; }

.panel-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem;
}
.panel-heading h3 { margin: .25rem 0 0; font-size: 1.55rem; }
.package-family {
  display: inline-block; color: var(--green); font-size: .72rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.panel-heading > a, .setup-link a { font-weight: 700; text-decoration: none; }

.code-box { position: relative; }
.code-box pre {
  overflow-x: auto; margin: 0; padding: 3.5rem 1rem 1rem;
  border: 1px solid var(--line); border-radius: .85rem;
  color: #f6fafb; background: rgba(2,9,14,.94); line-height: 1.55;
}
.copy-button {
  position: absolute; right: .72rem; top: .72rem; z-index: 2;
  padding: .42rem .68rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: .5rem; color: white; background: rgba(12,29,39,.94);
  font-size: .82rem; font-weight: 700; cursor: pointer;
}
.copy-button:hover { background: rgba(28,57,72,.98); }
.setup-link { margin: 1.3rem 0 0; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.content-card {
  min-height: 245px; display: flex; flex-direction: column; padding: 1.45rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); background: rgba(255,255,255,.035);
  text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-soft);
}
.content-card:hover { transform: translateY(-5px); color: var(--text); background: rgba(255,255,255,.065); border-color: rgba(135,201,221,.38); box-shadow: var(--shadow); }
.content-card > span { color: var(--green); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.content-card h3 { margin: .55rem 0 .7rem; font-size: 1.35rem; }
.content-card p { margin: 0; color: var(--muted); }
.content-card strong { margin-top: auto; padding-top: 1rem; color: var(--accent); }

.key-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.fingerprint-card {
  position: relative; padding: 1.6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.04); box-shadow: var(--shadow);
}
.fingerprint-card code { display: block; padding-right: 5rem; overflow-wrap: anywhere; font-size: 1.03rem; }
.static-copy { top: 1rem; right: 1rem; }
.fingerprint-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fingerprint-links a { font-weight: 700; text-decoration: none; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.page-hero > .shell > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; }
.guide-nav {
  position: sticky; top: 6rem; display: grid; gap: .35rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,255,255,.03);
}
.guide-nav strong { margin-bottom: .4rem; }
.guide-nav a { padding: .4rem .5rem; border-radius: .45rem; color: var(--muted); text-decoration: none; }
.guide-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.guide-section { scroll-margin-top: 6rem; padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.guide-section:last-child { margin-bottom: 0; border-bottom: 0; }
.guide-section h2 { margin: .35rem 0 1rem; font-size: 2.1rem; }
.guide-section h3 { margin-top: 2rem; }
.guide-section p { color: var(--muted); }

.site-footer { padding: 3.8rem 0 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(2,11,17,.36), rgba(1,7,11,.72)); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1.25fr; gap: 2rem; }
.footer-grid h2, .footer-grid h3 { margin-top: 0; }
.footer-grid p { color: var(--muted); }
.footer-grid > div:not(.footer-nz) a { display: block; margin: .35rem 0; text-decoration: none; }
.footer-nz { display: flex; gap: .9rem; align-items: flex-start; }
.footer-nz img { width: 5rem; border-radius: .35rem; box-shadow: 0 0 0 1px var(--line); }
.footer-nz p { margin: 0; }
.footer-bottom { margin-top: 2.5rem; padding: 1.2rem 0 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
    display: none; align-items: stretch; flex-direction: column; padding: .7rem;
    border: 1px solid var(--line); border-radius: .85rem;
    background: rgba(7,20,29,.98); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-main-site { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hosting-card { max-width: 620px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div + div { border-left: 0; border-top: 1px solid var(--line); }
  .key-layout, .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .guide-nav { grid-template-columns: 1fr 1fr; }
  .footer-nz { margin-top: .5rem; }
}
