:root {
  --primary: #ff6a1a;
  --primary-2: #ff8a45;
  --primary-soft: #fff2e8;
  --primary-ring: rgba(255, 106, 26, 0.18);

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;

  --cream: #f6f2ee;
  --cream-2: #efe6da;
  --peach: #fed0c3;
  --peach-2: #f9c5ba;
  --clay: #bd6e63;
  --warm-ink: #1f1612;
  --warm-text: #4a3a31;
  --warm-muted: #7e6d63;
  --warm-border: #e7ddd0;

  --ink: #0e1116;
  --ink-2: #1a1f27;
  --ink-3: #2a313b;
  --text: #2f3743;
  --muted: #6a7280;
  --muted-2: #8a92a0;

  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --surface-tint: #fafbfe;
  --border: #e5e9f1;
  --border-soft: #eef1f7;

  --shadow-sm: 0 1px 2px rgba(15, 19, 26, 0.04), 0 1px 1px rgba(15, 19, 26, 0.03);
  --shadow: 0 8px 24px rgba(20, 25, 33, 0.06), 0 2px 6px rgba(20, 25, 33, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 25, 33, 0.10), 0 6px 18px rgba(20, 25, 33, 0.05);
  --shadow-glow: 0 18px 38px rgba(255, 106, 26, 0.22);

  --radius-sm: 0.6rem;
  --radius: 1.2rem;
  --radius-lg: 1.8rem;
  --radius-xl: 2.4rem;
  --container: 120rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--warm-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: #fff;
  min-height: 100%;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid #4d8bff;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  background: #fff;
  color: var(--ink);
  z-index: 99;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
  box-shadow: var(--shadow);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ───────── Layout ───────── */
section { padding: 7.2rem 2rem; position: relative; }

.section-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

/* ───────── Typography ───────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--warm-ink);
  font-weight: 800;
}

h1 {
  text-align: center;
  font-size: clamp(3rem, 4.8vw, 5.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

h2,
h3 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h4 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

h5 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.hero-description {
  margin: 1.6rem auto 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--warm-text);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.hero-description strong { color: var(--warm-ink); font-weight: 600; }

.sub-title {
  margin-top: 1.2rem;
  color: var(--warm-muted);
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.7;
}

/* ───────── Header ───────── */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(2rem, calc((100% - var(--container)) / 2));
  background: rgba(14, 17, 22, 0.78);
  color: #fff;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

header.scrolled {
  background: rgba(14, 17, 22, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand { display: inline-flex; align-items: center; }
header img { width: 9.4rem; height: auto; }

.header-cta {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
}
.header-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ───────── Hero ───────── */
.first-article {
  position: relative;
  min-height: 64rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.first-article > img {
  display: none;
}

.first-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(254, 208, 195, 0.85) 0%, transparent 60%),
    radial-gradient(70% 60% at 15% 85%, rgba(249, 197, 186, 0.55) 0%, transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(238, 223, 193, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  z-index: 1;
}

.first-article::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(189, 110, 99, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 110, 99, 0.06) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.content-wrap {
  position: relative;
  text-align: center;
  color: var(--warm-text);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  z-index: 2;
}

.content-wrap > * {
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
}

.content-wrap > .hero-actions,
.content-wrap > .hero-trust { max-width: none; }

.orange-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(189, 110, 99, 0.18);
  border-radius: 999px;
  padding: 0.7rem 1.4rem 0.7rem 1.2rem;
  margin: 0 auto 2.4rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(189, 110, 99, 0.08);
}
.orange-badge::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0.4rem rgba(255, 106, 26, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
.orange-badge-text {
  color: var(--clay);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0.3rem rgba(255, 106, 26, 0.25); }
  50%      { box-shadow: 0 0 0 0.7rem rgba(255, 106, 26, 0.05); }
}

.content-wrap h1 { color: var(--warm-ink); }
.content-wrap h1 strong { color: var(--clay); font-weight: inherit; }

.hero-subline {
  display: block;
  margin: 1.4rem auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  color: var(--clay);
  letter-spacing: 0;
  line-height: 1.4;
  max-width: 64rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 5rem;
  padding: 0 2.2rem;
  border-radius: 999px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a45 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(255, 106, 26, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--warm-ink);
  border: 1px solid var(--warm-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--clay);
  color: var(--clay);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.22s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 3.2rem;
  margin-top: 4.4rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 12rem;
}
.trust-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--warm-ink);
  letter-spacing: -0.03em;
}
.trust-label {
  font-size: 1.2rem;
  color: var(--warm-muted);
  letter-spacing: 0.04em;
}
.trust-divider {
  width: 1px;
  background: rgba(31, 22, 18, 0.12);
  align-self: stretch;
}

/* ───────── Hero floating UI chips ───────── */
.hero-chips {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {
  .hero-chips { display: block; }
}

.ui-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--warm-border);
  border-radius: 1.4rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--warm-ink);
  font-size: 1.25rem;
  box-shadow: 0 14px 32px rgba(189, 110, 99, 0.18);
}

