:root {
  --deep: #06111f;
  --deep-2: #0a2031;
  --deep-3: #102f3d;
  --paper: #f7f0e6;
  --paper-2: #fffaf2;
  --ink: #142032;
  --muted: #627084;
  --line: rgba(20, 32, 50, 0.16);
  --line-dark: rgba(246, 212, 143, 0.22);
  --gold: #f6d48f;
  --amber: #ff8a1d;
  --jade: #20b8a4;
  --white: #ffffff;
  --max: 1160px;
  --shadow: 0 28px 74px rgba(4, 10, 20, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  word-break: keep-all;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(246, 212, 143, 0.24);
  border-radius: 8px;
  background: rgba(6, 17, 31, 0.76);
  box-shadow: 0 18px 50px rgba(3, 8, 16, 0.26);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: top 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  top: 8px;
  background: rgba(6, 17, 31, 0.92);
}

.brand img {
  width: 164px;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: rgba(255, 250, 242, 0.84);
  font-size: 15px;
  font-weight: 750;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.desktop-nav .desktop-web-app-link {
  color: var(--gold);
}

.header-cta {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--white);
  font-size: 15px;
  font-weight: 850;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
}

.mobile-menu {
  position: fixed;
  top: 92px;
  right: 20px;
  left: 20px;
  z-index: 45;
  display: none;
  padding: 10px;
  border: 1px solid rgba(246, 212, 143, 0.22);
  border-radius: 8px;
  background: rgba(6, 17, 31, 0.96);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 12px;
  color: var(--gold);
  font-weight: 800;
}

.mobile-menu-cta {
  margin-top: 6px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--white) !important;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 124px 0 72px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.82) 38%, rgba(6, 17, 31, 0.28) 68%, rgba(6, 17, 31, 0.56) 100%),
    linear-gradient(180deg, rgba(6, 17, 31, 0.1) 0%, rgba(6, 17, 31, 0.22) 68%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 670px;
}

.hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: 84px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-lead {
  margin: 26px 0 0;
  color: #fff7e8;
  font-size: 29px;
  line-height: 1.32;
  font-weight: 820;
}

.hero-subcopy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 18px;
  font-weight: 620;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.web-app-actions {
  margin-top: 32px;
}

.web-app-button {
  display: inline-flex;
  min-width: 224px;
  height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(255, 210, 132, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, #ff9d2b, #f06f11);
  box-shadow: 0 18px 42px rgba(3, 8, 16, 0.24);
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
  text-align: left;
  transition: transform 160ms ease, filter 160ms ease;
}

.web-app-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.web-app-button small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 720;
}

.web-app-actions + .store-actions {
  margin-top: 12px;
}

.store-button {
  display: inline-flex;
  min-width: 186px;
  height: 60px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 8px;
  background: rgba(8, 28, 43, 0.82);
  box-shadow: 0 18px 42px rgba(3, 8, 16, 0.22);
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.store-button.primary {
  border-color: rgba(255, 210, 132, 0.48);
  background: linear-gradient(180deg, #ff9d2b, #f06f11);
}

.store-button:hover {
  border-color: rgba(255, 210, 132, 0.86);
  transform: translateY(-2px);
}

.store-button img {
  width: 28px;
  height: 28px;
}

.store-button small {
  display: block;
  margin-bottom: 1px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 250, 242, 0.9);
  font-size: 15px;
  font-weight: 850;
}

.hero-flow span {
  padding: 8px 11px;
  border: 1px solid rgba(246, 212, 143, 0.26);
  border-radius: 8px;
  background: rgba(6, 17, 31, 0.54);
}

.hero-flow i {
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.hero-screens {
  position: relative;
  min-height: 560px;
}

.phone {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 8px solid #05101c;
  border-radius: 34px;
  background: #05101c;
  box-shadow: 0 28px 80px rgba(1, 6, 13, 0.54), 0 0 0 1px rgba(246, 212, 143, 0.16);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-main {
  top: 0;
  left: 122px;
  z-index: 3;
  width: 252px;
  height: 448px;
}

.phone-back {
  top: 82px;
  left: 0;
  z-index: 1;
  width: 210px;
  height: 374px;
  opacity: 0.9;
  transform: rotate(-6deg);
}

.phone-front {
  top: 118px;
  right: 0;
  z-index: 4;
  width: 206px;
  height: 366px;
  opacity: 0.96;
  transform: rotate(5deg);
}

.split-head,
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: end;
}

.section-title {
  align-items: start;
  margin-bottom: 44px;
}

.split-head h2,
.section-title h2,
.feature-copy h2,
.download-grid h2,
.faq-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.split-head p,
.section-title p,
.feature-copy p,
.download-grid p,
.faq-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.routine-section {
  background: var(--paper);
}

.routine-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  border: 1px solid var(--line);
  background: var(--line);
}

.routine-step {
  min-height: 270px;
  padding: 34px;
  background: var(--paper-2);
}

.step-number {
  color: var(--jade);
  font-size: 16px;
  font-weight: 900;
}

.routine-step h3 {
  margin: 54px 0 10px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.routine-step p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 630;
}

.section-detail-action {
  margin-top: 28px;
}

.section-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 125, 50, 0.42);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.section-detail-link::after {
  content: "→";
}

