:root {
  --navy: #102a83;
  --navy-deep: #071d68;
  --blue: #087de9;
  --coral: #ff344f;
  --yellow: #ffc900;
  --purple: #8126e8;
  --white: #ffffff;
  --muted: #4c6280;
  --container: 1540px;
  --header-height: clamp(70px, 9.2svh, 86px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--navy-deep);
  background: #071f75;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.i18n-pending {
  visibility: hidden;
}

body.i18n-ready {
  visibility: visible;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero-stage {
  min-height: 100svh;
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  background-color: #087de9;
  background-image: url("assets/pictiki-hero-full.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  background: transparent;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-width: 0;
  padding: 8px 14px 9px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(5, 34, 112, 0.13);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  min-width: clamp(150px, 15vw, 205px);
  color: var(--navy);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-name {
  font-size: clamp(36px, min(3.25vw, 5.8svh), 51px);
}

.brand-confetti {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 4px;
  margin: 1px 0 0 6px;
}

.brand-confetti i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.brand-confetti i:nth-child(2) {
  grid-row: 2;
  background: #14bfd0;
}

.brand-confetti i:nth-child(3) {
  grid-row: 2;
  background: var(--coral);
}

.brand-swoosh {
  position: absolute;
  left: 27px;
  bottom: -11px;
  width: clamp(112px, 11vw, 148px);
  height: 12px;
  border-bottom: 6px solid var(--yellow);
  border-radius: 50%;
  transform: rotate(2deg);
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-deep);
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: not-allowed;
  opacity: 0.78;
}

.demo-play {
  position: relative;
  width: clamp(30px, 2.8vw, 38px);
  height: clamp(30px, 2.8vw, 38px);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 6px 15px rgba(16, 42, 131, 0.2);
}

.demo-play::after {
  content: "";
  position: absolute;
  top: 27%;
  left: 40%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--white);
}

.demo-status {
  padding: 4px 7px;
  border-radius: 999px;
  color: #526585;
  background: rgba(232, 239, 248, 0.88);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(5, 34, 112, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.language-switcher button {
  min-width: clamp(40px, 3.5vw, 48px);
  min-height: clamp(36px, min(3.4vw, 5.4svh), 42px);
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--navy-deep);
  background: transparent;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(8, 125, 233, 0.3);
}

.language-switcher button:focus-visible,
.upload-button:focus-visible,
.brand:focus-visible,
.skip-link:focus-visible {
  outline: 4px solid rgba(255, 201, 0, 0.8);
  outline-offset: 3px;
}

main {
  min-height: 0;
}

.hero {
  position: relative;
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(6px, 1svh, 10px);
  padding: clamp(8px, 1.2svh, 13px) 0 clamp(10px, 1.5svh, 16px);
}

.hero-glow,
.hero-spark {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--container));
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(390px, 0.44fr) minmax(0, 0.56fr);
  align-items: center;
  margin-inline: auto;
}

.hero-copy {
  grid-column: 1;
  position: relative;
  min-width: 0;
  max-width: 540px;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: 38px;
}

html[data-design="a"] .hero-copy {
  padding-left: clamp(10px, 1.8vw, 28px);
  background: transparent;
  box-shadow: none;
}

html[data-design="b"] .hero-copy {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(245, 252, 255, 0.72) 70%,
    rgba(255, 255, 255, 0.34) 100%
  );
  box-shadow: 0 22px 55px rgba(5, 45, 125, 0.14);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: clamp(48px, min(5.15vw, 8.1svh), 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
  isolation: isolate;
}

h1 > span {
  position: static;
  display: block;
  text-shadow: none;
  filter: none;
  transform: none;
}

.hero-title-accent {
  color: var(--coral);
  white-space: nowrap;
  -webkit-text-stroke: 0 transparent;
}

html[data-design="a"] h1,
html[data-design="a"] .hero-lead {
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.9),
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px 1px 0 rgba(255, 255, 255, 0.9),
    1px 1px 0 rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.86);
}

