@font-face {
  font-family: "NanumSquareNeo";
  src: url("../assets/fonts/NanumSquareNeo-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NanumSquareNeo";
  src: url("../assets/fonts/NanumSquareNeo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NanumSquareNeo";
  src: url("../assets/fonts/NanumSquareNeo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NanumSquareNeo";
  src: url("../assets/fonts/NanumSquareNeo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NanumSquareNeo";
  src: url("../assets/fonts/NanumSquareNeo-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c1b24;
  --ink-soft: #243844;
  --mist: #e8eef2;
  --paper: #f5f8fa;
  --white: #ffffff;
  --teal: #178175;
  --teal-deep: #0c4f4a;
  --steel: #1f5f8b;
  --line: rgba(15, 40, 52, 0.12);
  --shadow: 0 18px 50px rgba(12, 40, 52, 0.12);
  --radius: 18px;
  --nav-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "NanumSquareNeo", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(12, 40, 52, 0.06);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand span em {
  font-style: normal;
  color: var(--teal);
  font-weight: 900;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover,
.nav-item:focus-within > .nav-link,
.nav-item.is-open > .nav-link {
  background: rgba(23, 129, 117, 0.08);
  color: var(--teal-deep);
}

.nav-link .chev {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.nav-item.is-open .chev,
.nav-item:hover .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 280px;
  padding: 0.7rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
}

.drop-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a818e;
  font-weight: 800;
  padding: 0.35rem 0.65rem 0.15rem;
}

.drop-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem;
  border-radius: 12px;
  transition: background 0.18s var(--ease);
}

.drop-item:hover {
  background: var(--mist);
}

.drop-item img {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: invert(34%) sepia(24%) saturate(1200%) hue-rotate(131deg);
}

.drop-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.drop-item small {
  display: block;
  color: #5d7380;
  font-size: 0.78rem;
  margin-top: 0.1rem;
  font-weight: 400;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(23, 129, 117, 0.28);
}

.nav-cta img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}

.nav-toggle img {
  width: 20px;
  height: 20px;
}

.mobile-panel {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f4fbfa;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(59, 167, 201, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 80%, rgba(23, 129, 117, 0.45), transparent 55%),
    linear-gradient(155deg, #071820 0%, #0c3d45 42%, #124a63 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: 8%;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(126, 217, 199, 0.35), transparent 65%);
  filter: blur(2px);
  animation: floatBlob 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(24px) rotate(8deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 52rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  animation: rise 0.8s var(--ease) both;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.hero-brand strong {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.55;
  color: rgba(244, 251, 250, 0.94);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero p.lead {
  max-width: 42rem;
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  color: rgba(232, 246, 244, 0.82);
  font-weight: 400;
  animation: rise 1s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s var(--ease) 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn img {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: #e8fffb;
  color: var(--teal-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-solid {
  background: linear-gradient(135deg, var(--teal), var(--steel));
  color: #fff;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 129, 117, 0.25);
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: rgba(23, 129, 117, 0.4);
  color: var(--teal-deep);
}

.btn img.invert {
  filter: brightness(0) invert(1);
}

.btn-primary img {
  filter: invert(28%) sepia(40%) saturate(700%) hue-rotate(131deg);
}

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

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

.section-head {
  max-width: 42rem;
  margin-bottom: 2.4rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  font-weight: 900;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: #526774;
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tracks like StudiumR */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.track {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 129, 117, 0.06), transparent 40%),
    var(--white);
  overflow: hidden;
}

.track.saas {
  background:
    linear-gradient(180deg, rgba(31, 95, 139, 0.08), transparent 40%),
    var(--white);
}

.track h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.track > p {
  margin: 0 0 1.1rem;
  color: #526774;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(23, 129, 117, 0.12);
  color: var(--teal-deep);
}

.badge.blue {
  background: rgba(31, 95, 139, 0.12);
  color: var(--steel);
}

.product-list {
  display: grid;
  gap: 0.65rem;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.product-row:hover {
  border-color: rgba(23, 129, 117, 0.3);
  transform: translateX(3px);
}

.product-row .meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.product-row .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-row .icon-wrap img {
  width: 18px;
  height: 18px;
  filter: invert(34%) sepia(24%) saturate(1200%) hue-rotate(131deg);
}

.product-row strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
}

.product-row small {
  color: #617887;
  font-size: 0.78rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 27, 36, 0.06);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Flow steps */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  counter-reset: step;
}

.flow-item {
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
}

.flow-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.flow-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.flow-item p {
  margin: 0;
  color: #617887;
  font-size: 0.88rem;
}

/* Security layers */
.layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.layer {
  padding: 1.5rem;
  border-radius: var(--radius);
  color: #f4fbfa;
  min-height: 220px;
}

.layer.local {
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(126, 217, 199, 0.28), transparent 60%),
    linear-gradient(160deg, #0c3d45, #0e2a34);
}

.layer.cloud {
  background:
    radial-gradient(500px 200px at 10% 100%, rgba(59, 167, 201, 0.25), transparent 60%),
    linear-gradient(160deg, #1a4664, #0e2a3a);
}

.layer h3 {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.layer p {
  margin: 0 0 1rem;
  color: rgba(244, 251, 250, 0.78);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-row span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.2rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.feature img {
  width: 22px;
  height: 22px;
  margin-bottom: 0.8rem;
  filter: invert(34%) sepia(24%) saturate(1200%) hue-rotate(131deg);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: #617887;
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  margin: 0 auto 5rem;
  width: min(var(--max), calc(100% - 2.5rem));
  padding: 2.4rem;
  border-radius: 24px;
  color: #f4fbfa;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(126, 217, 199, 0.3), transparent 55%),
    linear-gradient(120deg, #0c3d45, #1f5f8b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: rgba(244, 251, 250, 0.8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.2rem 0 2.2rem;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(23, 129, 117, 0.12), transparent 60%),
    linear-gradient(180deg, #e7eef2, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 44rem;
  color: #526774;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: #6a818e;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--teal);
}

.content-block {
  padding: 3rem 0 4.5rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.3rem;
  font-weight: 900;
}

.prose p,
.prose li {
  color: #3f5562;
}

.example-note {
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(31, 95, 139, 0.08);
  border: 1px dashed rgba(31, 95, 139, 0.35);
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 700;
}

.card-list {
  display: grid;
  gap: 0.85rem;
}

.info-card {
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  display: block;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

a.info-card:hover {
  border-color: rgba(23, 129, 117, 0.35);
  transform: translateY(-2px);
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.info-card p {
  margin: 0;
  color: #617887;
  font-size: 0.92rem;
}

.tutorial-detail h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.tutorial-detail > p {
  margin-bottom: 0.9rem;
}

.tutorial-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tutorial-cols > div {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.tutorial-meta {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.tutorial-meta p,
.tutorial-meta li {
  color: #3f5562;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tutorial-meta ul {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.1rem;
}

.tutorial-meta code {
  font-family: NanumSquareNeo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  background: var(--mist);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem !important;
}

.video-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.28rem 0.35rem 0.28rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 61, 69, 0.06), rgba(47, 143, 136, 0.1));
  border: 1px solid rgba(15, 61, 69, 0.12);
}

.video-guide__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}

.video-guide__langs {
  display: inline-flex;
  gap: 0.2rem;
}

.video-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.video-lang:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(12, 40, 52, 0.06);
  border: 1px solid var(--line);
  margin-right: 0.35rem;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 2rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn.is-on,
.lang-switch__btn[aria-pressed="true"] {
  background: #132a33;
  color: #fff;
}

.lang-switch__btn:hover:not(.is-on) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.mobile-lang {
  padding: 0.75rem 1rem 0.25rem;
}

.mobile-lang .lang-switch {
  width: 100%;
  justify-content: stretch;
}

.mobile-lang .lang-switch__btn {
  flex: 1;
}

/* Guide continuity */
.guide-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.guide-tab:hover {
  border-color: rgba(23, 129, 117, 0.35);
  color: var(--teal-deep);
}

.guide-tab.is-active {
  background: linear-gradient(135deg, var(--teal), var(--steel));
  border-color: transparent;
  color: #fff;
}

.guide-body .guide-h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.guide-body .guide-note {
  margin: 0 0 1rem;
  color: #526774;
  font-size: 0.95rem;
}

.guide-hero-media {
  margin: 0 0 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.guide-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-thumb {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 280px;
  padding: 1.6rem 1.8rem;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(125deg, #0b4f57 0%, #14707a 42%, #4aa8a0 100%);
  color: #fff;
}

.guide-thumb__brand {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.guide-thumb__tag {
  margin: 0.85rem 0 0;
  max-width: 16rem;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(126, 214, 203, 0.85);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.guide-thumb__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.guide-thumb__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px 12px 12px 999px;
  background: rgba(232, 249, 244, 0.92);
  color: #0f3f45;
  box-shadow: 0 6px 16px rgba(7, 40, 45, 0.12);
}

.guide-thumb__n {
  grid-row: 1 / span 2;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0f5b63;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.guide-thumb__steps strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.guide-thumb__steps small {
  grid-column: 2;
  font-size: 0.78rem;
  color: #2d5d66;
}

@media (max-width: 760px) {
  .guide-thumb {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.25rem;
  }
}

.guide-lead-card {
  margin-bottom: 0.5rem;
}

.guide-pillars {
  margin: 1.2rem 0;
}

.guide-callout {
  margin: 1.4rem 0 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0c3d45, #1f5f8b);
  color: #e8fffb;
}

.guide-callout p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  color: inherit;
}

.guide-body .table-wrap {
  margin: 0.5rem 0 0.25rem;
}

.guide-body .compare th {
  width: 22%;
  white-space: nowrap;
}


@media (max-width: 640px) {
  .tutorial-cols {
    grid-template-columns: 1fr;
  }

  .tutorial-detail {
    padding: 1.1rem 1rem;
  }

  .tutorial-detail > p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .tutorial-cols > div {
    padding: 0.8rem 0.85rem;
  }

  .tutorial-cols h4 {
    font-size: 0.88rem;
  }

  .tutorial-cols p {
    font-size: 0.84rem;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .tutorial-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.95rem !important;
  }

  .tutorial-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .video-guide {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem 0.55rem 0.85rem;
    border-radius: 14px;
  }

  .video-guide__label {
    font-size: 0.8rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .video-guide__langs {
    flex: 0 0 auto;
  }

  .video-lang {
    min-width: 2.25rem;
    height: 2rem;
  }
}


.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.side-panel {
  padding: 1.3rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.side-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 900;
}

.side-panel a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.side-panel a:last-child {
  border-bottom: 0;
}

.side-panel a:hover {
  color: var(--teal);
}

.side-panel img {
  width: 15px;
  height: 15px;
  filter: invert(34%) sepia(24%) saturate(1200%) hue-rotate(131deg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.price-card.featured {
  border-color: rgba(23, 129, 117, 0.45);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(23, 129, 117, 0.08), transparent 35%),
    var(--white);
}

.price-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.price-card .price {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 1rem;
}

.price-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  color: #526774;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare th,
.compare td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare th {
  background: var(--mist);
  font-weight: 800;
}

.compare td {
  color: #3f5562;
}

/* Footer */
.site-footer {
  background: #0c1b24;
  color: rgba(244, 251, 250, 0.78);
  padding: 3.2rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-col h4 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.9rem;
  color: rgba(244, 251, 250, 0.72);
}

.footer-col a:hover {
  color: #7ed9c7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 960px) {
  .nav-desktop,
  .nav-cta {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-panel.is-open {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    overflow: auto;
    padding: 1rem 1.25rem 2rem;
    z-index: 99;
    border-top: 1px solid var(--line);
  }

  .mobile-group {
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0;
  }

  .mobile-group > button,
  .mobile-group > a.top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.2rem;
    font-weight: 800;
    font-size: 1rem;
    text-align: left;
  }

  .mobile-links {
    display: none;
    padding: 0 0 0.6rem 0.4rem;
  }

  .mobile-group.is-open .mobile-links {
    display: grid;
    gap: 0.2rem;
  }

  .mobile-links a {
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
    color: #3f5562;
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
  }

  .tracks,
  .layers,
  .feature-grid,
  .flow,
  .pricing-grid,
  .footer-grid,
  .two-col,
  .dropdown.wide {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .container,
  .cta-band {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .cta-band {
    padding: 1.6rem;
  }
}

/* 회원 로그인·회원가입 버튼 (js/main.js 가 넣는다) */
.auth-links { display: inline-flex; align-items: center; gap: 0.45rem; }
.auth-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
}
.auth-link:hover { border-color: var(--teal); color: var(--teal); }
.auth-link--solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.auth-link--solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.auth-link--admin { background: var(--ink); border-color: var(--ink); color: #fff; }
.auth-links--mobile { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.auth-links--mobile .auth-link { flex: 1; text-align: center; padding: 0.7rem 0.9rem; }
@media (max-width: 960px) { .nav-inner > .auth-links:not(.auth-links--mobile) { display: none; } }

/* 회원 페이지 (pages/member) */
.member-wrap { max-width: 720px; }
.member-clerk { display: flex; justify-content: center; }
.member-email { color: var(--ink-soft); font-weight: 800; }
.member-wrap h2 { margin: 1.6rem 0 0.6rem; font-size: 1.15rem; }
.member-key { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; background: #fff; margin-bottom: 0.7rem; }
.member-key code { font-size: 1.05rem; letter-spacing: 0.06em; background: var(--paper); padding: 0.35rem 0.6rem; border-radius: 8px; user-select: all; }
.member-key .btn { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.member-badge { margin-left: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.member-badge.ok { background: #e6f2f0; color: var(--teal); }
.member-badge.bad { background: #fdecec; color: #b42318; }
.member-meta, .member-note, .member-empty { color: #5d7380; font-size: 0.88rem; margin-top: 0.5rem; }
.member-empty { background: var(--paper); border-radius: 12px; padding: 0.9rem 1rem; }
.member-dl { display: flex; gap: 0.6rem; flex-wrap: wrap; }