.section-detail-link:hover {
  color: var(--jade);
  border-color: currentColor;
  transform: translateX(2px);
}

.screens-section {
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--deep), var(--deep-2));
}

.screens-section h2,
.screens-section p {
  color: var(--white);
}

.screens-section p {
  color: rgba(255, 250, 242, 0.72);
}

.screen-rail {
  display: grid;
  grid-auto-columns: 250px;
  grid-auto-flow: column;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2)) 16px;
  scroll-snap-type: x mandatory;
}

.screen-rail figure {
  margin: 0;
  scroll-snap-align: start;
}

.screen-rail img,
.feature-phone img,
.double-phone img {
  width: 100%;
  border: 8px solid #05101c;
  border-radius: 32px;
  background: #05101c;
  box-shadow: 0 24px 64px rgba(1, 6, 13, 0.38);
}

.screen-rail figcaption {
  margin-top: 13px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 850;
  text-align: center;
}

.feature-section {
  display: grid;
  gap: 120px;
  background: var(--paper);
}

#gate-feature {
  scroll-margin-top: 92px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 72px;
  align-items: center;
}

.feature-row-reverse {
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-phone {
  order: 1;
}

.section-mark {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 900;
}

.feature-copy p {
  margin-top: 18px;
}

.feature-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  position: relative;
  padding-left: 22px;
  color: #304052;
  font-size: 17px;
  font-weight: 750;
}

.feature-copy li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  content: "";
}

.feature-phone {
  max-width: 360px;
  justify-self: center;
}

.double-phone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 210px));
  gap: 18px;
  width: min(100%, 438px);
  justify-content: center;
  justify-self: center;
}

.double-phone img:nth-child(2) {
  margin-top: 42px;
}

.audience-section {
  background: #e7f1ee;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 46px;
  border: 1px solid rgba(25, 84, 78, 0.18);
  background: rgba(25, 84, 78, 0.18);
}

.audience-item {
  min-height: 240px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.56);
}

.audience-item h3 {
  margin: 0;
  color: #123b37;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 900;
}

.audience-item p {
  margin: 18px 0 0;
  color: #496861;
  font-size: 17px;
  font-weight: 650;
}

.download-section {
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.94), rgba(6, 17, 31, 0.64)),
    url("/landing/assets/hero-study-flow.jpg") center / cover;
  opacity: 0.86;
}

.download-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.download-grid h2 {
  color: var(--gold);
}

.download-grid p {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 250, 242, 0.74);
}

.store-actions-download {
  justify-content: flex-end;
  margin: 0;
}

.faq-section {
  padding-bottom: 0;
  background: var(--paper-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  align-items: start;
}

.faq-title p {
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 620;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 58px;
  color: rgba(255, 250, 242, 0.76);
  background: #050e19;
}

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

.site-footer img {
  width: 168px;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 250, 242, 0.62);
  font-weight: 620;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--gold);
  font-weight: 780;
}

.site-footer small {
  grid-column: 1 / -1;
  color: rgba(255, 250, 242, 0.48);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

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

  .reveal,
  .store-button,
  .site-header {
    transition: none;
  }
}