.ui-chip strong {
  display: block;
  font-weight: 500;
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
  color: var(--warm-ink);
}

.ui-chip small {
  display: block;
  font-size: 1.15rem;
  color: var(--warm-muted);
  letter-spacing: 0.01em;
}

.ui-chip--sync {
  top: 14%;
  left: 6%;
  animation: float-a 6.5s ease-in-out infinite;
}

.ui-chip--placement {
  top: 28%;
  right: 5%;
  animation: float-b 7.2s ease-in-out infinite;
}

.ui-chip--policy {
  bottom: 18%;
  left: 8%;
  animation: float-c 8s ease-in-out infinite;
}

.ui-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0.35rem rgba(74, 222, 128, 0.22);
  flex-shrink: 0;
}

.ui-chip-spark {
  width: 3.2rem;
  height: 1.6rem;
  background:
    linear-gradient(135deg, transparent 0 35%, var(--primary-2) 35% 40%, transparent 40% 55%, var(--primary-2) 55% 60%, transparent 60% 75%, var(--primary) 75% 80%, transparent 80%);
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.ui-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clay);
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(189, 110, 99, 0.35);
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: rgba(189, 110, 99, 0.08);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -1.2rem); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-0.6rem, 1rem); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0.8rem, -0.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ui-chip--sync,
  .ui-chip--placement,
  .ui-chip--policy { animation: none; }
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  color: var(--clay);
  border: 1px solid rgba(189, 110, 99, 0.28);
  border-radius: 999px;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
  transition: all 0.25s var(--ease);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.scroll-down:hover {
  transform: translateX(-50%) translateY(-3px);
  background: #fff;
  color: var(--warm-ink);
}

/* ───────── Sections ───────── */
.second-article,
.sixth-article {
  background: #fbf7f1;
}

.third-article,
.fifth-article {
  background: var(--cream);
}

/* ───────── Tabs ───────── */
.tab-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  padding: 0.5rem;
  margin-bottom: 3rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  backdrop-filter: blur(6px);
}

.tab {
  border: none;
  height: 4.4rem;
  background: transparent;
  color: var(--warm-muted);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  font-family: inherit;
}

.tab:hover { color: var(--warm-ink); }

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(255, 106, 26, 0.28);
}

.service-panel { padding-top: 0.4rem; animation: fadeIn 0.35s var(--ease); }

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

/* ───────── Cards (preview) ───────── */
.video-preview,
.native-preview,
.display-frame {
  background: linear-gradient(180deg, #fff 0%, #fbf6ee 100%);
  border: 1px solid var(--warm-border);
  border-radius: 2.2rem;
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(189, 110, 99, 0.06);
  position: relative;
  overflow: hidden;
}

.video-preview::before,
.native-preview::before,
.display-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0.85;
}

