/* Gustalabs landing — the family's front door, in the family's dark style.
   Tokens echo the products (Gusta Music's studio theme) with the master
   brand G's colors as accents: azure --accent, violet --accent-2. */
:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-raised: #16181f;
  --bg-panel: #1c1f28;
  --border: #2a2e3a;
  --text: #d7dae3;
  --text-dim: #7b8194;
  --accent: #00b6ff;
  --accent-2: #af4cff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(175, 76, 255, 0.1), transparent 60%),
    radial-gradient(900px 480px at 12% 4%, rgba(0, 182, 255, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: none;
}

.brand-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.primary-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 550;
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--bg-panel);
}

/* ── Hero ───────────────────────────────────────────────────────── */

main {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: clamp(56px, 10vh, 110px) 0 30px;
  text-align: center;
}

.hero-mark {
  margin: 0 auto 22px;
  filter: drop-shadow(0 10px 40px rgba(0, 182, 255, 0.25));
}

.hero h1 {
  margin: 0 auto;
  max-width: 17ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.button:hover {
  border-color: var(--accent);
}

.button.primary {
  border: none;
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent-2) 80%, var(--accent)));
  color: #06121c;
}

.button.primary:hover {
  filter: brightness(1.1);
}

/* ── Sections ───────────────────────────────────────────────────── */

.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.products,
.account {
  padding: clamp(48px, 8vh, 84px) 0 0;
}

.products h2,
.account h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.product-mark {
  border-radius: 12px;
}

.product-card h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.product-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.account-item {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
}

.account-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.account-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(56px, 9vh, 100px);
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.footer-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

/* ── Legal documents (legal/terms, legal/privacy) ───────────────── */

.legal-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.legal-doc {
  padding: 30px clamp(18px, 4vw, 44px) 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.legal-meta {
  margin: 0 0 26px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.legal-doc h2 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.6;
}

.legal-doc ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

/* ── Redirect stubs (apps/, gusta3d/, routeplanner/) ────────────── */

.placeholder-main {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.placeholder-main h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.015em;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
