/* GlintGG marketing site — dark-first, aligned to docs/design/spec00-design-language.md */

:root {
  color-scheme: dark;

  /* Surfaces + text (dark tokens from AppTheme) */
  --surface-0: #1a1625;
  --surface-1: #252036;
  --surface-2: #302a45;
  --surface-3: #3d3555;
  --surface-4: #4a4168;
  --ink: #e8e4f0;
  --muted: #9b93b0;
  --muted-soft: #6b6480;
  --line: rgb(255 255 255 / 8%);
  --line-strong: rgb(255 255 255 / 14%);

  /* Accents */
  --lavender: #b8a9d4;
  --lavender-bright: #d4c8eb;
  --mint: #a8d8b9;
  --sky: #a1c6e7;
  --peach: #f2c4a0;
  --terracotta: #d4956a;
  --rose: #e8a0a0;
  --gold: #ffd166;

  --max-width: 72rem;
  --content-width: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-0);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgb(184 169 212 / 14%), transparent 32rem),
    radial-gradient(circle at 92% 4%, rgb(161 198 231 / 12%), transparent 30rem),
    radial-gradient(circle at 50% 110%, rgb(168 216 185 / 10%), transparent 38rem),
    var(--surface-0);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(26 22 37 / 78%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav a.active {
  background: var(--lavender);
  color: var(--surface-0);
}

.main {
  flex: 1;
  padding: 2.5rem 1.25rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgb(26 22 37 / 70%);
  backdrop-filter: blur(18px);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* Cards */

.shell-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: 0 18px 54px rgb(0 0 0 / 28%);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

/* Holo / gradient utilities */

.brand-gradient {
  background: linear-gradient(
    135deg,
    var(--lavender),
    var(--sky),
    var(--mint),
    var(--gold)
  );
}

.brand-gradient-text {
  background: linear-gradient(
    135deg,
    var(--lavender-bright),
    var(--sky),
    var(--mint),
    var(--gold)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--surface-0);
  box-shadow: 0 12px 30px rgb(212 149 106 / 28%);
}

.btn-primary:hover {
  background: var(--peach);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow .dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(168 216 185 / 18%);
}

/* Hero */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 1.25rem 0 1rem;
  max-width: 22ch;
}

.hero p.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  text-align: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(184 169 212 / 60%),
    rgb(161 198 231 / 40%),
    rgb(168 216 185 / 40%),
    rgb(255 209 102 / 50%)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card img {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  display: block;
}

.hero-card .note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3rem 0 1rem;
}

.section h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section p.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Feature grid */

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature .pill {
  display: block;
  height: 0.4rem;
  width: 3.25rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.feature .feature-tag {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  background: var(--surface-3);
  color: var(--gold);
}

.feature .feature-tag.tag-free {
  background: rgb(168 216 185 / 14%);
  color: var(--mint);
}

/* TCG row */

.tcg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tcg-chip {
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.tcg-chip .more {
  color: var(--muted);
  font-weight: 500;
}

/* Coming-soon banner */

.cta-banner {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-banner {
    grid-template-columns: 1fr auto;
    padding: 2.5rem;
  }
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

/* Article pages */

.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 0;
}

.article header {
  margin-bottom: 2rem;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.article header p {
  color: var(--muted);
  margin: 0;
}

.article h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
}

.article p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.article a.inline {
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-underline-offset: 3px;
}

.callout {
  border-radius: 1rem;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 4px solid var(--gold);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 54px rgb(0 0 0 / 24%);
  margin-bottom: 2rem;
}

.callout strong {
  color: var(--ink);
}

.contact-card {
  margin-bottom: 1.25rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
  margin: 0 0 0.5rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  color: var(--ink);
  margin: 0;
}

.contact-company {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.delete-list {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Socials grid */

.socials-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .socials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.social-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface-1);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--lavender);
  background: var(--surface-2);
}

.social-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.social-name {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-soft);
}

.social-handle {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-socials a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-socials a:hover {
  color: var(--ink);
}

.footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.tagline {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Waitlist form */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 28rem;
}

.waitlist-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--lavender);
  background: var(--surface-2);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted-soft);
}

.waitlist-form button {
  flex: 0 0 auto;
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.waitlist-note {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.waitlist-fallback {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-underline-offset: 3px;
}

.waitlist-status {
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.waitlist-status[data-kind="success"] {
  color: var(--mint);
}

.waitlist-status[data-kind="error"] {
  color: var(--rose);
}
