﻿:root {
  --bg: #10141c;
  --bg-soft: #171d27;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #f3f6ff;
  --muted: #c5ccdc;
  --accent: #63c5ff;
  --accent-strong: #2da9ff;
  --shadow: 0 18px 40px rgba(3, 8, 16, 0.42);
  --radius: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -15%, rgba(71, 126, 255, 0.24), transparent 50%),
    radial-gradient(1000px 550px at 90% 0%, rgba(72, 214, 188, 0.2), transparent 45%),
    linear-gradient(180deg, #0c1118 0%, var(--bg) 55%, #0d1119 100%);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: #fff;
  color: #0a0d14;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus-visible {
  top: 1rem;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 4vw, 5.25rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 12, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 750;
  text-decoration: none;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  letter-spacing: 0.02em;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav .roser-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-nav .roser-logo-img {
  display: block;
  height: 84px;
  width: auto;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(1.25rem, 3.2vw, 2.8rem);
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

h3 {
  font-size: clamp(1rem, 2.6vw, 1.22rem);
}

.subtitle {
  font-weight: 650;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: #e4ebfb;
  margin: 0 0 0.85rem;
}

.positioning {
  max-width: 62ch;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-disclaimer {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 201, 119, 0.42);
  border-radius: 12px;
  color: #ffdfa8;
  background: rgba(93, 59, 9, 0.2);
  max-width: 68ch;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #06101f;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(120deg, #7ad0ff 0%, #45b8ff 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.glass-panel {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(125%);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-panel {
    background: rgba(24, 30, 41, 0.96);
  }
}

.hero-media {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.app-icon {
  width: min(72vw, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 16px 32px rgba(0, 0, 0, 0.28);
}

.card-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.2rem 1rem;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.feature-card:hover,
.download-card:hover,
.faq-item:hover,
.rules-panel:hover,
.controls:hover,
.preview-panel:hover {
  border-color: rgba(124, 219, 255, 0.55);
  transform: translateY(-2px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.generator-embed {
  display: grid;
  gap: 0.9rem;
}

.app-frame-shell {
  padding: 0;
  overflow: hidden;
}

.app-frame {
  display: block;
  width: 100%;
  min-height: clamp(540px, 76vh, 920px);
  border: 0;
  background: #0a0f17;
}

.controls,
.preview-panel,
.rules-panel,
.download-card,
.faq-item,
.disclaimer-block {
  padding: 1rem;
}

.controls {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

label,
summary {
  font-weight: 650;
}

select,
input[type="checkbox"] {
  accent-color: var(--accent-strong);
}

select {
  width: 100%;
  background: rgba(9, 12, 18, 0.82);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 0.75rem;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.toggle-field input:disabled + span {
  color: #818899;
}

.seed-label {
  margin: 0 0 1rem;
  color: #c9f2ff;
  font-weight: 700;
}

.hex-grid {
  display: grid;
  gap: 0;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hex-row + .hex-row {
  margin-top: -1.2rem;
}

.hex {
  width: clamp(56px, 9vw, 90px);
  aspect-ratio: 1 / 1.12;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: var(--tile-color, #4e6988);
  color: #071018;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 14px rgba(0, 0, 0, 0.32);
}

.hex-label {
  font-size: clamp(0.62rem, 2vw, 0.85rem);
}

.demo-note {
  margin: 1rem 0 0;
  color: var(--muted);
}

.rules-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.text-link {
  color: #8fd4ff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.text-button {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.download-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.26rem 0.62rem;
  color: #e8f0ff;
  font-size: 0.82rem;
  font-weight: 650;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

summary {
  cursor: pointer;
}

.faq-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2rem 0 2.75rem;
}

.disclaimer-block p {
  margin: 0;
  color: #ffd9a7;
}

.disclaimer-block p + p {
  margin-top: 0.55rem;
}

.copyright {
  margin: 1rem 0 0.55rem;
  color: var(--muted);
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    display: none;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(13, 18, 27, 0.96);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .site-nav .roser-logo-img {
    height: 68px;
  }

  .hero-grid,
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .app-frame {
    min-height: clamp(460px, 70vh, 760px);
  }

  .hero-media {
    order: -1;
  }

  .container {
    width: min(100% - 1.4rem, var(--max-width));
  }

  .hex-row + .hex-row {
    margin-top: -0.9rem;
  }
}