@media (min-width: 1041px) and (min-height: 720px) {
  html {
    scroll-snap-type: y mandatory;
  }

  section[id] {
    scroll-margin-top: 0;
  }

  #gate-feature {
    scroll-margin-top: 0;
  }

  .hero,
  main > .section:not(.feature-section),
  .feature-row {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .hero {
    padding-top: 124px;
    padding-bottom: 96px;
  }

  .routine-section,
  .screens-section,
  .audience-section,
  .download-section,
  .faq-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature-section {
    gap: 0;
    padding: 0;
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 64px;
    padding-top: 92px;
    padding-bottom: 64px;
  }

  .feature-row-reverse {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  }

  .screens-section {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .screens-section .section-title {
    margin-bottom: 32px;
  }

  .screen-rail {
    grid-auto-columns: clamp(210px, 16vw, 230px);
    padding-bottom: 10px;
  }

  .feature-phone {
    max-width: 320px;
  }

  .double-phone {
    grid-template-columns: repeat(2, minmax(0, 190px));
    width: min(100%, 398px);
  }

  .double-phone img:nth-child(2) {
    margin-top: 32px;
  }

  .faq-section {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .faq-section .faq-grid {
    margin-top: auto;
    margin-bottom: auto;
  }

  .faq-section .site-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    padding: 36px 0 42px;
  }
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .hero-grid,
  .split-head,
  .section-title,
  .feature-row,
  .feature-row-reverse,
  .download-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-screens {
    min-height: 500px;
    order: 2;
  }

  .phone-main {
    left: 50%;
    width: 230px;
    height: 408px;
    transform: translateX(-50%);
  }

  .phone-back {
    left: 6%;
    width: 190px;
    height: 338px;
  }

  .phone-front {
    right: 6%;
    width: 188px;
    height: 334px;
  }

  .routine-flow-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-phone {
    order: initial;
  }

  .feature-section {
    gap: 88px;
  }

  .store-actions-download {
    justify-content: flex-start;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    height: 58px;
    padding: 0 10px 0 14px;
  }

  .site-header.scrolled {
    top: 8px;
  }

  .brand img {
    width: 128px;
  }

  .mobile-menu {
    top: 78px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 38px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.78) 58%, var(--paper) 100%),
      linear-gradient(90deg, rgba(6, 17, 31, 0.8), rgba(6, 17, 31, 0.38));
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 21px;
  }

  .hero-subcopy {
    margin-top: 14px;
    font-size: 15px;
  }

  .store-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }

  .store-button {
    min-width: 0;
    height: 54px;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.08;
  }

  .store-button img {
    width: 24px;
    height: 24px;
  }

  .store-button small {
    font-size: 10px;
  }

  .hero-flow {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-flow span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero-flow i {
    width: 13px;
  }

  .hero-screens {
    display: none;
  }

  .phone-back,
  .phone-front {
    display: none;
  }

  .phone-main {
    position: relative;
    top: auto;
    left: auto;
    width: min(270px, 82vw);
    height: auto;
    margin: 0 auto;
    transform: none;
  }

  .phone-main img {
    height: auto;
  }

  .routine-section {
    padding-top: 58px;
  }

  .split-head h2,
  .section-title h2,
  .feature-copy h2,
  .download-grid h2,
  .faq-title h2 {
    font-size: 30px;
    line-height: 1.22;
  }

  .split-head p,
  .section-title p,
  .feature-copy p,
  .download-grid p,
  .faq-title p {
    font-size: 15px;
  }

  .routine-step {
    min-height: 210px;
    padding: 28px 24px;
  }

  .routine-step h3 {
    margin-top: 34px;
    font-size: 34px;
  }

  .screen-rail {
    grid-auto-columns: 214px;
  }

  .feature-row {
    gap: 34px;
  }

  .feature-copy ul {
    margin-top: 22px;
  }

  .feature-copy li {
    font-size: 15px;
  }

  .feature-phone {
    max-width: 270px;
  }

  .double-phone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .double-phone img:nth-child(2) {
    margin-top: 28px;
  }

  .audience-item {
    min-height: auto;
    padding: 26px 22px;
  }

  .download-section {
    padding-bottom: 92px;
  }

  .site-footer nav {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .store-button {
    gap: 6px;
    padding: 0 8px;
    font-size: 14px;
  }

  .store-button img {
    width: 22px;
    height: 22px;
  }

  .hero-flow span {
    padding-right: 8px;
    padding-left: 8px;
  }
}
