/* ==========================================================================
   AMG Studios — site stylesheet
   Design tokens extracted from Drop 4 Art/amgstudios.html prototype
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colors */
  --bg: #0a0a0f;
  --bg-elevated: #121219;
  --text: #f3f3f7;
  --text-muted: #a9a9bd;
  --text-faint: #7a7a92;
  --nav-link: #bcbccb;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-faint: rgba(255, 255, 255, 0.07);

  --violet: #7c5cff;
  --teal: #00e5c7;
  --amber: #f6a821;
  --coral: #ff6b7a;
  --blue: #4d8dff;

  --gradient-brand: linear-gradient(135deg, var(--violet), var(--teal));
  --gradient-text: linear-gradient(110deg, var(--violet), var(--teal), var(--violet));
  --gradient-card-1: repeating-linear-gradient(135deg, #14141f, #14141f 14px, #19192a 14px, #19192a 28px);
  --gradient-card-2: repeating-linear-gradient(135deg, #12121b, #12121b 12px, #171721 12px, #171721 24px);

  /* Typography */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
}
p { margin: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* ---- Background glow accents ---- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ---- Top nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-faint);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bg);
  font-size: 18px;
  flex-shrink: 0;
}
.brand-sub {
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 2px;
  font-size: 13px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-link);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta-wrap { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient-brand);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.04); }
.btn-dark {
  background: #000;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn[aria-disabled="true"], .btn.is-soon {
  cursor: default;
  position: relative;
}

.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap .tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.tooltip-wrap:hover .tooltip,
.tooltip-wrap:focus-within .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.pill-live {
  color: var(--teal);
  border-color: rgba(0, 229, 199, 0.35);
  background: rgba(0, 229, 199, 0.08);
}
.pill-live .pill-dot { background: var(--teal); }
.pill-soon {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow--teal { color: var(--teal); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  max-width: 100vw;
}
.hero .glow-1 {
  width: 560px; height: 560px;
  top: -220px; left: -160px;
  background: rgba(124, 92, 255, 0.35);
}
.hero .glow-2 {
  width: 520px; height: 520px;
  bottom: -240px; right: -160px;
  background: rgba(0, 229, 199, 0.25);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 22px 0 20px;
}
.hero-gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-faint);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Hero art card */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gradient-card-1);
}
.hero-card img.hero-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.15) 0%, rgba(10,10,15,0.65) 78%, rgba(10,10,15,0.92) 100%);
}
.hero-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.hero-card-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}
.hero-card .drop4-logo-img {
  width: min(70%, 340px);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
}
.hero-card-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 10px;
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hero-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.hero-dots span:nth-child(1) { background: var(--coral); }
.hero-dots span:nth-child(2) { background: var(--amber); }
.hero-dots span:nth-child(3) { background: var(--violet); }
.hero-dots span:nth-child(4) { background: var(--teal); }

/* ---- Section headers ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 44px;
  letter-spacing: -1px;
  margin-top: 8px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 38ch;
}
.section-head-text { max-width: 640px; }

/* ---- Catalog ---- */
.catalog-flagship {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 24px;
}
.catalog-flagship-art {
  position: relative;
  background: var(--gradient-card-1);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.catalog-flagship-art img { width: min(80%, 320px); }
.catalog-flagship-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.catalog-flagship-body h3 {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.catalog-flagship-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--violet);
}
.catalog-flagship-body p.desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}
.catalog-flagship-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.game-tile {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
}
.game-tile-art {
  aspect-ratio: 3 / 4;
  background: var(--gradient-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.game-tile-art-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-faint);
}
.game-tile-body { padding: 18px 20px 20px; }
.game-tile-body h4 { font-size: 17px; margin-bottom: 8px; }
.game-tile-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ---- Featured Drop4 section ---- */
.featured {
  position: relative;
  text-align: center;
  overflow: hidden;
  max-width: 100vw;
}
.featured .glow-1 {
  width: 700px; height: 500px;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  background: rgba(124, 92, 255, 0.18);
}
.featured-inner { position: relative; z-index: 1; }
.featured-logo { max-width: 320px; margin: 0 auto 20px; }
.featured-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--violet);
  margin-bottom: 18px;
}
.featured-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.screenshot-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--gradient-card-2);
  aspect-ratio: 440 / 960;
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Features grid ---- */
.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-elevated);
  position: relative;
}
.feature-card.span-2 { grid-column: span 2; }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature-icon--violet { background: var(--violet); }
.feature-icon--teal { background: var(--teal); }
.feature-icon--amber { background: var(--amber); }
.feature-icon--coral { background: var(--coral); }
.feature-icon--blue { background: var(--blue); }
.feature-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.badge-soon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(0,229,199,0.14));
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band .glow-1 {
  width: 320px; height: 320px;
  top: -100px; right: -80px;
  background: rgba(0, 229, 199, 0.3);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h3 { font-size: 26px; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-band p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; line-height: 1.6; }
.cta-band-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---- About / universe section ---- */
.about {
  text-align: center;
}
.about h2 { font-size: 44px; letter-spacing: -1px; line-height: 1.1; }
.about-desc {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}
.about-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.about-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--bg-elevated);
}
.about-card h3 { font-size: 20px; margin-bottom: 10px; }
.about-card.violet h3 { color: var(--violet); }
.about-card.teal h3 { color: var(--teal); }
.about-card.blue h3 { color: var(--blue); }
.about-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border-faint);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--nav-link);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-col a.support-email { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--nav-link); }
.footer-legal a:hover { color: var(--text); }

/* ---- Legal pages ---- */
.legal-page { padding: 56px 0 100px; }
.legal-page main { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 36px; letter-spacing: -1px; margin-bottom: 6px; }
.legal-meta { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  margin: 16px 0;
}
.legal-page h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  color: var(--teal);
}
.legal-page p, .legal-page li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-page ul { margin: 12px 0; }
.legal-page li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.legal-page li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
}
.legal-page a { color: var(--blue); }
.legal-page a:hover { text-decoration: underline; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .nav { padding: 16px 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.2px; }
  .hero-lede { font-size: 17px; max-width: none; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 32px; }
  .catalog-flagship { grid-template-columns: 1fr; }
  .catalog-flagship-body { padding: 28px 24px 34px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }
  .screenshot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about h2 { font-size: 30px; }
  .about-desc { font-size: 16px; }
  .about-trio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .screenshot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 20px 28px; }
  .stat-num { font-size: 22px; }
}
