@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("./fonts/LINESeedKR-Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("./fonts/LINESeedKR-Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  /* SwiftUI Color.red resolved to sRGB on macOS 27, with its system appearance variants. */
  --saver-red: #ff383c;
  color-scheme: light;
  font-family: "LINE Seed Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  background: #f7f8fb;
  color: #171c2c;
}

@media (prefers-color-scheme: dark) {
  :root { --saver-red: #ff4245; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 112px; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: -60px; padding: 12px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #a997ff; outline-offset: 4px; }

.site-header { position: absolute; z-index: 2; width: 100%; color: #fff; }
.nav { display: flex; min-height: 82px; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 760; letter-spacing: -.045em; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: #c6c9df; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-github { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #ffffff3b; border-radius: 100px; color: #fff; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse 90% 65% at 83% 36%, #262654 0%, transparent 67%), #0b1020; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .2; pointer-events: none; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -150px; top: 130px; background: #7871ed; filter: blur(150px); opacity: .23; }
.hero-inner { position: relative; z-index: 1; padding-top: 166px; padding-bottom: 120px; }
.hero-copy { max-width: 800px; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #777ca14a; border-radius: 100px; padding: 8px 14px; color: #d8d6ff; background: #ffffff0b; font-size: 13px; font-weight: 650; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #a5a1ff; box-shadow: 0 0 12px #a5a1ff; }
h1 { margin-top: 26px; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.2; letter-spacing: -.045em; font-weight: 700; }
h1 em { font-style: normal; color: #bcb5ff; }
.hero-description { max-width: 610px; margin: 25px auto 0; color: #babed3; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; word-break: keep-all; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 51px; padding: 0 22px; border-radius: 11px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #141127; background: #d1caff; }
.button-primary:hover { background: #e5e1ff; }
.button-secondary { color: #f3f3ff; background: #ffffff12; border: 1px solid #ffffff36; }
.button-secondary:hover { background: #ffffff20; }
.github-mark { flex: none; }
.nav-github .github-mark, .button-secondary .github-mark, .text-link .github-mark, .closing .github-mark, .site-footer .github-mark { filter: invert(1); }
.button span { margin-left: 12px; }
.hero-note { margin-top: 19px; color: #989db8; font-size: 12px; }
.hero-figure { margin-top: 82px; }
.device-frame { position: relative; padding: 13px; border: 1px solid #5d6381; border-radius: 24px; background: linear-gradient(145deg, #3b4159, #191c2a 27%, #555c75 51%, #202331 75%); box-shadow: 0 36px 90px #0008, 0 0 70px #9690ff24; }
.device-camera { position: absolute; z-index: 1; top: 3px; left: 50%; width: 45px; height: 8px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #11131d; }
.saver-screen { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; position: relative; aspect-ratio: 16 / 8.6; min-height: 320px; overflow: hidden; border: 1px solid #141722; border-radius: 13px; padding: 5% 6%; }
.saver-dark { color: white; background: #050507; }
.saver-topline, .saver-bottomline { display: flex; justify-content: space-between; }
.saver-topline { align-items: start; }
.market-badge { padding: 7px 11px; border-radius: 7px; color: #d5d6de; background: #ffffff1f; font-size: clamp(10px, 1.1vw, 13px); font-weight: 680; }
.saver-updated { color: #92929d; font-size: clamp(10px, 1.1vw, 13px); }
.hero-chart { position: absolute; inset: 20% 6% 24%; width: 88%; height: 55%; overflow: visible; }
.chart-grid { fill: none; stroke: #ffffff20; stroke-width: 1; stroke-dasharray: 5 9; }
.chart-area { fill: var(--saver-red); fill-opacity: .19; }
.chart-line { fill: none; stroke: var(--saver-red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--saver-red); }
.saver-bottomline { position: absolute; bottom: 7%; left: 6%; right: 6%; align-items: end; gap: 15px; }
.saver-metrics { display: flex; gap: clamp(12px, 3vw, 42px); align-items: end; }
.saver-metrics span { display: grid; gap: 6px; color: #9999a2; font-size: clamp(9px, 1vw, 12px); }
.saver-metrics strong { color: #f1f1f5; font-size: clamp(11px, 1.25vw, 16px); font-weight: 600; }
.saver-price { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.saver-company { font-size: clamp(12px, 1.9vw, 24px); font-weight: 600; }
.saver-price strong { font-size: clamp(23px, 4.1vw, 54px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.saver-change { color: var(--saver-red); font-size: clamp(11px, 1.7vw, 21px); font-weight: 600; }
.hero-figure figcaption { margin-top: 16px; color: #8f96b0; text-align: center; font-size: 12px; }

.intro { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.section-kicker { color: #655ac0; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h2 { margin-top: 16px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.25; letter-spacing: -.04em; }
.intro-grid > p { max-width: 500px; color: #5f6574; font-size: 17px; line-height: 1.9; word-break: keep-all; }
.features { background: #f7f8fb; }
.section-heading { text-align: center; }
.section-heading > p:last-child { margin-top: 17px; color: #676e7c; font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.feature-card { min-height: 274px; padding: 28px; border: 1px solid #e6e7ef; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px #1b275006; }
.feature-card h3 { margin-top: 28px; font-size: 20px; letter-spacing: -.04em; }
.feature-card p { margin-top: 12px; color: #667080; line-height: 1.7; font-size: 14px; word-break: keep-all; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #efedff; color: #675bd2; font-size: 28px; line-height: 1; }
.feature-chart { grid-column: span 2; }
.chart-pair { display: flex; gap: 12px; margin-top: 24px; }
.mini-chart { flex: 1; min-width: 0; height: 90px; padding: 12px; border-radius: 12px; background: #101421; }
.mini-chart span { color: #969ab3; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.mini-chart svg { width: 100%; height: 53px; }
.mini-line path { fill: none; stroke: var(--saver-red); stroke-width: 3; }
.mini-candles path { stroke: #9ca5fa; stroke-width: 2; }
.mini-candles rect { fill: #9ca5fa; }
.feature-grid .feature-card:last-child { grid-column: span 2; }

.setup { color: #fff; background: #171b2d; }
.setup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.setup .section-kicker { color: #ada5ff; }
.setup-heading > p:not(.section-kicker) { max-width: 350px; margin-top: 21px; color: #aeb4c8; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; color: #d6d0ff; font-weight: 700; text-decoration: none; border-bottom: 1px solid #7773a4; padding-bottom: 5px; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid #ffffff26; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { color: #a99fff; font-size: 14px; font-weight: 800; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 8px; color: #aeb4c8; font-size: 14px; line-height: 1.7; word-break: keep-all; }

.requirements { background: #fff; }
.requirements-inner { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.requirements ul { display: grid; gap: 17px; margin: 0; padding-left: 22px; font-size: 17px; font-weight: 650; }
.requirements li::marker { color: #8174d7; }
.requirements a { text-underline-offset: 3px; }
.requirements-inner > p { grid-column: 2; margin-top: 26px; color: #697080; line-height: 1.7; font-size: 14px; }
.closing { text-align: center; background: #eeecfc; }
.closing-inner { display: grid; justify-items: center; }
.closing-inner > img { border-radius: 16px; }
.closing h2 { margin-top: 24px; }
.closing p { margin-top: 14px; color: #636579; }
.closing .button { margin-top: 26px; background: #332c70; color: white; }
.closing .button:hover { background: #4c438c; }
.site-footer { background: #101423; color: #a9aec1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 88px; font-size: 13px; }
.footer-inner div { display: flex; gap: 24px; }
.footer-inner a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-inner a:hover { color: white; }

@media (max-width: 850px) {
  .section { padding-block: 80px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-chart, .feature-grid .feature-card:last-child { grid-column: span 1; }
  .feature-card { min-height: 265px; }
  .chart-pair { display: none; }
  .setup-grid { gap: 45px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 36px, 460px); }
  .nav { min-height: 70px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .nav-links { gap: 13px; font-size: 12px; }
  .nav-links a:not(.nav-github) { display: none; }
  .nav-links .nav-github { padding: 8px 11px; }
  .hero-inner { padding-top: 132px; padding-bottom: 76px; }
  h1 { font-size: clamp(38px, 9vw, 52px); }
  .hero-description { margin-top: 20px; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  .button { width: 100%; }
  .hero-figure { margin-top: 56px; margin-inline: -5px; }
  .device-frame { padding: 7px; border-radius: 14px; }
  .device-camera { width: 30px; height: 4px; }
  .saver-screen { min-height: 190px; border-radius: 8px; }
  .saver-metrics { gap: 9px; }
  .saver-metrics span { font-size: 8px; }
  .saver-metrics strong { font-size: 8px; }
  .saver-price strong { font-size: 22px; }
  .saver-company { font-size: 11px; }
  .saver-change { font-size: 10px; }
  .intro-grid, .setup-grid, .requirements-inner { grid-template-columns: 1fr; gap: 26px; }
  .intro-grid > p { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .feature-card { min-height: auto; padding: 24px; }
  .feature-card h3 { margin-top: 18px; }
  .feature-chart, .feature-grid .feature-card:last-child { grid-column: auto; }
  .chart-pair { display: flex; }
  .setup-grid { gap: 42px; }
  .requirements ul { font-size: 15px; }
  .requirements-inner > p { grid-column: 1; margin-top: 0; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: 12px; padding-block: 24px; }
  .footer-inner div { flex-wrap: wrap; row-gap: 10px; }
}

/* The rules above are also the fallback for browsers without corner-shape. */
@supports (corner-shape: superellipse(1.8)) {
  .brand img, .nav-links .nav-github, .eyebrow, .button,
  .device-frame, .device-camera, .saver-screen, .market-badge,
  .feature-card, .feature-icon, .mini-chart, .closing-inner > img {
    corner-shape: superellipse(1.8);
  }

  .brand img { border-radius: 16px; }
  .nav-links .nav-github, .eyebrow { border-radius: 180px; }
  .button { border-radius: 20px; }
  .device-frame { border-radius: 42px; }
  .device-camera { border-radius: 0 0 14px 14px; }
  .saver-screen { border-radius: 23px; }
  .market-badge { border-radius: 12px; }
  .feature-card { border-radius: 36px; }
  .feature-icon { border-radius: 23px; }
  .mini-chart { border-radius: 21px; }
  .closing-inner > img { border-radius: 28px; }

  @media (max-width: 620px) {
    .device-frame { border-radius: 25px; }
    .saver-screen { border-radius: 14px; }
  }
}

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