:root {
  --navy: #071524;
  --navy-deep: #030b14;
  --navy-soft: #0d2742;
  --gold: #f1bd49;
  --gold-light: #ffe19a;
  --cream: #f8f1df;
  --muted: #a9b4c0;
  --line: rgba(241, 189, 73, .32);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(circle at 15% 20%, rgba(57, 139, 224, .28), transparent 28%), radial-gradient(circle at 82% 5%, rgba(241, 189, 73, .12), transparent 25%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #72cfff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(3, 11, 20, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.wordmark { width: max-content; color: var(--gold-light); font-family: Georgia, serif; font-weight: 700; letter-spacing: .08em; text-shadow: 0 0 18px rgba(241,189,73,.25); }
.wordmark span { display: block; font-size: 19px; line-height: 1.1; }
.wordmark small { display: block; margin-top: 3px; font-family: inherit; font-size: 6px; letter-spacing: .23em; }
.site-header nav { display: flex; align-items: center; gap: 29px; font-size: 13px; }
.site-header nav a { position: relative; color: #dce3e9; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .2s ease; }
.site-header nav a:hover::after { right: 0; }
.studio-link { justify-self: end; color: #aeb8c2; font-size: 11px; }
.studio-link strong { color: #e4e8eb; font-weight: 600; margin-left: 4px; }
.menu-button { display: none; border: 0; background: none; padding: 7px; }
.menu-button i { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; }

.hero {
  min-height: 900px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(330px, .72fr) minmax(300px, .62fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 130px max(32px, calc((100vw - var(--max)) / 2)) 80px;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(90deg, #04101df5 0%, #07182be6 38%, #07182b9c 65%, #071524eb 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/tenfold-empire-hero.jpeg") center 56% / cover no-repeat;
  opacity: .28;
  filter: saturate(.95);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(3,11,20,.2), rgba(3,11,20,.58) 68%, var(--navy-deep));
}
.hero-glow { position: absolute; z-index: -1; width: 540px; height: 540px; border-radius: 50%; left: 39%; top: 18%; background: radial-gradient(circle, rgba(241,189,73,.22), transparent 69%); filter: blur(8px); }
.kicker { color: var(--gold); margin: 0 0 18px; font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.kicker span { display: inline-block; width: 26px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
h1 { margin: 0 0 25px; font-size: clamp(54px, 5.4vw, 82px); }
h1 em, h2 em { color: var(--gold-light); font-weight: inherit; font-style: normal; }
.hero-lede { color: #e6ebef; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 33px; }
.button { border: 1px solid transparent; border-radius: 4px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 42px; font-size: 13px; font-weight: 800; cursor: pointer; }
.button-gold { color: #151004; background: linear-gradient(#ffd46f, #e4a825); box-shadow: 0 8px 40px rgba(235,174,47,.17); }
.button-gold:hover { filter: brightness(1.08); }
.testing { margin: 0; color: #adb7c0; font-size: 12px; }
.testing i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 8px var(--gold); }
.hero-brand { align-self: center; overflow: hidden; border-radius: 50% 50% 7px 7px; border: 1px solid rgba(255,220,130,.32); box-shadow: 0 25px 90px rgba(0,0,0,.48); }
.hero-brand img { width: 100%; aspect-ratio: .66; object-fit: cover; object-position: center 42%; transform: scale(1.01); }
.hero-phone { align-self: end; transform: translateY(80px) rotate(1deg); box-shadow: 0 28px 90px rgba(0,0,0,.55); }

/* Keep the desktop hero compact enough for a typical laptop viewport. */
@media (min-width: 1021px) {
  .hero {
    min-height: 800px;
    align-items: start;
    padding-top: 105px;
    padding-bottom: 55px;
  }
  .hero-copy { padding-top: 70px; }
  .hero-brand { align-self: start; }
  .hero-phone { align-self: start; transform: translateY(55px) rotate(1deg); }
}

.phone-frame { background: #02070c; border: 5px solid #0f1720; border-radius: 34px; padding: 5px; box-shadow: inset 0 0 0 1px #667280, 0 22px 60px rgba(0,0,0,.38); overflow: hidden; }
.phone-frame img { width: 100%; border-radius: 25px; }
.phone-frame-small { max-width: 385px; }

.stat-strip { position: relative; z-index: 2; max-width: var(--max); margin: -1px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,21,36,.88); }
.stat-strip div { padding: 30px; display: flex; justify-content: center; align-items: baseline; gap: 13px; }
.stat-strip div + div { border-left: 1px solid var(--line); }
.stat-strip strong { font: 46px Georgia, serif; color: var(--gold-light); }
.stat-strip span { color: #d7dde2; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 30px; }
.section h2, .closing h2 { margin: 0 0 25px; font-size: clamp(43px, 5vw, 68px); }
.section-copy > p:last-child, .keys-copy > p, .progression-copy > p, .section-heading > p { color: var(--muted); font-size: 16px; }
.possibilities { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.possibility-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.possibility-cards article { min-height: 310px; padding: 38px 32px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(145deg, rgba(20,48,75,.8), rgba(6,18,30,.92)); box-shadow: 0 16px 45px rgba(0,0,0,.22); }
.possibility-cards article:last-child { transform: translateY(34px); background: radial-gradient(circle at 60% 20%, rgba(241,189,73,.17), transparent 40%), linear-gradient(145deg, rgba(34,34,26,.8), rgba(6,18,30,.92)); }
.possibility-cards h3 { margin: 20px 0 9px; font: 27px Georgia, serif; color: var(--gold-light); }
.possibility-cards p { color: var(--muted); font-size: 13px; }
.icon-chart { display: flex; align-items: end; gap: 4px; height: 48px; width: 52px; border-bottom: 2px solid var(--gold); }
.icon-chart::before, .icon-chart::after { content: ""; width: 11px; background: var(--gold); }
.icon-chart::before { height: 22px; box-shadow: 17px -11px var(--gold), 34px -28px var(--gold); }
.key-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--gold); font-size: 34px; transform: rotate(45deg); text-shadow: 0 0 18px rgba(241,189,73,.6); }

.keys-feature, .progression { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: clamp(60px, 9vw, 130px); }
.keys-feature { position: relative; }
.keys-feature::before { content: ""; position: absolute; width: 520px; height: 520px; left: -130px; top: 20%; background: radial-gradient(circle, rgba(30,113,186,.22), transparent 65%); z-index: -1; }
.keys-visual { justify-self: end; transform: rotate(-2deg); }
.keys-copy > p { max-width: 560px; }
.key-count { margin-top: 35px; display: grid; grid-template-columns: auto auto; width: max-content; align-items: center; gap: 0 15px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 5px; background: rgba(7,21,36,.8); }
.key-count span { grid-row: 1 / 3; color: var(--gold); font-size: 31px; }
.key-count strong { color: var(--gold-light); font: 30px Georgia, serif; }
.key-count small { color: var(--muted); font-size: 11px; }

.screenshots { max-width: 1400px; position: relative; }
.section-heading { max-width: var(--max); margin: 0 auto 55px; display: flex; justify-content: space-between; align-items: end; gap: 45px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); padding: 0 18px 25px; }
.screenshot-card { margin: 0; min-width: 0; }
.screenshot-card:nth-child(2) { transform: translateY(28px); }
.screenshot-card .phone-frame { max-height: 655px; }
.screenshot-card .phone-frame img { aspect-ratio: .461; object-fit: cover; object-position: top; }
.screenshot-card figcaption { padding: 20px 5px; text-align: center; }
.screenshot-card figcaption span, .screenshot-card figcaption strong { display: block; }
.screenshot-card figcaption span { color: var(--gold); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.screenshot-card figcaption strong { margin-top: 5px; font: 22px Georgia, serif; color: var(--cream); }
.gallery-controls, .swipe-hint { display: none; }

.progression { grid-template-columns: 1fr .7fr; padding-bottom: 130px; }
.progression-copy { max-width: 625px; }
.progression-copy ul { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.progression-copy li { display: flex; gap: 18px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: #d6dde2; font-size: 13px; }
.progression-copy li span { color: var(--gold); font-size: 10px; letter-spacing: .15em; padding-top: 2px; }
.shop-visual { justify-self: start; transform: rotate(2deg); }

.closing { position: relative; min-height: 570px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; border-top: 1px solid var(--line); background: linear-gradient(180deg, #061321 0%, #0b2f57 60%, #04101b 100%); }
.closing::before { content: ""; position: absolute; inset: 0; background: url("assets/tenfold-empire-hero.jpeg") center 89% / cover no-repeat; opacity: .35; mix-blend-mode: screen; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,11,20,.65), rgba(3,11,20,.1) 58%, #030b14d9); }
.closing > * { position: relative; z-index: 1; }
.closing h2 { margin-bottom: 18px; }
.closing > p:not(.kicker) { color: #c5ced6; }
.button-outline { margin-top: 22px; background: rgba(7,21,36,.55); border-color: var(--gold); color: var(--gold-light); }
.button-outline:hover { background: rgba(241,189,73,.12); }

footer { max-width: var(--max); margin: auto; padding: 36px 28px 45px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border-top: 1px solid var(--line); }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--gold-light); font: 18px Georgia, serif; letter-spacing: .08em; }
.footer-brand span, footer > p { color: #758391; font-size: 10px; }
footer nav { display: flex; gap: 24px; }
footer button { border: 0; background: none; padding: 0; color: #aab5be; cursor: pointer; font-size: 11px; }
footer button:hover { color: var(--gold-light); }
footer > p { grid-column: 1 / -1; margin: 0; }

dialog { width: min(520px, calc(100% - 34px)); padding: 42px; border: 1px solid var(--gold); border-radius: 7px; color: var(--cream); background: #071524; box-shadow: 0 30px 100px #000; }
dialog::backdrop { background: rgba(0,5,10,.8); backdrop-filter: blur(6px); }
dialog h2 { margin: 0 0 17px; font: 35px Georgia, serif; }
dialog > p:not(.kicker) { color: var(--muted); }
.dialog-close { position: absolute; right: 14px; top: 8px; border: 0; background: none; color: var(--cream); font-size: 26px; cursor: pointer; }
.dialog-button { margin-top: 10px; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 28px; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 76px; display: none; padding: 24px 28px 30px; flex-direction: column; align-items: flex-start; background: rgba(3,11,20,.97); border-bottom: 1px solid var(--line); }
  .site-header nav.open { display: flex; }
  .studio-link { display: none; }
  .menu-button { display: block; justify-self: end; }
  .hero { grid-template-columns: 1fr 1fr; min-height: auto; padding: 145px 35px 90px; }
  .hero-copy { grid-column: 1; }
  .hero-brand { grid-column: 2; grid-row: 1; }
  .hero-phone { grid-column: 2; transform: translateY(30px); max-width: 330px; justify-self: center; display: none; }
  .possibilities { gap: 45px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .site-header { height: 69px; padding: 0 19px; }
  .site-header nav { top: 69px; }
  .wordmark span { font-size: 16px; }
  .hero { display: flex; flex-direction: column; gap: 38px; text-align: center; padding: 112px 20px 55px; background: linear-gradient(180deg, #04101df5 0%, #07182bd4 55%, #030b14 100%); }
  .hero::before { opacity: .22; background-position: center 35%; }
  .hero-copy { order: 1; }
  .hero-brand { order: 0; width: min(330px, 92vw); border-radius: 46% 46% 7px 7px; }
  .hero-brand img { aspect-ratio: .83; object-position: center 35%; }
  .hero-phone { order: 2; display: block; transform: none; width: min(330px, 88vw); align-self: center; }
  .kicker { font-size: 9px; }
  .hero-copy .kicker span { display: none; }
  h1 { font-size: clamp(44px, 13.5vw, 65px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { justify-content: center; flex-direction: column; gap: 16px; }
  .button { min-width: 225px; }
  .stat-strip { margin: 0 14px; }
  .stat-strip div { padding: 20px 8px; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .stat-strip strong { font-size: 34px; }
  .stat-strip span { font-size: 8px; }
  .section { padding: 78px 22px; }
  .section h2, .closing h2 { font-size: clamp(39px, 11.5vw, 54px); }
  .possibilities, .keys-feature, .progression { grid-template-columns: 1fr; gap: 46px; }
  .possibility-cards { gap: 12px; }
  .possibility-cards article { min-height: 255px; padding: 28px 21px; }
  .possibility-cards article:last-child { transform: translateY(22px); }
  .possibility-cards h3 { font-size: 22px; }
  .keys-feature { text-align: center; }
  .keys-visual { order: 2; justify-self: center; transform: none; width: min(330px, 88vw); }
  .key-count { margin: 28px auto 0; text-align: left; }
  .screenshots { padding-left: 0; padding-right: 0; }
  .section-heading { display: block; padding: 0 22px; margin-bottom: 35px; }
  .section-heading > p { margin-top: 18px; }
  .screenshot-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 38px; gap: 18px; padding: 0 38px 26px; scrollbar-width: none; }
  .screenshot-gallery::-webkit-scrollbar { display: none; }
  .screenshot-card { flex: 0 0 min(76vw, 330px); scroll-snap-align: center; }
  .screenshot-card:nth-child(2) { transform: none; }
  .screenshot-card .phone-frame { max-height: none; }
  .gallery-controls { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 17px; }
  .gallery-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #0b2035; cursor: pointer; }
  .swipe-hint { display: block; text-align: center; color: #778694; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .progression { text-align: left; }
  .shop-visual { justify-self: center; transform: none; width: min(330px, 88vw); }
  .closing { min-height: 540px; padding: 65px 22px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer nav { justify-content: center; flex-wrap: wrap; }
  footer > p { grid-column: 1; }
}

@media (max-width: 420px) {
  .possibility-cards { grid-template-columns: 1fr; }
  .possibility-cards article:last-child { transform: none; }
  .stat-strip span { letter-spacing: .08em; }
  dialog { padding: 36px 24px; }
}

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