html[data-design="a"] .hero-title-accent {
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.92),
    1px -1px 0 rgba(255, 255, 255, 0.92),
    -1px 1px 0 rgba(255, 255, 255, 0.92),
    1px 1px 0 rgba(255, 255, 255, 0.92),
    0 0 10px rgba(255, 255, 255, 0.88);
}

html[data-design="a"] .availability-note {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.96), 0 0 9px rgba(255, 255, 255, 0.86);
}

.title-underline {
  display: block;
  width: min(78%, 380px);
  height: clamp(12px, 1.8svh, 19px);
  margin: -1px 0 clamp(8px, 1.3svh, 13px) clamp(34px, 5vw, 68px);
  border-bottom: clamp(6px, 0.7svh, 8px) solid var(--yellow);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 550px;
  margin-bottom: clamp(10px, 1.5svh, 17px);
  color: var(--navy-deep);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(16px, min(1.5vw, 2.55svh), 23px);
  font-weight: 700;
  line-height: 1.22;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(100%, 440px);
  min-height: clamp(54px, 8svh, 66px);
  padding: 9px 11px 9px 22px;
  border: 3px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(180deg, #ff5f62 0%, #ff2548 100%);
  box-shadow: 0 12px 25px rgba(227, 26, 70, 0.3), inset 0 -4px 0 rgba(190, 8, 50, 0.16);
  font-size: clamp(18px, min(1.6vw, 2.65svh), 23px);
  font-weight: 900;
  line-height: 1.1;
  cursor: not-allowed;
  opacity: 0.92;
}

.upload-button svg {
  width: clamp(30px, 2.8vw, 37px);
  height: clamp(30px, 2.8vw, 37px);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-arrow {
  display: grid;
  width: clamp(40px, 3.8vw, 47px);
  height: clamp(40px, 3.8vw, 47px);
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--white);
  font-size: 39px;
  line-height: 0.8;
}

.availability-note {
  max-width: 440px;
  margin: clamp(4px, 0.7svh, 8px) 0 0;
  color: #324d76;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(10px, min(0.85vw, 1.45svh), 12px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.process-panel {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr clamp(20px, 2.2vw, 32px) 1fr clamp(20px, 2.2vw, 32px) 0.92fr;
  align-items: center;
  gap: clamp(5px, 0.7vw, 10px);
  min-height: 0;
  padding: clamp(9px, 1.4svh, 14px) clamp(16px, 2.1vw, 28px);
  border: 4px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(28px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(5, 45, 125, 0.18);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(40px, 3.4vw, 49px) minmax(115px, 1fr) clamp(60px, 6vw, 86px);
  align-items: center;
  gap: clamp(6px, 0.8vw, 11px);
  min-width: 0;
}

.step-number {
  display: grid;
  width: clamp(40px, 3.4vw, 49px);
  height: clamp(40px, 3.4vw, 49px);
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, #a92df0, #651de2);
  box-shadow: 0 7px 16px rgba(111, 31, 222, 0.27);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 900;
}

.step-copy {
  min-width: 0;
}

.step-copy h2 {
  margin-bottom: clamp(3px, 0.45svh, 6px);
  color: var(--navy-deep);
  font-size: clamp(16px, min(1.3vw, 2.1svh), 21px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.step-copy p {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(11px, min(0.88vw, 1.55svh), 14px);
  font-weight: 600;
  line-height: 1.18;
}

.step-art {
  display: block;
  width: clamp(60px, 6vw, 86px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 6px rgba(12, 54, 122, 0.13));
}

.step-chevron {
  color: #168be4;
  font-family: Arial, sans-serif;
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: 1;
  text-align: center;
}

.site-footer {
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.84);
  background: var(--navy-deep);
}

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

.footer-brand {
  flex: 0 0 auto;
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

@media (min-width: 961px) and (max-height: 720px) {
  :root {
    --header-height: 64px;
  }

  .brand-cluster {
    padding-block: 5px 6px;
  }

  .hero {
    gap: 5px;
    padding-block: 7px;
  }

  .hero-copy {
    padding-block: 17px;
  }

  .process-panel {
    padding-block: 8px;
  }

  .step-art {
    width: 58px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 82px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero-stage {
    min-height: 0;
    display: block;
    background-color: #0b71dc;
    background-position: 72% top;
    background-size: auto 760px;
  }

  .site-header,
  .header-inner {
    min-height: var(--header-height);
  }

  .brand-cluster {
    gap: 14px;
  }

  .brand {
    min-width: 150px;
  }

  .demo-status {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 0;
    display: block;
    padding: 24px 0 20px;
  }

  .hero-grid {
    width: min(calc(100% - 32px), var(--container));
    height: auto;
    min-height: clamp(530px, 78vw, 650px);
    display: block;
  }

  .hero-copy {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  html[data-design="a"] .hero-copy {
    padding-inline: 18px;
  }

  .title-underline,
  .hero-lead,
  .availability-note {
    margin-inline: auto;
  }

  h1 {
    max-width: none;
    font-size: clamp(50px, 8.5vw, 72px);
  }

  .process-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 8px;
    padding: 25px 28px;
    border-radius: 34px;
  }

  .process-step {
    grid-template-columns: 52px minmax(0, 1fr) 90px;
  }

  .step-number {
    width: 50px;
    height: 50px;
  }

  .step-copy h2 {
    font-size: 21px;
  }

  .step-copy p {
    font-size: 14px;
  }

  .step-art {
    width: 86px;
  }

  .step-chevron {
    display: none;
  }
}

@media (max-width: 650px) {
  :root {
    --header-height: 112px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-stage {
    background-position: 73% top;
    background-size: auto 650px;
  }

  html[data-design="a"] .hero-stage {
    background-position: 12% top;
  }

  .header-inner {
    align-items: flex-start;
    padding-block: 7px;
  }

  .brand-cluster {
    max-width: 218px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 10px 7px;
    border-radius: 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-confetti {
    grid-template-columns: repeat(2, 7px);
    gap: 3px;
    margin-left: 4px;
  }

  .brand-confetti i {
    width: 7px;
    height: 7px;
  }

  .brand-swoosh {
    left: 22px;
    bottom: -9px;
    width: 96px;
    height: 9px;
    border-bottom-width: 5px;
  }

  .demo-link {
    gap: 6px;
    font-size: 12px;
  }

  .demo-play {
    width: 25px;
    height: 25px;
  }

  .demo-play::after {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }

  .header-actions {
    padding-top: 1px;
  }

  .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  .language-switcher button {
    min-width: 34px;
    min-height: 34px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .hero {
    padding: 12px 0 16px;
  }

  .hero-grid {
    width: min(calc(100% - 24px), var(--container));
    min-height: calc(650px - var(--header-height) - 12px);
  }

  .hero-copy,
  html[data-design="a"] .hero-copy {
    padding: 18px 14px;
    border-radius: 27px;
  }

  h1 {
    font-size: clamp(39px, 12.4vw, 53px);
    line-height: 0.99;
    letter-spacing: -0.045em;
  }

  .title-underline {
    width: 72%;
    height: 12px;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom-width: 6px;
  }

  .hero-lead {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .upload-button {
    min-height: 58px;
    padding-left: 16px;
    font-size: 17px;
  }

  .upload-button svg {
    width: 31px;
    height: 31px;
  }

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

  .availability-note {
    font-size: 10px;
  }

  .process-panel {
    width: calc(100% - 20px);
    gap: 20px;
    margin-top: 0;
    padding: 23px 17px;
    border-radius: 28px;
  }

  .process-step {
    grid-template-columns: 44px minmax(0, 1fr) 66px;
    gap: 9px;
  }

  .step-number {
    width: 43px;
    height: 43px;
    font-size: 22px;
  }

  .step-copy h2 {
    font-size: 18px;
  }

  .step-copy p {
    font-size: 12px;
  }

  .step-art {
    width: 66px;
  }

  .site-footer {
    padding: 12px 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .footer-brand {
    font-size: 17px;
  }

  .footer-inner p {
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 370px) {
  .brand-cluster {
    max-width: 188px;
  }

  .demo-play,
  .step-art {
    display: none;
  }

  .process-step {
    grid-template-columns: 43px minmax(0, 1fr);
  }
}

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