/* ================================================
   HELIX HORIZON — AAA Game Landing Page
   style.css — Dark Sci-Fi Theme
   ================================================ */

/* ---- CSS Custom Properties ---- */
@font-face {
  font-family: 'HelixPro-ExtraBlack';
  src: url('assets/font/HelixPro-ExtraBlack.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelixPro-SemiBold';
  src: url('assets/font/HelixPro-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('assets/font/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('assets/font/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('assets/font/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --color-bg: #050510;
  --color-bg-alt: #0a0a1a;
  --color-surface: #0f0f24;
  --color-text: #e0e0ec;
  --color-text-muted: #7a7a96;
  --color-accent: #27f978;
  --color-accent-2: #18ffd9;
  --color-accent-dim: #0d7a3e;
  --color-accent-glow: rgba(39, 249, 120, 0.25);
  --color-gradient: linear-gradient(135deg, #27f978 0%, #18ffd9 100%);
  --color-white: #ffffff;

  /* Typography */
  --font-heading: 'Gilroy', sans-serif;
  --font-body: 'Gilroy', sans-serif;
  --font-buttons: 'Orbitron', sans-serif;

  /* Spacing */
  --section-pad-y: clamp(80px, 10vw, 140px);
  --section-pad-x: clamp(24px, 5vw, 80px);
  --container-max: 1200px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Site Logo (Top-Left) */
.site-logo {
  position: absolute;
  top: 40px;
  left: var(--section-pad-x);
  z-index: 9990;
  width: 65px;
  display: block;
  transition: all 0.3s var(--ease-smooth);
}

.site-logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.logo-svg {
  width: 100%;
  height: auto;
  display: block;
}


/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 40px;
  right: 60px;
  z-index: 9990;
  display: flex;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: rgba(5, 5, 16, 0.4);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(39, 249, 120, 0.1);
}

.lang-option {
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.lang-option:hover {
  color: var(--color-white);
}

.lang-option.active {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(39, 249, 120, 0.5);
}

.separator {
  color: rgba(255, 255, 255, 0.1);
  user-select: none;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none !important;
  /* Force hide default cursor */
}

a,
button,
.btn,
.feature-card,
input,
select,
textarea {
  cursor: none !important;
  /* Force hide default cursor */
}

/* Text Selection Color */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
  text-shadow: none;
}


/* ---- Custom Cursor ---- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}

.cursor-dot.is-hovering {
  width: 4px;
  height: 4px;
}

.cursor-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-ripple.active {
  animation: rippleEffect 1.5s ease-out infinite;
  opacity: 1;
}

@keyframes rippleEffect {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.8;
    border-color: white;
  }

  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* ---- Reveal Animation (scroll-triggered) ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.35s;
}

/* ================================================
   SECTION 1 — HERO
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Particle canvas (drawn by JS) */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Background image layer with parallax */
.hero__bg {
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(39, 249, 120, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(88, 28, 255, 0.06) 0%, transparent 50%),
    url('assets/hero-bg.webp') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}

/* Background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

/* Hero poster image (temporary, until video is ready) */
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

/* Gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(5, 5, 16, 0.4) 0%,
      rgba(5, 5, 16, 0.6) 50%,
      rgba(5, 5, 16, 0.95) 100%);
  z-index: 2;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 var(--section-pad-x);
}

/* Eyebrow / pre-heading */
.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Main title */
.hero__title {
  font-family: 'HelixPro-SemiBold', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: normal;
  color: var(--color-white);
  margin-bottom: 24px;
  position: relative;
}

/* Glitch pseudo-layers */
.hero__title::before,
.hero__title::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.hero__title::before { color: #0ff; -webkit-text-fill-color: #0ff; }
.hero__title::after  { color: #f0f; -webkit-text-fill-color: #f0f; }

/* === GLITCH VARIANT A — RGB Split (yatay kayma) === */
@keyframes glitch-a-skew {
  0%   { transform: none; }
  15%  { transform: skewX(-5deg) scaleX(1.02); }
  30%  { transform: skewX(3deg) translateX(3px); }
  50%  { transform: none; }
  65%  { transform: skewX(2deg) translateX(-2px); }
  80%  { transform: skewX(-1deg); }
  100% { transform: none; }
}
@keyframes glitch-a-1 {
  0%   { clip-path: inset(30% 0 55% 0); transform: translateX(-5px); opacity: 0.85; }
  25%  { clip-path: inset(10% 0 72% 0); transform: translateX(5px); }
  50%  { clip-path: inset(65% 0 15% 0); transform: translateX(-4px); }
  75%  { clip-path: inset(80% 0 5%  0); transform: translateX(4px); }
  100% { clip-path: inset(30% 0 55% 0); transform: translateX(0);   opacity: 0; }
}
@keyframes glitch-a-2 {
  0%   { clip-path: inset(55% 0 30% 0); transform: translateX(5px);  opacity: 0.75; }
  33%  { clip-path: inset(20% 0 60% 0); transform: translateX(-5px); }
  66%  { clip-path: inset(70% 0 10% 0); transform: translateX(3px); }
  100% { clip-path: inset(55% 0 30% 0); transform: translateX(0);    opacity: 0; }
}

.hero__title.glitch-a      { animation: glitch-a-skew 0.5s steps(2) forwards; }
.hero__title.glitch-a::before { opacity: 1; animation: glitch-a-1 0.5s steps(2) forwards; }
.hero__title.glitch-a::after  { opacity: 1; animation: glitch-a-2 0.5s steps(3) forwards; }

/* === GLITCH VARIANT B — Choppy Slice (dikey dilimler) === */
@keyframes glitch-b-skew {
  0%   { transform: none; filter: none; }
  10%  { transform: translateX(6px) scaleY(1.01); filter: brightness(1.3); }
  20%  { transform: translateX(-4px); filter: brightness(0.8); }
  35%  { transform: translateX(2px) skewX(1deg); filter: none; }
  50%  { transform: none; }
  70%  { transform: translateX(-6px); filter: brightness(1.2); }
  85%  { transform: translateX(3px); }
  100% { transform: none; filter: none; }
}
@keyframes glitch-b-1 {
  0%   { clip-path: inset(5% 0 85% 0);  transform: translateX(8px);  opacity: 0.9; }
  20%  { clip-path: inset(40% 0 40% 0); transform: translateX(-6px); }
  50%  { clip-path: inset(70% 0 10% 0); transform: translateX(5px); }
  80%  { clip-path: inset(20% 0 65% 0); transform: translateX(-4px); }
  100% { clip-path: inset(5% 0 85% 0);  transform: translateX(0);    opacity: 0; }
}
@keyframes glitch-b-2 {
  0%   { clip-path: inset(85% 0 5% 0);  transform: translateX(-8px); opacity: 0.8; }
  25%  { clip-path: inset(50% 0 30% 0); transform: translateX(6px); }
  60%  { clip-path: inset(15% 0 70% 0); transform: translateX(-5px); }
  100% { clip-path: inset(85% 0 5% 0);  transform: translateX(0);    opacity: 0; }
}

.hero__title.glitch-b      { animation: glitch-b-skew 0.6s steps(3) forwards; }
.hero__title.glitch-b::before { opacity: 1; animation: glitch-b-1 0.6s steps(3) forwards; }
.hero__title.glitch-b::after  { opacity: 1; animation: glitch-b-2 0.6s steps(2) forwards; }

/* === GLITCH VARIANT C — Hızlı Titreme (flicker + shake) === */
@keyframes glitch-c-skew {
  0%,100% { transform: none; opacity: 1; filter: none; }
  10%  { transform: translateX(-3px); opacity: 0.7; filter: hue-rotate(30deg); }
  20%  { transform: translateX(3px);  opacity: 1; }
  30%  { transform: none; opacity: 0.5; filter: hue-rotate(-20deg) brightness(1.5); }
  40%  { transform: translateX(4px) skewX(-2deg); opacity: 1; filter: none; }
  50%  { transform: none; opacity: 0.8; }
  60%  { transform: translateX(-4px); filter: hue-rotate(15deg); }
  70%  { transform: none; opacity: 1; filter: none; }
  80%  { transform: translateX(2px); opacity: 0.6; }
  90%  { transform: none; opacity: 1; }
}
@keyframes glitch-c-1 {
  0%   { clip-path: inset(0% 0 90% 0);  transform: translateX(-6px); opacity: 0.9; }
  30%  { clip-path: inset(45% 0 45% 0); transform: translateX(6px); }
  60%  { clip-path: inset(88% 0 2% 0);  transform: translateX(-4px); }
  100% { clip-path: inset(0% 0 90% 0);  transform: translateX(0);    opacity: 0; }
}
@keyframes glitch-c-2 {
  0%   { clip-path: inset(90% 0 0% 0);  transform: translateX(6px); opacity: 0.7; }
  40%  { clip-path: inset(30% 0 55% 0); transform: translateX(-6px); }
  80%  { clip-path: inset(55% 0 30% 0); transform: translateX(4px); }
  100% { clip-path: inset(90% 0 0% 0);  transform: translateX(0);   opacity: 0; }
}

.hero__title.glitch-c      { animation: glitch-c-skew 0.7s steps(4) forwards; }
.hero__title.glitch-c::before { opacity: 1; animation: glitch-c-1 0.7s steps(4) forwards; }
.hero__title.glitch-c::after  { opacity: 1; animation: glitch-c-2 0.7s steps(3) forwards; }

.hero__title--kirilma {
  font-family: 'HelixPro-ExtraBlack', sans-serif;
}

.hero__title--accent {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Description */
.hero__description {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--color-text-muted);
  max-width: 100%;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Button group */
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  min-width: 220px;
  justify-content: center;
  white-space: nowrap;
  border-radius: 6px;
  font-family: var(--font-buttons);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Primary button — filled accent */
.btn--primary {
  background: var(--color-gradient);
  color: var(--color-bg);
  box-shadow: 0 0 20px var(--color-accent-glow), 0 0 60px rgba(39, 249, 120, 0.1);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #18ffd9 0%, #27f978 100%);
  box-shadow: 0 0 30px var(--color-accent-glow), 0 0 80px rgba(39, 249, 120, 0.2);
  transform: translateY(-2px);
}

/* Secondary button — outlined */
.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid rgba(39, 249, 120, 0.35);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  background: rgba(39, 249, 120, 0.08);
  box-shadow: 0 0 20px rgba(39, 249, 120, 0.1);
  transform: translateY(-2px);
}

/* ---- Scroll Indicator ---- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ================================================
   SECTION 2 — STORY
   ================================================ */
.story {
  position: relative;
  padding: calc(var(--section-pad-y) * 1.8) 0;
  background-color: var(--color-bg);
  /* Subtle top border glow */
  border-top: 1px solid rgba(39, 249, 120, 0.05);
  overflow: hidden;
}

#story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  /* Allow mouse interaction if needed */
  z-index: 0;
}

.story__grid {
  /* No longer a grid, just a container for text */
  display: block;
  max-width: 600px;
  position: relative;
  z-index: 1;
  /* Ensure text is above canvas */
}

/* Hide the image container since it's now a background */
.story__image {
  display: none;
}

/* Section heading (reusable) */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  /* Medium */
  color: var(--color-white);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  line-height: 1.2;
}

.section-heading--center {
  text-align: center;
}

.section-heading__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Story paragraphs */
.story__paragraph {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.9;
}

.story__paragraph:last-of-type {
  margin-bottom: 0;
}

/* Fallback when image is missing */
.story__image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__image-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(39, 249, 120, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(123, 92, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  /* Animated shimmer */
  animation: shimmer 4s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Decorative glow border on hover */
.story__image-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(39, 249, 120, 0.2), transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
}

.story__image:hover .story__image-frame::before {
  opacity: 1;
}

/* ================================================
   SECTION 3 — FEATURES
   ================================================ */
.features {
  position: relative;
  padding: var(--section-pad-y) 0;
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(39, 249, 120, 0.05);
}

.features .container {
  max-width: 1400px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

/* Feature card */
.feature-card {
  position: relative;
  padding: 40px 28px;
  border-radius: 16px;
  background: rgba(15, 15, 36, 0.6);
  border: 1px solid rgba(39, 249, 120, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-smooth);
  cursor: default;
  /* Centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
}

.feature-card:hover {
  border-color: rgba(39, 249, 120, 0.6);
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(39, 249, 120, 0.06);
}

/* Card icon */
.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  color: var(--color-accent);
  transition: transform 0.4s var(--ease-out);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Card title */
.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  /* Medium */
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Card description */
.feature-card__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ================================================
   SECTION 4 — FOOTER
   ================================================ */
.footer {
  padding: 40px 0;
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer .container {
  max-width: 1400px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer__brand-icon {
  width: 40px;
  height: auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}


.footer__copyright {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  transition: all 0.3s var(--ease-smooth);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(39, 249, 120, 0.15);
  transform: translateY(-2px);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero__content {
    max-width: 100%;
  }

  /* Increase text size on mobile */
  .hero__tagline {
    font-size: 1.25rem;
    /* Larger than default clamp lower bound */
  }

  .hero__description {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .hero__scroll-indicator {
    right: 20px;
    bottom: 24px;
  }

  .story__grid {
    grid-template-columns: 1fr;
  }

  .story__image {
    order: -1;
  }

  .story__image-frame {
    aspect-ratio: 16 / 9;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    /* Center align footer items */
    text-align: center;
  }

  .footer__brand {
    /* Stack logo and copyright vertically on mobile */
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero__buttons {
    /* Stack buttons vertically on mobile */
    flex-direction: column;
    width: 100%;
  }

  .language-switcher {
    right: var(--section-pad-x);
  }

  .btn {
    justify-content: center;
    /* Optimize for side-by-side layout on mobile */
    padding: 12px 16px;
    font-size: 0.72rem;
    min-width: auto;
    flex: 1;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}