/* ==========================================================================
   Atlas — Landing Page
   Color tokens mirror the Atlas Admin Vuetify dark theme so the marketing
   site and the product read as one system.
   ========================================================================== */

:root {
  /* Atlas Admin theme tokens */
  --bg: #111827;
  --surface: #1a2133;
  --surface-light: #1f2940;
  --surface-bright: #263248;
  --border: #374560;
  --text: #e5e9f5;
  --text-muted: #8896b0;
  --primary: #3b82f6;
  --success: #10b981;

  /* Derived */
  --primary-hover: #5b9bf8;
  --primary-press: #2f6fd6;
  --border-soft: rgba(55, 69, 96, 0.55);
  --border-hair: rgba(55, 69, 96, 0.32);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --container: 1120px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Korean text should break on word boundaries, not mid-word. */
  word-break: keep-all;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Brand mark
   -------------------------------------------------------------------------- */

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

/* Traced from the Atlas logo: a crossbar-less "A" built from two offset
   strokes. The short left stroke carries the brand blue. */
.brand__mark {
  width: auto;
  height: 26px;
  flex: none;
}

.brand__mark .leg-primary {
  fill: var(--primary);
}

.brand__mark .leg-neutral {
  fill: var(--text);
}

/* The wordmark uses custom letterforms (crossbar-less A) that no system font
   reproduces, so it ships as the original artwork. */
.brand__word {
  width: auto;
  height: 11px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-hair);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
}

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

.btn--primary:active {
  background: var(--primary-press);
}

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

.btn--outline:hover {
  background: var(--surface-light);
  border-color: #4a5a78;
}

/* All three plan CTAs share one identical state so no plan reads as preferred. */
.btn--subscribe {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--subscribe:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn--subscribe:active {
  background: var(--primary-press);
  border-color: var(--primary-press);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding-inline: 12px;
}

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

.btn--lg {
  height: 48px;
  padding: 0 28px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(72px, 11vw, 128px);
  border-top: 1px solid var(--border-hair);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 15vw, 172px) clamp(72px, 11vw, 128px);
  text-align: center;
}

/* Soft primary glow — the only decorative flourish on the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 640px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 42%,
    rgba(59, 130, 246, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(26, 33, 51, 0.6);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero__title {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 62ch;
  margin: 24px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.78;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.feature:hover {
  background: var(--surface-light);
  border-color: var(--border);
  transform: translateY(-2px);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-bright);
  color: var(--primary);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature__ko {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
}

.feature__desc {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Plan comparison
   -------------------------------------------------------------------------- */

.plans__scroll {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.plans {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.plans th,
.plans td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-hair);
  vertical-align: middle;
}

.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
  border-bottom: 0;
}

/* First column pins while the plan columns scroll on narrow screens. */
.plans th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 190px;
  background: var(--surface-bright);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.plans thead th {
  position: sticky;
  top: 0;
  background: var(--surface-light);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plans thead th:first-child {
  z-index: 3;
  background: var(--surface-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plans__note {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plans__price {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.plans__period {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.plans td {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.plans td[data-strong="true"] {
  color: var(--text);
  font-weight: 500;
}

.plans .na {
  color: #55637f;
}

.plans tbody tr:hover td {
  background: rgba(38, 50, 72, 0.35);
}

.plans__cta td {
  padding-top: 24px;
  padding-bottom: 24px;
}

.plans__hint {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 861px) {
  .plans__hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact__card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    var(--surface-light),
    var(--surface) 60%
  );
}

.contact__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.contact__meta {
  display: grid;
  gap: 20px;
}

.contact__row {
  display: grid;
  gap: 4px;
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__value {
  font-size: 1.0625rem;
  font-weight: 600;
}

a.contact__value {
  color: var(--primary);
  transition: color 0.18s var(--ease);
}

a.contact__value:hover {
  color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: 48px;
  border-top: 1px solid var(--border-hair);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__legal {
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid var(--border-hair);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Legal pages (terms / privacy / refund)
   -------------------------------------------------------------------------- */

.legal {
  padding-block: clamp(56px, 8vw, 96px);
}

.legal__inner {
  max-width: 760px;
  margin-inline: auto;
}

.legal__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal__updated {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal__body {
  margin-top: clamp(36px, 5vw, 52px);
}

.legal__body h2 {
  margin-top: 44px;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p,
.legal__body li {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.legal__body p {
  margin-top: 14px;
}

.legal__body ul,
.legal__body ol {
  margin-top: 14px;
  padding-left: 20px;
}

.legal__body li {
  margin-top: 8px;
}

.legal__body li::marker {
  color: #55637f;
}

.legal__body strong {
  color: var(--text);
  font-weight: 600;
}

.legal__body a {
  color: var(--primary);
}

.legal__body a:hover {
  color: var(--primary-hover);
}

.legal__note {
  margin-top: 44px;
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal__note p {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 58px;
  }

  .container {
    padding-inline: 20px;
  }

  .nav__links {
    display: none;
  }

  /* Brand + Login + Contact Sales overflow a phone-width bar, which widens the
     whole document. Drop the secondary CTA — the hero carries both. */
  .nav__actions .btn--primary {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand__mark {
    height: 22px;
  }

  .brand__word {
    height: 9px;
  }

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

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
