:root {
  color-scheme: light;
  --ink: #111b35;
  --muted: #62707b;
  --line: #dde4e8;
  --surface: #ffffff;
  --soft: #f4f8f8;
  --blue: #126cff;
  --green: #00a86b;
  --coral: #f65f75;
  --peach: #ff9b72;
  --violet: #6550a7;
  --yellow: #e3a008;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0956cd;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 228, 232, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  background: var(--green);
  border: 3px solid var(--blue);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links .instagram-link {
  color: var(--coral);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-bottom: 1px solid var(--line);
  background-color: #fff5f1;
  background-image:
    linear-gradient(
      90deg,
      #fff 0%,
      rgba(255, 255, 255, 0.98) 34%,
      rgba(255, 255, 255, 0.78) 52%,
      rgba(255, 255, 255, 0.06) 77%
    ),
    url("/assets/gloorious-studios-logo.jpg");
  background-position: center, calc(50% + 300px) center;
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(17, 27, 53, 0.08), transparent);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.hero-content {
  width: min(610px, 58%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.lead {
  max-width: 600px;
  margin: 0;
  color: #485862;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button,
.social-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button {
  padding: 0 20px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}

.button:hover {
  background: #0956cd;
  color: white;
}

.social-button {
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(101, 80, 167, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: var(--violet);
}

.social-button:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.social-symbol {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.section {
  padding: 84px 0;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.app-card {
  min-height: 285px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 18px 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(17, 27, 53, 0.06);
}

.app-card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.app-card:nth-child(3) {
  border-top: 4px solid var(--yellow);
}

.app-card:nth-child(4) {
  border-top: 4px solid var(--coral);
}

.app-card:nth-child(5) {
  border-top: 4px solid var(--violet);
}

.app-card:nth-child(6) {
  border-top: 4px solid var(--blue);
}

.featured-app {
  border-top: 4px solid var(--blue);
  background: #f5f9ff;
}

.app-icon,
.app-badge {
  width: 76px;
  height: 76px;
  border-radius: 8px;
}

.app-icon {
  object-fit: cover;
}

.app-badge {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--blue);
  font-size: 23px;
  font-weight: 900;
}

.app-card:nth-child(2) .app-badge {
  color: var(--green);
}

.app-card:nth-child(3) .app-badge {
  color: var(--yellow);
}

.app-card:nth-child(4) .app-badge {
  color: var(--coral);
}

.app-card:nth-child(5) .app-badge {
  color: var(--violet);
}

.app-card-content {
  min-width: 0;
}

.app-card-content p {
  margin: 0;
  color: var(--muted);
}

.app-type {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.text-link {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  color: var(--blue);
}

.studio-section {
  border-block: 1px solid var(--line);
  background: #f8fafb;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
}

.studio-image {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(17, 27, 53, 0.12);
}

.studio-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.studio-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.values {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.value {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.value strong {
  color: var(--ink);
}

.value span {
  color: var(--muted);
}

.social-section {
  padding: 68px 0;
  background: var(--ink);
  color: white;
}

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

.social-inner h2 {
  margin-bottom: 10px;
}

.social-inner p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #ccd7dc;
}

.social-inner .eyebrow {
  color: #ff9aab;
}

.instagram-cta {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.instagram-cta:hover {
  color: var(--coral);
}

.instagram-cta small,
.instagram-cta strong {
  display: block;
}

.instagram-cta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.instagram-cta strong {
  font-size: 17px;
}

/* Shared app and policy pages */
.app-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-list .app-row + .app-row {
  border-top: 0;
}

.app-row .app-icon,
.app-row .app-badge {
  width: 96px;
  height: 96px;
}

.app-row p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.policy {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  padding: 56px 0 90px;
}

.policy-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-header h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.policy-meta {
  margin: 0;
  color: var(--muted);
}

.language-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.language-links a {
  font-size: 14px;
  font-weight: 800;
}

.policy article {
  scroll-margin-top: 90px;
  padding-top: 42px;
}

.policy article + article {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.policy h2 {
  font-size: 32px;
}

.policy h3 {
  margin-top: 30px;
}

.policy p,
.policy li {
  color: #34474d;
}

.policy ul {
  padding-left: 22px;
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1428;
  color: white;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
}

.footer-brand strong {
  display: block;
}

.footer-inner p {
  margin: 0;
  color: #b9c7ce;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-inner a {
  color: white;
}

@media (max-width: 900px) {
  .hero {
    min-height: 650px;
    background-position: center, calc(50% + 260px) center;
  }

  .hero-inner {
    min-height: 650px;
  }

  .hero-content {
    width: 62%;
  }

  .studio-grid {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .nav-links .instagram-link {
    display: none;
  }

  .hero {
    min-height: 0;
    background-image:
      linear-gradient(
        0deg,
        #fff 0%,
        #fff 42%,
        rgba(255, 255, 255, 0.7) 51%,
        rgba(255, 255, 255, 0) 62%
      ),
      url("/assets/gloorious-studios-logo.jpg");
    background-position: center, center top;
    background-size: cover, min(100vw, 620px) auto;
  }

  .hero-inner {
    min-height: 0;
    align-items: flex-start;
    padding-top: calc(min(100vw, 620px) + 30px);
    padding-bottom: 54px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    max-width: 600px;
    font-size: clamp(40px, 11vw, 60px);
  }

  .app-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-image {
    max-width: 520px;
  }

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

  .instagram-cta {
    width: 100%;
  }

  .app-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .app-row .app-icon,
  .app-row .app-badge {
    width: 76px;
    height: 76px;
  }

  .app-row .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 64px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .hero {
    min-height: 0;
    background-size: cover, 330px auto;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 330px;
    padding-bottom: 20px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button,
  .hero-actions .social-button {
    min-width: 0;
    flex: 1;
    padding-inline: 9px;
    font-size: 12px;
  }

  .hero-actions .social-symbol {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .app-card {
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 22px;
  }

  .app-card .app-icon,
  .app-card .app-badge {
    width: 64px;
    height: 64px;
  }

  .app-card h3 {
    font-size: 18px;
  }

  .value {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    min-height: 170px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
