:root {
  --blue: #2e66d9;
  --blue-deep: #1749b5;
  --blue-soft: #edf3ff;
  --ink: #12182d;
  --muted: #5f6d86;
  --paper: #fbfcff;
  --white: #ffffff;
  --amber: #ffb52e;
  --line: rgba(18, 24, 45, 0.12);
  --shadow: 0 26px 70px rgba(31, 70, 145, 0.15);
  --font-title: 'Outfit', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 6% 12%, rgba(96, 153, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 96% 42%, rgba(255, 181, 46, 0.12), transparent 22rem),
    var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell { position: relative; min-height: 100vh; overflow: clip; }

.top-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  color: var(--white);
}

.nav-brand,
.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}

.nav-brand { gap: .65rem; font-family: var(--font-title); font-size: 1.05rem; }
.nav-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 9px 24px rgba(0, 0, 0, .25); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-link { min-height: 42px; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(14px); }

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(7.3rem, 12vh, 9rem) clamp(1rem, 5vw, 5rem) clamp(5rem, 9vh, 7rem);
  color: var(--white);
  background:
    radial-gradient(circle at 8% 88%, rgba(65, 131, 255, .45), transparent 28rem),
    radial-gradient(circle at 82% 15%, rgba(255, 181, 46, .2), transparent 24rem),
    linear-gradient(140deg, #102d77, #2e66d9 58%, #4d84ec);
}

.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 16%; background: linear-gradient(180deg, transparent, var(--paper)); pointer-events: none; }
.hero-inner, .flow-inner, .showcase-inner, .support-inner, .screens-inner { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; }
.hero-inner { display: block; max-width: 860px; }
.hero-content { max-width: 760px; }
.hero-icon { width: clamp(78px, 8vw, 112px); height: clamp(78px, 8vw, 112px); margin-bottom: 1.3rem; border-radius: 25%; box-shadow: 0 24px 52px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.28); }
.eyebrow, .section-kicker, .feature-badge, .platform-label { margin: 0; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: #ffe09a; }
.hero h1 { margin: .35rem 0 0; font-family: var(--font-title); font-size: clamp(4rem, 9vw, 7.4rem); line-height: .88; letter-spacing: -.055em; }
.hero-claim { margin: 1.2rem 0 0; font-family: var(--font-title); font-size: clamp(2rem, 4.5vw, 4.15rem); line-height: .98; font-weight: 900; letter-spacing: -.04em; }
.hero-copy { max-width: 610px; margin: 1.35rem 0 0; color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero-points li { padding: .48rem .88rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); font-size: .9rem; font-weight: 800; }

.feature-banner-section { padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1rem, 5vw, 5rem); background: var(--paper); }
.feature-banner-inner { width: min(1024px, 100%); margin: 0 auto; }
.feature-banner { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: contain; border: 1px solid rgba(18,24,45,.1); border-radius: clamp(18px, 3vw, 30px); box-shadow: 0 24px 60px rgba(31,70,145,.14); }

