@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Charon";
  src: url("assets/fonts/iosevka_charon/IosevkaCharon-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #011c0b;
  --green-900: #032c12;
  --green-850: #043918;
  --green-800: #06471d;
  --green-700: #0a6429;
  --panel: rgba(8, 83, 31, 0.42);
  --panel-strong: rgba(8, 92, 34, 0.62);
  --navy-900: #10284e;
  --navy-800: #173b70;
  --purple-900: #2b1748;
  --purple-700: #7440b6;
  --gold-500: #ffd211;
  --gold-600: #d6a900;
  --white: #fffdf8;
  --muted-white: rgba(255, 253, 248, 0.82);
  --line: rgba(255, 255, 255, 0.18);
  --section-line: rgba(255, 210, 17, 0.2);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--green-950);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(12, 115, 45, 0.62), rgba(2, 38, 15, 0.4) 32%, rgba(1, 20, 8, 0.92) 92%),
    url("assets/images/kopo-web-bg.jpg") center top / cover fixed,
    var(--green-950);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 50% 28%, transparent 0 28%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

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

img,
video {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.hero-section {
  min-height: 668px;
  padding: 32px max(24px, calc((100vw - 1180px) / 2)) 66px;
  border-bottom: 1px solid rgba(255, 210, 17, 0.16);
  background:
    radial-gradient(circle at 50% 34%, rgba(10, 115, 46, 0.34), rgba(3, 34, 13, 0.1) 38%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.16));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Iosevka Charon", monospace;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-500);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.brand-icon {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.language-selector {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 5px;
  border: 2px solid rgba(255, 253, 248, 0.55);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 94px;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: transparent;
  font: 700 1.18rem/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-option[aria-pressed="true"],
.language-option[aria-current="page"] {
  color: #132914;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.flag {
  position: relative;
  width: 26px;
  height: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.flag-fr {
  background: linear-gradient(90deg, #1b4ea3 0 33.333%, #ffffff 33.333% 66.666%, #e3343f 66.666% 100%);
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 0 40%, #c8102e 40% 60%, transparent 60% 100%),
    linear-gradient(0deg, transparent 0 38%, #c8102e 38% 62%, transparent 62% 100%),
    linear-gradient(90deg, transparent 0 34%, #ffffff 34% 66%, transparent 66% 100%),
    linear-gradient(0deg, transparent 0 29%, #ffffff 29% 71%, transparent 71% 100%),
    linear-gradient(29deg, transparent 0 40%, #c8102e 40% 49%, #ffffff 49% 57%, transparent 57% 100%),
    linear-gradient(-29deg, transparent 0 40%, #c8102e 40% 49%, #ffffff 49% 57%, transparent 57% 100%),
    #1f4ea3;
}

.hero-content {
  display: grid;
  justify-items: center;
  padding: 28px 0 0;
  text-align: center;
}

.hero-title {
  width: min(900px, 100%);
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.98;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

.hero-copy {
  width: min(760px, 100%);
  max-width: 760px;
  margin: 16px auto 6px;
  color: var(--muted-white);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.48;
}

.hero-mark {
  width: min(560px, 78vw);
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
}

.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
}

.hero-card {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 33%;
  height: auto;
  transform-origin: 50% 100%;
  user-select: none;
  will-change: transform, opacity;
}

.hero-card-left {
  transform: translateX(-116%) rotate(-25deg);
}

.hero-card-right {
  transform: translateX(16%) rotate(25deg);
}

.hero-card-center {
  z-index: 2;
  bottom: 20%;
  width: 39%;
  transform: translateX(-50%);
}

.kopo-plaque {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 7%;
  width: 70%;
  min-height: clamp(92px, 10.5vw, 118px);
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 5px solid var(--white);
  border-radius: 24px;
  color: var(--gold-500);
  font-family: "Iosevka Charon", monospace;
  font-size: clamp(2.9rem, 7.1vw, 4.85rem);
  font-weight: 500;
  line-height: 0.86;
  padding: 0 0.18em 0.12em;
  background: linear-gradient(135deg, #6d38aa 0%, #2c1749 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 24px rgba(0, 0, 0, 0.34);
  will-change: transform, opacity;
}

.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(640px, 100%);
  margin-top: 28px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  gap: 14px;
  padding: 13px 20px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 26px rgba(0, 0, 0, 0.24);
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  font-weight: 700;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 34px rgba(0, 0, 0, 0.32);
}

.download-button small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.72em;
  font-weight: 600;
}

.download-button strong {
  display: block;
}

.button-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.content-section,
.download-section {
  padding: 36px max(24px, calc((100vw - 1180px) / 2)) 46px;
  border-bottom: 1px solid var(--section-line);
  background:
    radial-gradient(circle at 50% 12%, rgba(8, 109, 43, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(0, 31, 12, 0.42), rgba(0, 20, 8, 0.22));
}

.section-divider {
  display: block;
  width: min(170px, 42vw);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.section-heading h2 span,
.download-section h2 span {
  color: var(--gold-500);
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.45;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-list article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 210, 17, 0.24);
  border-radius: 8px;
  background: rgba(5, 64, 24, 0.58);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.feature-list h3 {
  margin: 0 0 10px;
  color: var(--gold-500);
  font-size: 1.15rem;
  line-height: 1.18;
}

.feature-list p,
.download-copy {
  margin: 0;
  color: var(--muted-white);
  font-size: 1rem;
  line-height: 1.5;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.video-card {
  min-width: 0;
  padding: 30px 32px 28px;
  border: 1px solid rgba(255, 210, 17, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(22, 129, 54, 0.45), rgba(2, 42, 16, 0.74) 66%),
    rgba(7, 77, 28, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.25);
}

.video-card-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 20px;
}

.video-card-heading h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.5vw, 1.75rem);
  line-height: 1.12;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #092a14;
  background: linear-gradient(145deg, #ffdf53, #f3aa1b);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  font-size: 1.45rem;
  font-weight: 900;
}

.phone-frame {
  position: relative;
  max-width: 285px;
  margin: 0 auto;
  padding: 14px;
  border: 4px solid #dfb84c;
  border-radius: 34px;
  background: #0d120d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 24px 42px rgba(0, 0, 0, 0.36);
}

.phone-frame::before {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 20px;
  border-radius: 0 0 16px 16px;
  background: #050805;
  content: "";
  transform: translateX(-50%);
}

.video-phone video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #071709;
  object-fit: cover;
}

.overview-section {
  padding-left: 0;
  padding-right: 0;
}

.overview-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 18px;
  width: min(1160px, calc(100vw - 110px));
  margin: 0 auto;
  overflow-x: auto;
  padding: 6px 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshot-strip::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  width: 100%;
  max-height: 520px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: #052411;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  scroll-snap-align: center;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(12, 83, 34, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow-left {
  left: 8px;
}

.gallery-arrow-right {
  right: 8px;
}

.download-section {
  display: grid;
  justify-items: center;
  padding-bottom: 38px;
  text-align: center;
}

.download-section .cta-row {
  margin-top: 24px;
}

.download-copy {
  max-width: 620px;
  margin-top: 14px;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 34px max(24px, calc((100vw - 1180px) / 2)) 38px;
  color: var(--muted-white);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-weight: 700;
}

.footer-links a,
.site-footer p a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 17, 0.7);
  text-underline-offset: 4px;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
}

.brand:focus-visible,
.download-button:focus-visible,
.language-option:focus-visible,
.footer-links a:focus-visible,
.site-footer p a:focus-visible,
.gallery-arrow:focus-visible,
.screenshot-strip:focus-visible {
  outline: 4px solid rgba(255, 210, 17, 0.72);
  outline-offset: 5px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
  color: var(--white);
  background: rgba(9, 32, 18, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 1000px) {
  .screenshot-strip {
    overflow: visible;
  }

  .gallery-arrow {
    display: none;
  }
}

@media (max-width: 840px) {
  .hero-section {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .site-header {
    height: 56px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .language-option {
    width: 76px;
    height: 38px;
    gap: 8px;
    font-size: 1rem;
  }

  .flag {
    width: 23px;
    height: 16px;
  }

  .hero-mark {
    width: min(520px, 92vw);
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .screenshot-strip {
    grid-auto-columns: minmax(220px, 72vw);
    width: calc(100vw - 72px);
  }

  .screenshot-card {
    max-height: 590px;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .content-section,
  .download-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    gap: 10px;
  }

  .brand {
    gap: 9px;
    font-size: 1.25rem;
  }

  .language-selector {
    padding: 4px;
  }

  .language-option {
    width: 60px;
    height: 34px;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .flag {
    width: 20px;
    height: 14px;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-card {
    width: 36%;
  }

  .hero-card-center {
    width: 43%;
  }

  .kopo-plaque {
    width: 74%;
    min-height: 80px;
    border-width: 4px;
    border-radius: 18px;
  }

  .cta-row {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100%, 360px);
    margin-top: 20px;
  }

  .download-button {
    min-height: 68px;
  }

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

  .video-card {
    padding: 22px 18px 24px;
  }

  .video-card-heading {
    gap: 12px;
  }

  .round-icon {
    width: 46px;
    height: 46px;
  }

  .screenshot-strip {
    grid-auto-columns: minmax(210px, 78vw);
    width: calc(100vw - 58px);
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow-left {
    left: -4px;
  }

  .gallery-arrow-right {
    right: -4px;
  }
}
