/* Voltarum landing: two large panels, one per guide.
   Each panel has its own hue (teal for networking, violet for local AI) that
   matches the colours of the site it leads to. Light and dark follow the system. */

:root {
  --bg: #f6f7f9;
  --fg: #14181f;
  --muted: #4b5563;
  --line: #d9dde3;
  color-scheme: light;

  --net-bg: #e3f0f3;
  --net-ink: #0c4a58;
  --net-accent: #0b6477;
  --net-tint: #bfe0e8;

  --ai-bg: #ece8fa;
  --ai-ink: #2f2670;
  --ai-accent: #4a3aa7;
  --ai-tint: #cfc7f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015;
    --fg: #eceef2;
    --muted: #a3acb9;
    --line: #262b34;
    color-scheme: dark;

    --net-bg: #0f2a33;
    --net-ink: #cdeff6;
    --net-accent: #7ed0e0;
    --net-tint: #18434f;

    --ai-bg: #1d1a33;
    --ai-ink: #e3defb;
    --ai-accent: #b4abf5;
    --ai-tint: #34295f;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* ---- header ---- */
.top {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 2rem;
  height: 2rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.lang:hover {
  color: var(--fg);
  border-color: var(--muted);
}

/* ---- intro ---- */
.intro {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) 1.25rem 1.5rem;
}
.intro h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 750;
  text-wrap: balance;
}
.intro p {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

/* ---- the two panels ---- */
main {
  flex: 1;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.panel {
  --bg-p: var(--net-bg);
  --ink: var(--net-ink);
  --accent: var(--net-accent);
  --tint: var(--net-tint);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(30rem, 68vh, 40rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--bg-p);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.panel.ai {
  --bg-p: var(--ai-bg);
  --ink: var(--ai-ink);
  --accent: var(--ai-accent);
  --tint: var(--ai-tint);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}

.art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  margin: -0.4rem -0.4rem 0.4rem;
}
.art svg {
  width: min(100%, 25rem);
  height: auto;
  max-height: 17rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 750;
  text-wrap: balance;
}

.panel p.lead {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  text-wrap: pretty;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.95rem;
  font-weight: 600;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  min-height: 2.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.go svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}
.panel:hover .go svg {
  transform: translateX(5px);
}

/* ---- footer ---- */
footer {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}
footer a {
  text-underline-offset: 3px;
}

/* ---- small screens ---- */
@media (max-width: 52rem) {
  .panels {
    grid-template-columns: 1fr;
  }
  .panel {
    min-height: 0;
  }
  .art {
    min-height: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .go svg {
    transition: none;
  }
  .panel:hover {
    transform: none;
  }
  .panel:hover .go svg {
    transform: none;
  }
}
