:root {
  --bg: #111111;
  --bg-soft: #171717;
  --surface: #1e1e1e;
  --surface-2: #272727;
  --surface-3: #333333;

  --text: #f9f7f2;
  --text-soft: #dad7d1;
  --muted: #aaa6a0;

  --orange: #ff8a00;
  --orange-light: #ffad45;
  --orange-soft: rgba(255, 138, 0, 0.12);

  --slate: #6b6b6b;
  --green: #76b947;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  --max: 1160px;
  --radius-small: 12px;
  --radius: 20px;
  --radius-large: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -240px, rgba(255, 138, 0, 0.075), transparent 540px),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 1rem;
  color: var(--text);
}

.brand-text small {
  margin-top: 1px;
  font-size: 0.72rem;
  color: var(--muted);
}

.main-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 150ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.main-nav a:focus-visible,
.footer-links a:focus-visible {
  color: var(--orange);
}

/* Hero */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  width: 840px;
  height: 840px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 138, 0, 0.12), rgba(255, 138, 0, 0.025) 43%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 112px 0;
  text-align: center;
}

.eyebrow,
.section-label,
.history-version {
  display: block;
  margin: 0 0 17px;
  color: var(--orange);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(780px, 94%);
  max-height: 280px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-description {
  max-width: 690px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.status-pill {
  width: max-content;
  margin: 34px auto 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.84);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(118, 185, 71, 0.7);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #111;
  font-weight: 750;
}

.button-primary:hover {
  background: var(--orange-light);
}

.button-secondary {
  background: var(--surface);
}

.button-secondary:hover {
  border-color: rgba(255, 138, 0, 0.55);
}

/* Sections */

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border);
}

.alternate-section {
  background: rgba(255, 255, 255, 0.012);
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.section p {
  color: var(--muted);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 58px;
}

.intro {
  text-align: center;
}

.intro .lead {
  color: var(--text-soft);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: 90px;
}

.product-layout.reverse {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
}

.product-layout.reverse .product-copy {
  order: 2;
}

.product-layout.reverse .phone {
  order: 1;
}

.product-copy > p {
  max-width: 580px;
  font-size: 1.04rem;
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 13px 0;
  padding-left: 28px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--orange);
}

/* Product screenshots */

.phone {
  position: relative;
  width: min(100%, 350px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: linear-gradient(145deg, #353535, #191919);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 16% -24% -14%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.11), transparent 65%);
  filter: blur(38px);
}

.phone img {
  width: 100%;
  display: block;
  border-radius: 23px;
}

/* Feature cards */

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bento-card {
  min-height: 235px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.bento-card.large {
  grid-column: span 2;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--orange);
  font-weight: 800;
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.bento-card p {
  margin: 0;
}

/* Showcase */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.showcase-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.showcase-image {
  height: 500px;
  overflow: hidden;
  border-radius: 22px;
  background: #080808;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.showcase-card h3 {
  margin: 22px 5px 7px;
  font-size: 1.3rem;
}

.showcase-card p {
  margin: 0 5px 6px;
}

/* Data */

.cloud-section {
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.035), transparent);
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 55px;
  align-items: center;
}

.data-card {
  padding: 30px;
  border: 1px solid rgba(255, 138, 0, 0.24);
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.data-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-light);
}

.data-card p {
  margin: 0;
  color: var(--text-soft);
}

/* History */

.history-section {
  background: #0d0d0d;
}

.history-intro {
  max-width: 780px;
  margin-bottom: 45px;
}

.history-quote {
  margin: 35px 0;
  padding-left: 23px;
  border-left: 3px solid var(--orange);
  color: var(--text-soft);
  font-size: 1.25rem;
  font-style: italic;
}

.history-evolution {
  margin-top: 65px;
}

.history-generation {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.45fr);
  gap: 60px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.history-generation-reverse {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
}

.history-generation-reverse .history-copy {
  order: 2;
}

.history-generation-reverse .history-screenshot {
  order: 1;
}

.history-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.history-copy p {
  margin: 0 0 15px;
}

.history-emphasis {
  color: var(--text) !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.history-screenshot {
  margin: 0;
}

.history-window {
  position: relative;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #1c1c1c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.history-window::before {
  content: "ARCHIVE";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.76);
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.history-window img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.history-screenshot figcaption,
.then-now figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Then / now */

.then-now {
  margin-top: 110px;
  padding: 60px;
  border: 1px solid rgba(255, 138, 0, 0.18);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgba(255, 138, 0, 0.055), var(--surface));
}

.then-now-heading {
  margin-bottom: 45px;
  text-align: center;
}

.then-now-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.then-now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(180px, 0.58fr);
  gap: 32px;
  align-items: center;
}

.then-now-grid figure {
  margin: 0;
}

.then-now-arrow {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 700;
}

.current-phone {
  max-width: 250px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 25px;
  background: linear-gradient(145deg, #363636, #191919);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

.current-phone img {
  display: block;
  width: 100%;
  border-radius: 19px;
}

.then-now-copy {
  max-width: 650px;
  margin: 45px auto 0;
  text-align: center;
  font-size: 1.05rem;
}

/* Development */

.development {
  text-align: center;
}

.development-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 45px;
  text-align: left;
}

.development-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.development-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
}

.development-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Policy / support pages */

.policy-page {
  min-height: 70vh;
  padding: 90px 0 120px;
}

.policy-container {
  max-width: 820px;
}

.policy-back {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--muted);
}

.policy-back:hover,
.policy-back:focus-visible {
  color: var(--orange);
}

.policy-page h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.policy-updated {
  margin-bottom: 55px;
  color: var(--muted);
}

.policy-page section {
  padding: 38px 0;
  border-top: 1px solid var(--border);
}

.policy-page section:first-of-type {
  margin-top: 55px;
}

.policy-page h2 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 1.5rem;
}

.policy-page p,
.policy-page li {
  color: var(--text-soft);
}

.policy-page ul {
  padding-left: 24px;
}

.policy-page li {
  margin: 8px 0;
}

.policy-page a {
  color: var(--orange);
}

.policy-page a:hover {
  text-decoration: underline;
}

.policy-note,
.policy-warning,
.policy-needed {
  padding: 24px !important;
  border: 1px solid rgba(255, 138, 0, 0.26) !important;
  border-radius: 16px;
  background: var(--orange-soft);
}

.policy-warning strong,
.policy-needed h2 {
  color: var(--orange-light);
}

/* Footer */

footer {
  padding: 46px 0;
  background: #090909;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-row strong,
.footer-brand-row small {
  display: block;
}

.footer-brand-row small {
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-brand > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-brand .tmdb-attribution {
  max-width: 590px;
  font-size: 0.72rem;
  line-height: 1.55;
}

.tmdb-attribution a {
  color: var(--orange-light);
}

/* Responsive */

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 84px 0;
  }

  .section {
    padding: 82px 0;
  }

  .product-layout,
  .product-layout.reverse,
  .data-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-layout.reverse .product-copy,
  .product-layout.reverse .phone {
    order: initial;
  }

  .history-generation,
  .history-generation-reverse {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .history-generation-reverse .history-copy,
  .history-generation-reverse .history-screenshot {
    order: initial;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .development-grid {
    grid-template-columns: 1fr;
  }

  .then-now {
    padding: 35px 22px;
  }

  .then-now-grid {
    grid-template-columns: 1fr;
  }

  .then-now-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-logo {
    width: 98%;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: auto;
  }

  .showcase-image {
    height: 430px;
  }

  .brand-text small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