.flow-strip, .showcase-section, .screens-section, .support-section { padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem); }
.flow-strip { background: var(--blue-soft); }
.flow-heading { max-width: min(840px, 100%); margin-bottom: 2.2rem; }
.section-kicker, .feature-badge { color: var(--blue); }
.flow-heading h2, .showcase-copy h2, .support-header h2, .screens-heading h2 { margin: .35rem 0 0; font-family: var(--font-title); font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.045em; }
.flow-heading p:last-child, .screens-heading p, .support-header p { max-width: 650px; margin: 1rem 0 0; color: var(--muted); font-size: 1.06rem; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flow-item { position: relative; min-height: 170px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.75); box-shadow: 0 16px 40px rgba(31,70,145,.07); }
.flow-item::before { content: attr(data-step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 900; }
.flow-item strong { display: block; font-family: var(--font-title); font-size: 1.6rem; }
.flow-item p { margin: .45rem 0 0; color: var(--muted); }

.showcase-section { background: var(--paper); }
.showcase-section.tint { background: linear-gradient(135deg, #eef4ff, #ffffff 62%); }
.showcase-section.dark { color: var(--white); background: linear-gradient(145deg, #101b3f, #1c4fb6); }
.showcase-section.dark .feature-badge { color: #ffe09a; }
.showcase-section.dark .showcase-copy > p:not(.feature-badge), .showcase-section.dark .feature-list { color: rgba(255,255,255,.76); }
.showcase-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(360px, 1.22fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.showcase-copy { max-width: 640px; }
.showcase-copy > p:not(.feature-badge) { margin: 1.2rem 0 0; color: var(--muted); font-size: 1.08rem; }
.feature-list { display: grid; gap: .55rem; margin: 1.35rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.feature-list li::marker { color: var(--blue); }
.showcase-section.dark .feature-list li::marker { color: var(--amber); }
.feature-visual { display: grid; place-items: center; }
.feature-card { width: min(100%, 490px); overflow: hidden; border: 1px solid rgba(18,24,45,.1); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.feature-card img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.feature-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem 1rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.platform-label { color: var(--blue); }
.showcase-section.dark .feature-card { border-color: rgba(255,255,255,.2); box-shadow: 0 28px 70px rgba(0,0,0,.26); }

.screens-section { background: #f3f6fc; }
.screens-heading { margin-bottom: 2.2rem; }
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.screen-card { display: flex; flex-direction: column; margin: 0; padding: .7rem .7rem .9rem; border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: 0 18px 44px rgba(31,70,145,.1); }
.screen-media { display: grid; place-items: center; height: clamp(320px, 38vw, 470px); padding: .35rem; overflow: hidden; border-radius: 19px; background: #eef2fa; }
.screen-card img { display: block; width: auto; height: 100%; max-width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 13px; background: #eef2fa; }
.screen-card figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .2rem 0; color: var(--muted); font-size: .8rem; font-weight: 700; }

.support-section { background: var(--white); }
.support-header { max-width: min(840px, 100%); margin-bottom: 2.2rem; }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.support-card { min-height: 235px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 20px; background: #fbfcff; }
.support-card h3 { margin: 0; font-family: var(--font-title); font-size: 1.35rem; }
.support-card p, .support-card li { color: var(--muted); font-size: .93rem; }
.support-card ul { margin: .75rem 0 0; padding-left: 1.05rem; }
.support-card p { margin: .75rem 0 0; }
.contact-link { display: inline-block; margin-top: .7rem; color: var(--blue); font-weight: 900; }
.button-secondary { display: inline-flex; margin-top: 1rem; padding: .55rem .8rem; border: 1px solid rgba(46,102,217,.25); border-radius: 999px; color: var(--blue); text-decoration: none; font-size: .86rem; font-weight: 800; }
.note { margin-top: 1rem; color: var(--muted); font-size: .75rem; }

.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.4rem 1rem 2.3rem; color: var(--muted); font-size: .85rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible, .contact-link:hover, .contact-link:focus-visible, .button-secondary:hover, .button-secondary:focus-visible { color: var(--blue-deep); text-decoration: underline; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .showcase-inner { grid-template-columns: 1fr; }
  .hero-content, .showcase-copy { max-width: 720px; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .top-nav { width: min(100% - 1.2rem, 1180px); padding-top: .75rem; }
  .nav-brand span { display: none; }
  .nav-link { min-height: 38px; padding: .35rem .72rem; font-size: .84rem; }
  .hero { min-height: auto; padding-top: 6.8rem; }
  .hero h1 { font-size: clamp(3.8rem, 17vw, 5.7rem); }
  .hero-claim { font-size: clamp(2rem, 10vw, 3.2rem); }
  .flow-grid, .support-grid { grid-template-columns: 1fr; }
  .flow-item { min-height: auto; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .screen-card { padding: .45rem .45rem .65rem; border-radius: 18px; }
  .screen-media { height: 360px; }
  .screen-card img { border-radius: 13px; }
  .screen-card figcaption { display: block; font-size: .72rem; }
  .screen-card figcaption .platform-label { display: block; margin-bottom: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Korean typography and line wrapping optimizations */
:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:lang(ko) h1,
:lang(ko) h2,
:lang(ko) h3,
:lang(ko) .hero-claim {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:lang(ko) p,
:lang(ko) li {
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

@media (min-width: 901px) {
  :lang(ko) .hero-content,
  :lang(ko) .hero-claim {
    max-width: 780px;
  }

  :lang(ko) .hero-copy {
    max-width: 660px;
  }

  :lang(ko) .flow-heading,
  :lang(ko) .screens-heading {
    max-width: min(920px, 100%);
  }

  :lang(ko) .showcase-copy {
    max-width: 660px;
  }

  :lang(ko) .showcase-inner {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  }

  :lang(ko) .support-header {
    max-width: 860px;
  }
}
