:root {
  color-scheme: light;
  --ink: #10232d;
  --ink-soft: #3d5660;
  --paper: #f5f9f8;
  --surface: #ffffff;
  --teal: #126d66;
  --teal-dark: #0c514d;
  --mint: #77d6c5;
  --line: #d7e4e1;
  --blue: #326b8a;
  --shadow: 0 24px 70px rgba(16, 35, 45, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 9%, rgba(119, 214, 197, 0.2), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: 0.75rem 0.8rem 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid rgba(215, 228, 225, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: #e6f3f0;
}

.language-menu {
  position: relative;
  margin-left: 0.35rem;
}

.language-menu summary {
  min-width: 3.15rem;
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
  text-align: center;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: " ▾";
  color: var(--teal);
  font-size: 0.75rem;
}

.language-menu[open] summary {
  color: var(--teal-dark);
  background: #e6f3f0;
}

.language-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  width: 12rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(16, 35, 45, 0.16);
}

.language-options a {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
}

.language-options a[aria-current="true"]::after {
  content: "✓";
  color: var(--teal);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 39rem;
  margin: 1rem auto 0;
  padding: clamp(2.2rem, 6vw, 5.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(119, 214, 197, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -12rem;
}

.hero::after {
  width: 18rem;
  height: 18rem;
  right: 8rem;
  bottom: -11rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.65rem, 6.4vw, 5.4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: #d8e5e6;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  min-height: 3rem;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: var(--ink);
  background: var(--mint);
  text-decoration: none;
  font-weight: 800;
}

.button:hover {
  color: var(--ink);
  background: #98e3d6;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.privacy-panel {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.07);
}

.privacy-panel-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-weight: 800;
}

.shield {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  color: var(--ink);
  background: var(--mint);
  font-size: 1.2rem;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  padding: 0.9rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4eeee;
}

.privacy-list li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 900;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.page-hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(119, 214, 197, 0.24), transparent 18rem),
    var(--ink);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.page-hero > p:not(.eyebrow) {
  max-width: 44rem;
  margin: 0;
  color: #d8e5e6;
  font-size: 1.12rem;
}

.page-layout {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.page-aside strong {
  display: block;
  margin-bottom: 0.7rem;
}

.page-aside a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
}

.page-aside p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.prose {
  min-width: 0;
}

.prose section {
  padding: 0 0 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.prose section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.prose h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  max-width: 76ch;
}

.prose ul {
  padding-left: 1.25rem;
}

.meta-line {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: #e7f4f1;
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--blue));
}

.contact-card h2 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #e3f0ef;
}

.contact-card .button {
  margin-top: 0.75rem;
}

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

.support-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.support-card h2 {
  font-size: 1.35rem;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  margin: 0.55rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
}

.checklist li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feature-card strong {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--teal);
  font-size: 0.9rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.principle {
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), #194765);
}

.principle p {
  margin: 0;
  color: #dfefee;
  font-size: 1.08rem;
}

.stories-heading {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.stories-heading > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.story-index {
  margin: 0 0 3.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.story-index > strong {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: 1rem;
}

.story-index-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.story-index a {
  min-width: 0;
  padding: 0.58rem 0.7rem;
  display: flex;
  align-items: center;
  border-radius: 0.7rem;
  color: var(--teal-dark);
  background: #e6f3f0;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.story-index a::before {
  content: "→";
  margin-right: 0.45rem;
  flex: 0 0 auto;
  color: var(--teal);
}

.story-index a:hover,
.story-index a:focus-visible {
  background: #d4ebe6;
}

.story-group + .story-group {
  margin-top: 3.5rem;
}

.story-group > h3 {
  margin-bottom: 1.1rem;
  color: var(--teal-dark);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.story-card {
  min-width: 0;
  padding: 1.35rem;
  scroll-margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: background-color 180ms ease, box-shadow 180ms ease, outline-color 180ms ease;
}

.story-card:target {
  outline: 4px solid var(--teal);
  outline-offset: 4px;
  background: #f2fbf9;
  box-shadow: 0 0 0 9px rgba(18, 125, 116, 0.13), 0 18px 38px rgba(16, 35, 45, 0.14);
  animation: story-target-pulse 900ms ease-out;
}

@keyframes story-target-pulse {
  0% {
    box-shadow: 0 0 0 2px rgba(18, 125, 116, 0.38), 0 8px 18px rgba(16, 35, 45, 0.08);
  }

  55% {
    box-shadow: 0 0 0 14px rgba(18, 125, 116, 0.18), 0 18px 38px rgba(16, 35, 45, 0.14);
  }

  100% {
    box-shadow: 0 0 0 9px rgba(18, 125, 116, 0.13), 0 18px 38px rgba(16, 35, 45, 0.14);
  }
}

.story-image {
  width: min(100%, 19rem);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 0.9rem;
  background: #e6f3f0;
  object-fit: contain;
  object-position: center;
}

.story-card .story-category {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.story-card .story-title {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.story-card .story-copy {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 3rem;
  color: #cad9dc;
  background: #0b1b23;
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-inner p {
  max-width: 35rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 0.55rem 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(202, 217, 220, 0.24);
  border-radius: 0.7rem;
  color: #e9f4f3;
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.footer-links a::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: #77d6c5;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.footer-links a[href^="mailto:"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 5h16v14H4zM4 7l8 6 8-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 5h16v14H4zM4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.footer-links a[href$="/support/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 9a7 7 0 0 1 14 0v6M5 10H3v5h4v-5zm14 0h2v5h-4v-5zm0 5v2a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 9a7 7 0 0 1 14 0v6M5 10H3v5h4v-5zm14 0h2v5h-4v-5zm0 5v2a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E");
}

.footer-links a[href$="/privacy/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6zm-3 8l2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6zm-3 8l2 2 4-4'/%3E%3C/svg%3E");
}

.footer-links a[href$="/terms/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 3h9l3 3v15H6zm9 0v4h4M9 11h6M9 15h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 3h9l3 3v15H6zm9 0v4h4M9 11h6M9 15h6'/%3E%3C/svg%3E");
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(119, 214, 197, 0.72);
  color: #ffffff;
  background: rgba(119, 214, 197, 0.12);
}

.studio-header {
  justify-content: flex-start;
}

.studio-main {
  min-height: calc(100vh - 14rem);
  display: grid;
  place-items: center;
}

.studio-directory {
  width: min(calc(100% - 2rem), 48rem);
  margin: 4rem auto;
}

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

.studio-app {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name arrow"
    "platforms arrow";
  align-items: center;
  gap: 0.15rem 2rem;
  padding: clamp(1.5rem, 5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 35, 45, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.studio-app:hover,
.studio-app:focus-visible {
  color: var(--ink);
  border-color: var(--mint);
  box-shadow: 0 22px 60px rgba(16, 35, 45, 0.13);
  transform: translateY(-2px);
}

.studio-app-name {
  grid-area: name;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.studio-app-platforms {
  grid-area: platforms;
  color: var(--ink-soft);
  font-weight: 650;
}

.studio-app-arrow {
  grid-area: arrow;
  color: var(--teal);
  font-size: 2rem;
}

.studio-footer {
  margin-top: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .privacy-panel {
    max-width: 34rem;
  }

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

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-index-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 0;
  }

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

  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.8rem;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    row-gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.86rem;
  }

  .language-menu {
    margin-left: 0;
  }

  .language-options {
    right: auto;
    left: 0;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

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

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

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

  .story-card,
  .story-card:target {
    transition: none;
    animation: none;
  }
}
