:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #24201c;
  --muted: #756f68;
  --line: #f1dfc7;
  --orange: #f59a23;
  --coral: #ff6b73;
  --mint: #56d7be;
  --pink: #ffd7df;
  --shadow: 0 18px 48px rgba(58, 44, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(22px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.menu-toggle,
.language-toggle {
  position: relative;
  z-index: 60;
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(84, 49, 13, 0.08);
}

.menu-toggle img,
.language-toggle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-drawer,
.language-popover {
  position: fixed;
  top: 72px;
  right: clamp(22px, 6vw, 72px);
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 36px));
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.language-popover {
  right: calc(clamp(22px, 6vw, 72px) + 58px);
  width: 180px;
}

.nav-drawer.open,
.language-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-drawer a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn {
  width: 100%;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--ink);
  background: #fff4df;
}

.nav-drawer a:hover {
  color: var(--ink);
  background: #fff3df;
  transform: translateX(-4px);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 760px;
  padding-top: 42px;
  padding-bottom: 54px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.22;
}

.hero-subtitle {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
}

.hero-text,
.long-copy,
.section-heading p,
.challenge-copy p,
.ui-copy p,
.highlight-card p,
figcaption {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.35;
}

.hero-logo {
  width: 128px;
  height: 128px;
  margin: 0 0 42px 122px;
  border-radius: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 34px;
  padding: 0 24px;
  color: #fff;
  background: #5d5a98;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 690px;
}

.hero-device-stack {
  position: relative;
  width: min(520px, 100%);
  height: 690px;
  margin: 0 auto;
}

.phone-frame {
  overflow: visible;
  width: min(100%, 270px);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-frame img {
  width: 100%;
  border-radius: 0;
  filter: drop-shadow(0 24px 44px rgba(58, 44, 27, 0.12));
}

.my-page-frame {
  position: relative;
}

.my-page-frame::before {
  position: absolute;
  top: 2.1%;
  left: 21%;
  z-index: 2;
  width: 58%;
  height: 4.2%;
  background: #f6f6f6;
  content: "";
}

.my-page-frame::after {
  position: absolute;
  top: 3.25%;
  left: 0;
  z-index: 3;
  width: 100%;
  color: #24201c;
  content: "MY PAGE";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 8.2%, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.hero-phone {
  position: absolute;
  animation: floatPhone 6.5s ease-in-out infinite;
}

.hero-detail-phone {
  top: 12px;
  right: 22px;
  width: 245px;
  z-index: 1;
  opacity: 0.96;
}

.hero-discover-phone {
  top: 164px;
  left: 38px;
  width: 270px;
  z-index: 2;
  animation-delay: -1.8s;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border-top: 2px solid var(--orange);
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.stats-strip div {
  display: grid;
  grid-template-rows: 72px 42px 96px;
  justify-items: center;
  align-items: start;
  gap: 0;
  padding: 34px 20px 38px;
  background: var(--paper);
  text-align: center;
}

.stats-strip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  align-self: start;
}

.stats-strip span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
}

.stats-strip strong {
  width: 100%;
  max-width: 260px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  white-space: pre-line;
  text-align: left;
}

.split-section,
.challenge {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.split-section,
.challenge,
.image-section,
.ui-section,
.prototype-section,
.highlights {
  border-top: 5px solid var(--orange);
}

.split-section {
  align-items: start;
}

.long-copy {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.2;
}

.challenge {
  grid-template-columns: 0.8fr 1fr;
}

.challenge h2 {
  margin-bottom: 30px;
}

.challenge-copy {
  font-size: 20px;
  line-height: 1.2;
  white-space: pre-line;
}

.journey-note {
  margin: 42px auto 0;
  max-width: 1040px;
  padding: 10px 38px;
  background: #ffd579;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.challenge-image img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

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

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.wide-image {
  padding: 0;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wide-image img {
  width: 100%;
  border-radius: 0;
}

.ui-flow {
  display: grid;
  gap: 118px;
  max-width: 860px;
  margin: 0 auto;
}

.ui-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(240px, 1fr);
  gap: clamp(34px, 8vw, 98px);
  align-items: center;
}

.ui-block.reverse {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.72fr);
}

.ui-block.reverse .ui-copy {
  order: 2;
}

.ui-copy {
  font-size: 18px;
  line-height: 1.2;
}

.ui-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: clamp(58px, 8vw, 92px);
}

.phone-pair .phone-frame {
  width: min(44%, 218px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 330px));
  justify-content: center;
  gap: clamp(70px, 10vw, 128px);
  margin-top: 58px;
}

figure {
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

video {
  width: 100%;
  max-height: 620px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

figcaption {
  padding: 14px 4px 2px;
  font-weight: 700;
}

.highlight-board {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.highlight-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.highlight-item {
  min-width: 0;
}

.highlight-no {
  display: block;
  margin-bottom: 10px;
  color: #4A90E2;
  font-size: 24px;
  font-weight: 800;
}

.highlight-item h4 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.1;
}

.highlight-item p {
  min-height: 130px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
}

.highlight-item img {
  width: 100%;
  height: 320px;
  max-height: none;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 14px 36px rgba(45, 36, 23, 0.08);
}

.highlight-item .map-preview {
  object-position: 50% 31%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--orange);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes floatPhone {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 76px 0;
  }

  .hero,
  .split-section,
  .challenge,
  .ui-block,
  .ui-block.reverse,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ui-block.reverse .ui-copy {
    order: 0;
  }

  .ui-flow {
    gap: 76px;
  }

  .video-grid {
    justify-items: center;
    gap: 54px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: 100vw;
    padding: 12px 16px;
  }

  .header-actions {
    position: fixed;
    top: 12px;
    right: auto;
    left: calc(100vw - 104px);
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  .lang-btn {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-drawer,
  .language-popover {
    top: 66px;
    right: 16px;
  }

  .language-popover {
    right: auto;
    left: calc(100vw - 250px);
  }

  .section,
  .stats-strip,
  .footer {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero {
    gap: 28px;
    overflow: hidden;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-text,
  .long-copy {
    font-size: 16px;
    line-break: anywhere;
    word-break: break-word;
    max-width: min(100%, 330px);
  }

  .hero-logo {
    width: 108px;
    height: 108px;
    margin-left: 0;
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tags span {
    min-width: 0;
    padding: 0 18px;
  }

  .hero-visual {
    min-height: 500px;
    overflow: hidden;
  }

  .hero-device-stack {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px);
    height: 490px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-device-stack .hero-detail-phone {
    width: 178px;
    top: 0;
    right: 18px;
  }

  .hero-device-stack .hero-discover-phone {
    width: 198px;
    top: 112px;
    left: 14px;
  }

  .stats-strip {
    margin-top: 0;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .stats-strip div {
    padding: 18px 0;
  }

  .wide-image {
    overflow-x: auto;
    padding: 0;
  }

  .wide-image img {
    width: max(780px, 100%);
    max-width: none;
  }

  .phone-frame {
    width: min(100%, 255px);
    border: 0;
    border-radius: 0;
  }

  .phone-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .phone-pair .phone-frame {
    width: min(100%, 255px);
  }

  .video-grid {
    grid-template-columns: minmax(0, 280px);
    gap: 48px;
  }

  .highlight-board {
    width: 100%;
    padding: 0;
  }

  .highlight-columns {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .highlight-item p {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 13px;
  }

  .highlight-item img {
    height: 360px;
  }

  .footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
