/* Maxome Media — site styles
   Palette borrows from the app: near-black ground, warm amber accent,
   one restrained serif for display + Inter for everything else. */

:root {
  --bg:        #101012;
  --bg-raised: #17171a;
  --bg-card:   #1c1c20;
  --line:      #2b2b31;
  --text:      #f2f2f0;
  --text-dim:  #a6a6ad;
  --text-mut:  #74747c;
  --accent:    #ffbf3f;
  --accent-ink:#1a1400;
  --radius:    14px;
  --maxw:      1080px;
  --pad:       clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* belt-and-braces: nothing bleeds sideways */
  -webkit-text-size-adjust: 100%;   /* stop mobile Safari inflating text on rotate */
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head nav { flex-shrink: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  flex-shrink: 0;
  color: var(--text); font-weight: 600; font-size: 17px;
  letter-spacing: -0.005em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand.small { font-size: 15px; }
.brand.small img { width: 24px; height: 24px; }

.site-head nav { display: flex; gap: 4px; }
.site-head nav a {
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
}
.site-head nav a:hover { color: var(--text); background: var(--bg-raised); text-decoration: none; }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

section { padding: clamp(56px, 10vw, 112px) 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 28px;
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 12vw, 128px); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(31px, 7vw, 68px);
  font-weight: 600;
  margin-bottom: 22px;
}
/* the manual break helps the desktop line; on phones let it wrap naturally */
@media (max-width: 560px) { .hero h1 br { display: none; } }
.lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-dim);
  max-width: 42ch;
  margin: 0 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 11px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffca5e; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-mut); background: var(--bg-raised); }

/* ---------- apps ---------- */
.app-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.app-media {
  position: sticky;
  top: 88px;                 /* logo stays in view while the feature list scrolls past */
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 12px;
  border: 1px solid var(--line);
  /* subtle spotlight so the art doesn't float on flat black */
  background:
    radial-gradient(120% 120% at 50% 0%, #26262c 0%, #121216 70%);
}
@media (max-width: 820px) { .app-media { position: static; } }
.app-media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.5));
}
.app-body h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.app-platform {
  color: var(--accent); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.app-body p { color: var(--text-dim); margin: 0 0 18px; }

.feature-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; gap: 8px;
  font-size: 15px; line-height: 1.5; color: var(--text-dim);
}
.feature-list li { padding-left: 22px; position: relative; }
.feature-list li strong { color: var(--text); font-weight: 600; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* footnote reference markers */
.fn-ref {
  font-size: 0.72em; font-weight: 600;
  vertical-align: super; line-height: 0;
  margin-left: 1px; padding: 0 1px;
  color: var(--text-mut);
}
.fn-ref:hover { color: var(--text-dim); text-decoration: none; }

.footnote {
  margin: 6px 0 20px;
  font-size: 13px; line-height: 1.5; color: var(--text-mut);
}
.footnote .fn-mark { margin-right: 3px; }
.footnote a { color: var(--text-dim); }
.fn-back { margin-left: 4px; text-decoration: none; }
:target { scroll-margin-top: 96px; }

.badge-soon {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  border: 1px dashed var(--text-mut);
  padding: 8px 14px; border-radius: 9px;
}

.more-soon {
  color: var(--text-mut); font-size: 15px;
  margin: 28px 0 0; text-align: center;
}

/* ---------- studio ---------- */
.studio-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px);
}
.studio-grid p { color: var(--text-dim); margin: 0; max-width: 46ch; }

/* ---------- support ---------- */
.support-lede { color: var(--text-dim); max-width: 48ch; margin: 0 0 28px; }

.contact { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
  transition: border-color .12s ease, background .12s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #1b1b1f;
}
.field textarea { resize: vertical; min-height: 120px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 0; overflow: hidden; }

.h-captcha { margin: 6px 0 16px; }
.h-captcha:empty { margin: 0; }  /* script blocked / not yet rendered */

.contact .btn { margin-top: 4px; }
.form-status { font-size: 14.5px; margin: 14px 0 0; min-height: 1.2em; }
.form-status.ok  { color: #7fd18b; }
.form-status.err { color: #e88b7f; }
.form-fallback { font-size: 14px; color: var(--text-mut); margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-raised); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot nav a { color: var(--text-dim); font-size: 14.5px; }
.site-foot nav a:hover { color: var(--text); }
.foot-inner .copy {
  color: var(--text-mut); font-size: 13.5px; margin: 0;
  flex-basis: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .app-card { grid-template-columns: 1fr; }
  .app-media img { max-width: 360px; }
  .studio-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-head nav a { padding: 8px 9px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 68px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; }        /* full-width stacked CTAs, easy thumb targets */
  .app-card { padding: 16px; }
  .app-media { padding: 18px; }
  .studio-grid p, .lede, .support-lede { max-width: none; }
}

@media (max-width: 460px) {
  .site-head { padding: 12px 16px; }
  .site-head nav { gap: 2px; }
  .site-head nav a { font-size: 14px; padding: 8px 7px; }
  .foot-inner { padding: 32px 16px; }
}

/* very narrow / large-text: never let a long word force a scrollbar */
@media (max-width: 380px) {
  body { font-size: 16px; }
  h1, h2, h3 { overflow-wrap: anywhere; }
}

/* honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* the site is dark-only by design; keep a sane light fallback for
   forced-colors / print */
@media print {
  body { background: #fff; color: #000; }
}
