:root {
  --bg: #121629;
  --bg-deep: #0a1022;
  --surface: rgba(24, 34, 68, 0.78);
  --surface-strong: #1a2953;
  --surface-soft: rgba(37, 53, 102, 0.9);
  --text: #f7f8fc;
  --muted: #9ca6c7;
  --line: rgba(255, 255, 255, 0.08);
  --coral: #f0627b;
  --coral-deep: #e95472;
  --blue: #6ebeff;
  --navy: #1d3e78;
  --lime: #b8dd37;
  --yellow: #f4c94a;
  --gray-ball: #a9acb8;
  --shadow-xl: 0 32px 90px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(240, 98, 123, 0.16), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(110, 190, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #181c34 0%, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--text);
  font-family:
    "Pretendard Variable",
    "SUIT Variable",
    "SF Pro Display",
    "Apple SD Gothic Neo",
    sans-serif;
}

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

button {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 18px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #2f3340, #0b0d13);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.24),
    inset 0 -8px 18px rgba(0, 0, 0, 0.4),
    0 10px 18px rgba(0, 0, 0, 0.28);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  color: #ff93a6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 4.9vw, 5rem);
  word-break: keep-all;
  text-wrap: balance;
}

.hero h1 br {
  display: block;
}

.hero h1 span {
  color: #ff8da1;
}

.hero-text,
.section-heading p,
.feature-card p,
.preview-block p,
.flow-card p,
.cta-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--coral), #ff7d8f);
  box-shadow: 0 16px 30px rgba(233, 84, 114, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: #dfe4f8;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc8d1, var(--coral));
  box-shadow: 0 0 0 6px rgba(240, 98, 123, 0.1);
}

.hero-visual {
  position: relative;
  min-height: 760px;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.85;
}

.glow-coral {
  top: 60px;
  left: 60px;
  width: 180px;
  height: 180px;
  background: rgba(240, 98, 123, 0.32);
}

.glow-blue {
  right: 24px;
  bottom: 110px;
  width: 220px;
  height: 220px;
  background: rgba(110, 190, 255, 0.2);
}

.phone {
  position: absolute;
  border-radius: 48px;
  background: linear-gradient(180deg, #2b3040, #090b11 76%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.16),
    inset 0 -24px 24px rgba(0, 0, 0, 0.26),
    var(--shadow-xl);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.phone-main {
  z-index: 3;
  top: 10px;
  left: 94px;
  width: 340px;
  height: 690px;
  transform: rotate(-2deg);
}

.phone-side {
  width: 250px;
  height: 520px;
}

.phone-left {
  top: 180px;
  left: -8px;
  transform: rotate(-10deg);
  opacity: 0.96;
}

.phone-right {
  top: 150px;
  right: 8px;
  transform: rotate(9deg);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 122px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #05070c;
}

.screen {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 36px;
  padding: 16px;
  background:
    radial-gradient(circle at top center, rgba(33, 42, 90, 0.42), transparent 28%),
    linear-gradient(180deg, #1a1c37 0%, #161a31 100%);
}

.screen-image {
  padding: 0;
  background: #131935;
}

.screen-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.compact {
  padding-top: 58px;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 700;
}

.screen-icons {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
}

.app-card,
.compact-card,
.preview-panel,
.feature-card,
.flow-card,
.cta-card,
.preview-block,
.preview-stat {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.app-card {
  padding: 16px;
  border-radius: 24px;
}

.app-title {
  margin-bottom: 12px;
}

.app-title .app-kicker {
  margin: 0 0 8px;
  color: #ffd7de;
  font-weight: 700;
}

.app-title h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.app-input {
  margin-bottom: 12px;
}

.field-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #b7c2ea;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-box {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: #21467c;
  color: #7ea7d4;
}

.app-input small {
  display: block;
  margin-top: 10px;
  color: #7e8ab2;
  line-height: 1.5;
}

.app-balls {
  margin-bottom: 12px;
}

.ball-row,
.ball-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ball {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.32),
    0 12px 18px rgba(0, 0, 0, 0.2);
}

.ball.tiny {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.yellow {
  background: #f6c63d;
}

.blue {
  background: #74c2f8;
}

.coral {
  background: #f27b75;
}

.gray {
  background: #b3b5bd;
}

.lime {
  background: #b8d93b;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.pill {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  color: #fdfdff;
}

.pill-coral {
  background: var(--coral-deep);
}

.pill-navy {
  background: var(--navy);
}

.strategy-grid .mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-option {
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 18px;
  background: rgba(29, 49, 93, 0.92);
  color: #d3dcf9;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.screen-label {
  margin-bottom: 18px;
  font-size: 1.15rem;
  font-weight: 800;
}

.compact-card {
  padding: 16px;
  border-radius: 24px;
}

.compact-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--coral);
  font-weight: 800;
}

.stats-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(23, 39, 83, 0.9);
}