.video-preview span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: rgba(189, 110, 99, 0.08);
  color: var(--clay);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 1rem;
  text-transform: lowercase;
}
.video-preview span::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--clay);
}

.video-preview p,
.native-preview p,
.display-frame p {
  margin: 0.6rem 0 0;
  color: var(--warm-text);
  font-size: 1.42rem;
  line-height: 1.75;
}

.native-card {
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--warm-border);
}
.native-card h4 { margin: 0; font-size: 2rem; }
.native-card p { color: var(--warm-muted); margin: 0; font-size: 1.4rem; }

.native-preview ul,
.display-frame ul {
  margin: 1.4rem 0 0;
  padding-left: 0;
  list-style: none;
}
.native-preview ul li,
.display-frame ul li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  color: var(--warm-text);
  line-height: 1.75;
}
.native-preview ul li::before,
.display-frame ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem;
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(189, 110, 99, 0.12);
  border-radius: 50%;
}
.native-preview ul li::after,
.display-frame ul li::after {
  content: "";
  position: absolute;
  left: 0.45rem; top: 1.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--clay);
  border-radius: 50%;
}

h4 + .spec-grid { margin-top: 1.2rem; }
.service-panel h4 {
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--clay);
}

/* ───────── Spec / Feature / Optimize cards ───────── */
.spec-grid,
.optimize-wrap,
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.spec-item,
.optimize,
.feature-item {
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 1.8rem;
  padding: 2.4rem 2.4rem 2.6rem;
  text-align: left;
  box-shadow: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.4rem;
  color: var(--warm-text);
  line-height: 1.7;
  position: relative;
}

.spec-item:hover,
.optimize:hover,
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(189, 110, 99, 0.10);
  border-color: rgba(189, 110, 99, 0.32);
}

.spec-item::before,
.feature-item::before {
  content: "";
  width: 3.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  margin-bottom: 0.4rem;
}

.spec-item strong,
.optimize strong { color: var(--warm-ink); font-weight: 700; }

.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 8.8rem;
  margin: 0 0 1.8rem;
  padding: 1rem 1.4rem;
  background:
    radial-gradient(80% 100% at 50% 100%, rgba(254, 208, 195, 0.32) 0%, transparent 70%),
    linear-gradient(180deg, rgba(249, 197, 186, 0.08), rgba(238, 223, 193, 0.16));
  border-radius: 1.2rem;
  position: relative;
  overflow: hidden;
}
.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(189, 110, 99, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 110, 99, 0.05) 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}
.card-art svg {
  width: auto;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.feature-item p code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--clay);
  background: rgba(189, 110, 99, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
}

.feature-item span {
  display: block;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--warm-ink);
  margin-bottom: 0.2rem;
  letter-spacing: -0.015em;
}
.feature-item p {
  margin: 0;
  color: var(--warm-text);
  font-size: 1.38rem;
  line-height: 1.75;
}

.optimize h5 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.optimize p {
  font-size: 1.4rem;
  line-height: 1.75;
  color: var(--warm-text);
  margin: 0;
}

/* ───────── Size buttons ───────── */
.size-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.size-box {
  height: 4.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--warm-muted);
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 1.32rem;
  transition: all 0.18s var(--ease);
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: inherit;
}

.size-box:hover { color: var(--warm-ink); background: rgba(189, 110, 99, 0.07); }

.size-box.active {
  background: #fff;
  color: var(--clay);
  border-color: var(--warm-border);
  box-shadow: 0 4px 12px rgba(189, 110, 99, 0.08);
}

.size-desc {
  margin-top: 1.6rem;
  color: var(--warm-muted);
  font-size: 1.36rem;
  line-height: 1.75;
}

