/* NVUE landing — tokens mirror front/src/index.css so the marketing site and
   the app read as one brand. No build step: plain CSS served by nginx. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --brand: #1e3a5f;
  --brand-strong: #16314f;
  --brand-fg: #ffffff;
  --accent: #0ea5e9;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.08);

  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow {
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-fg);
}

.btn--primary:hover {
  background: var(--brand-strong);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--brand);
}

.btn--ghost {
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.btn--light {
  background: #ffffff;
  color: var(--brand);
}

.btn--light:hover {
  background: #e2e8f0;
}

.btn--ghost-light {
  color: rgb(255 255 255 / 0.85);
}

.btn--ghost-light:hover {
  color: #ffffff;
  background: rgb(255 255 255 / 0.12);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-strong);
  color: #ffffff;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav__brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.75);
}

.nav__links a:hover {
  color: #ffffff;
}

.nav__cta {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(60% 50% at 80% 0%, rgb(14 165 233 / 0.12), transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgb(30 58 95 / 0.08), transparent 70%);
}

.hero__inner {
  max-width: 800px;
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: rgb(30 58 95 / 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

.accent {
  color: var(--accent);
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  word-break: keep-all;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stats strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
}

.hero__stats span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  text-align: center;
}

.section__sub {
  margin: 0.75rem auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--text-muted);
  word-break: keep-all;
}

.section__title--left,
.section__sub--left {
  text-align: left;
  margin-inline: 0;
}

/* ---------- Feature grid ---------- */
.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgb(30 58 95 / 0.08);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: keep-all;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Split / device mock ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.checks li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 70% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 70% no-repeat;
}

.mock {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.mock__bar {
  height: 40px;
  background: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
}

.mock__body {
  padding: 1.5rem;
}

.mock__line {
  height: 12px;
  border-radius: 6px;
  background: #e2e8f0;
  margin-bottom: 10px;
}

.w80 {
  width: 80%;
}
.w95 {
  width: 95%;
}
.w60 {
  width: 60%;
}

.mock__opts {
  margin-top: 1.5rem;
  display: grid;
  gap: 8px;
}

.mock__opt {
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.mock__opt--sel {
  border-color: var(--accent);
  background: rgb(14 165 233 / 0.1);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 1.25rem;
}

.faq:first-of-type {
  margin-top: 2.5rem;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 1.25rem;
}

.faq[open] summary::after {
  content: "–";
}

.faq p {
  padding: 0 0 1rem;
  color: var(--text-muted);
  word-break: keep-all;
}

.faq a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand) 60%, #24507f);
  color: var(--brand-fg);
  padding: 4.5rem 0;
}

.cta__inner {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.cta p {
  margin: 0.5rem 0 1.75rem;
  color: rgb(255 255 255 / 0.8);
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0;
  background: var(--brand-strong);
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.7);
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
}

.footer__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__copy {
  color: rgb(255 255 255 / 0.45);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 4rem 0;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    gap: 1.5rem;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