.stats-card strong,
.result-card strong {
  display: block;
  margin-bottom: 10px;
}

.stats-line,
.tab-row,
.rank-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-line span,
.tab,
.rank-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6ef;
  font-size: 0.82rem;
}

.stats-card p {
  margin: 18px 0 0;
  color: #e7ecff;
  text-align: center;
  font-weight: 700;
}

.tab.active {
  background: rgba(240, 98, 123, 0.16);
  color: #ffd9df;
}

.result-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(22, 38, 82, 0.88);
}

.rank-grid {
  margin-top: 12px;
}

.rank-item {
  flex: 1 1 calc(50% - 4px);
  text-align: center;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 84px;
}

.value-strip div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecff;
  text-align: center;
  font-weight: 700;
}

.feature-section,
.preview-section,
.flow-section,
.faq-section,
.cta-section {
  padding-bottom: 92px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 14px 0 0;
}

.feature-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.flow-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-card h3,
.flow-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.feature-card p,
.flow-card p {
  margin: 0;
}

.feature-icon,
.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(240, 98, 123, 0.12);
  color: #ffd5dd;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.preview-copy {
  display: grid;
  gap: 16px;
}

.preview-gallery {
  display: grid;
  gap: 18px;
}

.preview-block {
  padding: 22px;
  border-radius: 24px;
}

.preview-block strong {
  font-size: 1.1rem;
}

.preview-block p {
  margin: 10px 0 0;
}

.preview-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
}

.preview-shot {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.preview-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.preview-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.preview-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(20, 31, 65, 0.9);
}

.preview-stat span {
  display: block;
  margin-bottom: 8px;
  color: #96a4cd;
  font-size: 0.84rem;
}

.preview-stat strong {
  font-size: 1.06rem;
}

.flow-step {
  background: rgba(110, 190, 255, 0.12);
  color: #cce8ff;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.cta-card p {
  margin: 12px 0 0;
  max-width: 58ch;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px 28px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 56px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f89aa;
  font-size: 0.96rem;
}

.footer-brand {
  max-width: 580px;
}

.footer-brand-top {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-copy strong {
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.footer-brand-copy small {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand p {
  margin: 28px 0 0;
  color: #d4d9ea;
  font-size: clamp(1.08rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.footer-chips span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7ddf2;
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  align-content: start;
}

.footer-column {
  display: grid;
  gap: 14px;
}

.footer-column h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-column a {
  color: #d3d8ea;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.45;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
  color: #7f89aa;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

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

  .hero h1 {
    max-width: 14ch;
  }

  .hero-visual {
    min-height: 720px;
  }

  .phone-main {
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
  }

  .phone-left {
    left: 8%;
  }

  .phone-right {
    right: 8%;
  }

  .feature-grid,
  .flow-grid,
  .preview-grid,
  .faq-grid,
  .cta-card,
  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    gap: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 9vw, 3.7rem);
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 22px;
    justify-items: center;
  }

  .phone,
  .phone-main,
  .phone-side,
  .phone-left,
  .phone-right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: min(100%, 360px);
  }

  .phone-main {
    height: auto;
    aspect-ratio: 340 / 690;
  }

  .phone-side {
    height: auto;
    aspect-ratio: 250 / 520;
  }

  .glow {
    display: none;
  }

  .feature-grid,
  .flow-grid,
  .preview-grid,
  .faq-grid,
  .cta-card,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .footer {
    gap: 34px;
  }

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

@media (max-width: 520px) {
  .section {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .topbar,
  .footer {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .nav {
    justify-content: center;
    gap: 2px;
    padding: 6px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero {
    gap: 28px;
    padding-bottom: 44px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 11.2vw, 3rem);
    line-height: 1.08;
  }

  .hero h1 br {
    display: none;
  }

  .hero-text {
    max-width: none;
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    gap: 12px;
    margin-top: 24px;
  }

  .hero-points li {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .phone-main {
    width: min(100%, 320px);
  }

  .phone-side {
    display: none;
  }

  .value-strip div,
  .feature-card,
  .flow-card,
  .faq-card,
  .cta-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .footer {
    padding-top: 44px;
  }

  .footer-brand p {
    font-size: 1rem;
  }

  .footer-column h3 {
    font-size: 1.24rem;
  }
}