/* ───────── Fourth article (dark) ───────── */
.fourth-article {
  background: linear-gradient(180deg, #0e1116 0%, #15191f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fourth-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 20% 20%, rgba(255, 106, 26, 0.10) 0%, transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(60, 110, 220, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.fourth-article .section-wrap { position: relative; z-index: 1; }
.fourth-article .section-head h2,
.fourth-article .section-head h3 { color: #fff; }
.fourth-article .section-head .sub-title { color: rgba(255, 255, 255, 0.6); }
.fourth-article .section-eyebrow { color: var(--primary-2); }
.fourth-article .section-eyebrow::before { background: linear-gradient(90deg, transparent, var(--primary-2)); }

.fourth-article .optimize-wrap { margin-top: 1.4rem; }

.fourth-article .optimize {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  padding: 2.4rem;
  counter-increment: ch;
  position: relative;
}
.fourth-article .optimize::before {
  content: counter(ch, decimal-leading-zero);
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}
.fourth-article .optimize:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 106, 26, 0.32);
  transform: translateY(-3px);
}
.fourth-article .optimize h5 { color: #fff; }
.fourth-article .optimize p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.38rem;
}
.fourth-article .optimize-wrap { counter-reset: ch; }

/* ───────── Detail block ───────── */
.detail {
  max-width: 84rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.55rem;
  color: var(--warm-text);
  line-height: 1.95;
  padding: 3.4rem 3.2rem;
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 2.2rem;
  box-shadow: 0 8px 24px rgba(189, 110, 99, 0.05);
  position: relative;
}
.detail::before {
  content: "“";
  position: absolute;
  left: 2rem;
  top: 1rem;
  font-size: 8rem;
  color: var(--clay);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1;
  opacity: 0.35;
}

/* ───────── Process steps ───────── */
.process-wrap {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
  counter-reset: step;
}

.process-box {
  padding: 2rem 2rem 2rem 6.8rem;
  background: #fff;
  border: 1px solid var(--warm-border);
  color: var(--warm-ink);
  border-radius: 1.8rem;
  position: relative;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.6;
  box-shadow: none;
  transition: all 0.22s var(--ease);
  counter-increment: step;
}

.process-box::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(255, 106, 26, 0.28);
}

.process-box small {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--warm-muted);
  letter-spacing: -0.005em;
  line-height: 1.6;
}

.process-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(189, 110, 99, 0.10);
  border-color: rgba(189, 110, 99, 0.32);
}

/* ───────── Final CTA ───────── */
.final-cta {
  background: linear-gradient(180deg, #fbf7f1 0%, var(--cream-2) 100%);
}

.final-cta-card {
  max-width: 92rem;
  padding: 4rem 3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--warm-border);
  border-radius: 2.4rem;
  box-shadow: 0 18px 48px rgba(189, 110, 99, 0.10);
  backdrop-filter: blur(12px) saturate(140%);
}

.final-cta-card h2 {
  max-width: 68rem;
  margin: 0 auto;
}

.final-cta-card p {
  max-width: 72rem;
  margin: 1.4rem auto 0;
  color: var(--warm-text);
  font-size: 1.52rem;
  line-height: 1.85;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

@media (max-width: 640px) {
  .tab-wrap {
    grid-template-columns: 1fr;
    border-radius: 1.4rem;
    max-width: 100%;
  }

  .tab {
    border-radius: 1rem;
    min-height: 4.4rem;
    height: auto;
    padding: 0.9rem 1rem;
  }

  .hero-actions .btn,
  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    gap: 1.8rem;
  }

  .trust-divider {
    display: none;
  }
}

