@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #11100f;
  --ink-soft: #1a1816;
  --paper: #f6f1e9;
  --paper-deep: #ebe3d8;
  --white: #fffdf9;
  --ember: #e83b20;
  --gold: #ffb000;
  --muted: #746e66;
  --line-dark: rgba(255, 255, 255, 0.13);
  --line-light: rgba(17, 16, 15, 0.14);
  --shadow: 0 24px 70px rgba(40, 27, 18, 0.13);
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-shell { overflow: hidden; }
.site-header,
.hero,
.apps-section,
.site-footer,
.page-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line-light);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 17px; letter-spacing: -0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--ember);
  transition: right 180ms ease;
}
.site-nav a:hover::after { right: 0; }
.nav-cta { padding: 10px 16px; color: var(--white); background: var(--ink); border-radius: 999px; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding-block: 72px 84px;
}
.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow span { width: 24px; height: 3px; background: var(--ember); }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(54px, 7.2vw, 94px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.075em;
}
.hero h1 em { color: var(--ember); font-style: normal; }
.hero-intro { max-width: 570px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 12px 30px rgba(17, 16, 15, 0.15); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(17, 16, 15, 0.22); }
.button-quiet { border-color: var(--line-light); background: transparent; }
.button-quiet:hover { background: var(--white); }

.hero-art { position: relative; min-height: 510px; display: grid; place-items: center; }
.mark-frame {
  position: relative;
  z-index: 2;
  width: min(92%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 26px 28px 0 var(--gold), var(--shadow);
  transform: rotate(3deg);
}
.mark-frame img { width: 86%; transform: rotate(-3deg); filter: saturate(1.08); }
.orbit { position: absolute; border: 1px solid rgba(232, 59, 32, 0.3); border-radius: 50%; }
.orbit-one { width: 112%; aspect-ratio: 1; transform: rotate(-13deg) scaleY(0.73); }
.orbit-two { width: 132%; aspect-ratio: 1; transform: rotate(18deg) scaleY(0.54); }
.spark { position: absolute; z-index: 3; width: 18px; height: 18px; background: var(--ember); transform: rotate(45deg); }
.spark-one { top: 13%; right: 4%; }
.spark-two { bottom: 8%; left: 4%; width: 12px; height: 12px; background: var(--gold); }

.studio-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 22px 30px;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.studio-strip p { margin: 0; }
.studio-strip > span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.apps-section { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: 1fr 0.48fr; align-items: end; gap: 60px; margin-bottom: 54px; }
.section-heading h2,
.contact-banner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: -0.06em;
}
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 17px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.app-card {
  min-height: 400px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-light);
  transition: background 200ms ease, transform 200ms ease;
}
.app-card:nth-child(odd) { border-right: 1px solid var(--line-light); }
.app-card:hover { position: relative; z-index: 1; background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card-featured { background: rgba(255, 176, 0, 0.08); }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.app-icon { width: 82px; height: 82px; object-fit: cover; border-radius: 21px; box-shadow: 0 10px 28px rgba(24, 17, 10, 0.15); }
.platform-label { padding: 7px 10px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.app-card-copy { margin-top: 34px; }
.app-number { margin: 0 0 8px; color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; }
.app-card h3 { margin: 0; font-family: var(--display); font-size: clamp(25px, 3vw, 34px); line-height: 1.08; letter-spacing: -0.05em; }
.app-card-copy > p:last-child { max-width: 450px; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.app-card-footer { margin-top: auto; padding-top: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.app-card-footer > a { flex: 0 0 auto; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.store-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.store-links a { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { color: var(--muted); font-size: 11px; font-weight: 600; }
.tags span + span::before { content: "/"; margin-right: 7px; color: rgba(17, 16, 15, 0.28); }

.contact-banner {
  width: 100%;
  padding: 82px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  background: var(--ember);
}
.contact-banner .eyebrow { color: rgba(255, 255, 255, 0.75); }
.contact-banner .eyebrow span { background: var(--gold); }
.button-light { border-color: var(--white); color: var(--ink); background: var(--white); }

.site-footer {
  min-height: 140px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .brand-mark { width: 34px; height: 34px; }
.site-footer p { margin: 0; }
.site-footer nav { justify-self: end; display: flex; gap: 24px; }
.site-footer a:hover { color: var(--ember); }

/* Secondary pages */
.page-body { background: var(--ink); }
.page-body .site-header { color: var(--white); border-color: var(--line-dark); }
.page-body .nav-cta { color: var(--ink); background: var(--white); }
.page-body .site-nav a:not(.nav-cta)::after { background: var(--gold); }
.page-shell { padding-block: 74px 110px; }
.page-hero { max-width: 780px; margin-bottom: 42px; color: var(--white); }
.page-hero .eyebrow { color: rgba(255,255,255,0.58); }
.page-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(52px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.07em; }
.page-hero p:last-child { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,0.62); font-size: 18px; }
.content-card { padding: clamp(28px, 5vw, 68px); background: var(--paper); border-radius: 24px; box-shadow: 0 34px 90px rgba(0,0,0,0.28); }
.content-card h2 { margin: 42px 0 12px; font-family: var(--display); font-size: 25px; letter-spacing: -0.04em; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: #5f5a54; }
.content-card a { color: #b82917; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(184,41,23,0.35); text-underline-offset: 3px; }
.content-card strong { color: var(--ink); }
.content-card ul { padding-left: 22px; }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.contact-card h2 { margin: 0 0 8px; }
.contact-card p { margin: 0; }
.contact-email { padding: 13px 18px; border: 1px solid var(--line-light); border-radius: 999px; white-space: nowrap; }
.page-body .site-footer { color: rgba(255,255,255,0.55); }
.page-body .site-footer .brand-lockup { color: var(--white); }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-block: 64px 90px; }
  .hero-copy { position: relative; z-index: 4; }
  .hero-art { width: min(100%, 560px); min-height: 460px; margin-inline: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading > p { max-width: 520px; }
  .contact-banner { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
}

@media (max-width: 640px) {
  .site-header, .hero, .apps-section, .site-footer, .page-shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 74px; }
  .brand-name { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .hero { padding-block: 54px 74px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-intro { font-size: 17px; }
  .hero-art { min-height: 340px; }
  .mark-frame { width: min(82vw, 340px); box-shadow: 15px 16px 0 var(--gold), var(--shadow); }
  .studio-strip { justify-content: flex-start; overflow: hidden; white-space: nowrap; padding-inline: 20px; }
  .studio-strip p:nth-of-type(3), .studio-strip span:nth-of-type(2) { display: none; }
  .apps-section { padding-block: 82px; }
  .section-heading { margin-bottom: 34px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 370px; padding: 26px 8px; }
  .app-card:nth-child(odd) { border-right: 0; }
  .app-card:hover { padding-inline: 22px; }
  .app-icon { width: 72px; height: 72px; border-radius: 18px; }
  .app-card-footer { align-items: flex-start; flex-direction: column; }
  .contact-banner { padding-block: 64px; }
  .contact-banner .button { width: 100%; font-size: 12px; }
  .site-footer nav { gap: 16px; }
  .page-shell { padding-block: 52px 80px; }
  .page-hero h1 { font-size: 52px; }
  .content-card { border-radius: 16px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-email { white-space: normal; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
