/* Tokens ≈ JamMind/UI/JamMindTheme.swift */
:root {
  --bg: #1a1d21;
  --bg-deep: #141619;
  --bg-card: #1c1f24;
  --bg-elevated: #23272e;
  --text: #f5f5f5;
  --text-secondary: #949494;
  --text-tertiary: #666666;
  --accent: #00ffff;
  --accent-soft: rgba(0, 255, 255, 0.12);
  --accent-border: rgba(0, 255, 255, 0.4);
  --purple: #a29bfe;
  --purple-soft: rgba(162, 155, 254, 0.15);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7fffff;
}

/* —— Layout —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 22, 25, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .inner,
.wrap,
.section-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-cta {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav .nav-cta:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #fff;
}

main {
  overflow-x: hidden;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 0 40px;
}

/* —— Hero —— */

.hero {
  position: relative;
  padding: 48px 0 32px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(162, 155, 254, 0.1), transparent),
    var(--bg-deep);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
  }
}

.hero-copy .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 38ch;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.badge svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  color: var(--bg-deep);
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
}

.btn-primary:hover {
  background: #66ffff;
  color: var(--bg-deep);
  box-shadow: 0 0 32px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.hero-visual figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 255, 255, 0.08);
}

.hero-visual figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Features —— */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* —— Screenshots —— */

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shot-card {
  margin: 0;
}

.shot-card .shot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shot-card:hover .shot-frame {
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 255, 255, 0.06);
}

.shot-card img {
  width: 100%;
}

.shot-card figcaption {
  padding: 16px 4px 0;
}

.shot-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}

.shot-card figcaption span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.shot-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .shot-card--wide .shot-frame {
    max-height: 520px;
  }

  .shot-card--wide img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
  }
}

/* —— Roadmap —— */

.roadmap {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .roadmap {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.roadmap-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
}

.roadmap-card--now {
  border-color: rgba(0, 255, 255, 0.35);
  background: linear-gradient(160deg, rgba(0, 255, 255, 0.06) 0%, var(--bg-card) 50%);
}

.roadmap-card--next {
  border-color: rgba(162, 155, 254, 0.35);
  background: linear-gradient(160deg, rgba(162, 155, 254, 0.08) 0%, var(--bg-card) 50%);
}

.roadmap-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.roadmap-version {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.roadmap-card--now .roadmap-version {
  color: var(--accent);
}

.roadmap-card--next .roadmap-version {
  color: var(--purple);
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.roadmap-card--next .roadmap-list li::before {
  background: var(--purple);
}

.roadmap-teaser {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* —— Download —— */

.download-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: var(--bg-card);
  box-shadow: 0 0 48px rgba(0, 255, 255, 0.06);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 12px;
}

.download-card p {
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto 24px;
}

/* —— Footer —— */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-deep);
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .site-footer .inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* —— Prose pages (privacy, support) —— */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.wrap.prose header {
  margin-bottom: 32px;
}

.brand {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, var(--text-tertiary));
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.brand a:hover {
  color: var(--accent);
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0.25em 0 0.5em;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--text);
}

.prose p,
.prose ul {
  color: var(--text-secondary);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