/* ───────── Footer ───────── */
footer {
  background: #0e1116;
  color: #b8bec8;
  padding: 4rem 2rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

footer > * {
  width: 100%;
  max-width: var(--container);
}
footer span { font-size: 1.25rem; letter-spacing: 0.01em; }
footer span:first-child { color: #fff; font-weight: 700; letter-spacing: 0.05em; }
footer a { color: var(--primary-2); }
footer a:hover { color: #fff; }

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.6rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--primary-2); }

.to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--warm-ink);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 36px rgba(31, 22, 18, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.to-top:hover {
  transform: translateY(-2px);
  background: var(--clay);
}

/* ───────── Scroll reveal ───────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */
@media (min-width: 768px) {
  section { padding: 9rem 4rem; }

  .hero-description {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.7rem;
  }
  .sub-title { font-size: 1.6rem; }

  .content-wrap { padding: 6rem 2rem; }

  .spec-grid,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .optimize-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .size-container {
    grid-template-columns: repeat(6, 1fr);
    max-width: 58rem;
  }

  .process-wrap { grid-template-columns: repeat(3, 1fr); }

  .hero-trust { gap: 4.4rem; }
  .trust-num { font-size: 2.8rem; }

  .video-preview,
  .native-preview,
  .display-frame { padding: 3rem; }
}

@media (min-width: 1100px) {
  section { padding: 11rem 4rem; }

  .section-head { margin-bottom: 5rem; }

  .spec-grid,
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .size-container { max-width: 64rem; }

  .process-wrap { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .process-box {
    padding: 5.2rem 1.8rem 2rem;
    text-align: center;
    font-size: 1.35rem;
  }
  .process-box::before {
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
  }

  .first-article { min-height: 76rem; }
}

/* ---------- AdX comparison table ---------- */
.compare-scroll {
  margin-top: 5.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 64rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 1.45rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 1.6rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--warm-border);
  color: var(--warm-text);
}

.compare-table thead th {
  background: var(--cream);
  font-weight: 700;
  color: var(--warm-ink);
  font-size: 1.4rem;
}

.compare-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--warm-ink);
  white-space: nowrap;
  background: rgba(246, 242, 238, 0.55);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .compare-highlight {
  background: var(--primary-soft);
  color: var(--warm-ink);
  font-weight: 500;
}

.compare-table thead .compare-highlight {
  color: var(--primary);
  font-weight: 900;
}

/* ---------- Apply / contact section ---------- */
.apply-article {
  padding: 12rem 2.4rem;
  background: var(--cream);
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: start;
}

.apply-form {
  background: var(--surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-lg);
  padding: 3.6rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.field {
  margin-bottom: 2.2rem;
  border: none;
  padding: 0;
}

.field label,
.field legend {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warm-ink);
  margin-bottom: 0.8rem;
}

.field label em {
  color: var(--primary);
  font-style: normal;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 1.3rem 1.6rem;
  font-size: 1.5rem;
  font-family: inherit;
  color: var(--warm-ink);
  background: var(--surface-tint);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.field textarea { resize: vertical; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--warm-text);
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: var(--primary);
}

.apply-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.apply-actions .btn { border: none; cursor: pointer; font-family: inherit; }

.form-status {
  font-size: 1.4rem;
  color: var(--warm-muted);
  margin: 0;
}

.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #1e7d4f; }

.apply-note {
  margin-top: 2rem;
  font-size: 1.35rem;
  color: var(--warm-muted);
  line-height: 1.7;
}

.apply-note a { color: var(--primary); font-weight: 700; }

.apply-aside {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.apply-aside h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--warm-ink);
  margin: 0 0 1.2rem;
}

.apply-aside h3:not(:first-child) { margin-top: 2.8rem; }

.apply-aside ul {
  margin: 0;
  padding-left: 1.8rem;
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--warm-text);
}

.apply-aside p {
  font-size: 1.5rem;
  color: var(--warm-text);
  margin: 0;
}

.apply-aside p a { color: var(--primary); font-weight: 700; }

.apply-aside-sub {
  margin-top: 0.8rem;
  font-size: 1.35rem;
  color: var(--warm-muted);
}

@media (max-width: 880px) {
  .apply-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .apply-form { padding: 2.6rem 2rem; }
  .apply-article { padding: 8rem 2rem; }
}
