/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  /* Colors */
  --bg:           #FAFAF7;
  --bg-alt:       #F3EFE8;
  --bg-card:      #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #5C5C5C;
  --text-faint:   #9E9E9E;
  --primary:      #1E3A2F;
  --primary-dark: #162D23;
  --primary-bg:   rgba(30, 58, 47, 0.07);
  --primary-bg-strong: rgba(30, 58, 47, 0.14);
  --border:       rgba(0, 0, 0, 0.09);
  --border-mid:   rgba(0, 0, 0, 0.14);
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow:       0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 8px 32px rgba(0, 0, 0, 0.10);

  /* Layout */
  --max-width:    1080px;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;

  /* Spacing */
  --section-gap: 88px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ================================================
   TYPOGRAPHY UTILITIES
   ================================================ */
.eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease,
              border-color 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(30, 58, 47, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--primary-bg);
}

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

.btn-white:hover,
.btn-white:focus-visible {
  background: #F0EDE8;
  border-color: #F0EDE8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
  font-size: 0.88rem;
  padding: 8px 16px;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}

.logo {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 130ms ease;
  white-space: nowrap;
}

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

.header-cta {
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-menu[aria-hidden="false"] {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.mobile-menu li a {
  display: block;
  padding: 11px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 130ms ease, color 130ms ease;
}

.mobile-menu li a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
  padding: var(--section-gap) 0;
}

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

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.section-heading p {
  margin-top: 14px;
}

/* Card grids */
.card-grid {
  display: grid;
  gap: 20px;
}

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

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 18px;
  font-size: unset;
  font-weight: unset;
  letter-spacing: 0;
  line-height: 1;
}

.h1-sm {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  line-height: 1.5;
}

.h1-md {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.h1-lg {
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Browser frame mockup */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ECEAE5;
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  height: 22px;
  margin-left: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 0.68rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
}

.browser-content {
  padding: 14px;
}

/* Mini preview elements */
.mini-hero {
  background: var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.mini-eyebrow {
  height: 5px;
  width: 52px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
  margin-bottom: 10px;
}

.mini-title {
  height: 9px;
  width: 88%;
  background: rgba(255,255,255,0.8);
  border-radius: 3px;
  margin-bottom: 6px;
}

.mini-title--short { width: 62%; }

.mini-desc {
  height: 6px;
  width: 80%;
  background: rgba(255,255,255,0.38);
  border-radius: 3px;
  margin-bottom: 5px;
}

.mini-desc--short {
  width: 60%;
  margin-bottom: 14px;
}

.mini-btns {
  display: flex;
  gap: 7px;
}

.mini-btn {
  height: 18px;
  width: 64px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
}

.mini-btn--solid {
  background: white;
  border-color: white;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mini-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.mini-card-icon {
  width: 16px;
  height: 16px;
  background: var(--primary-bg);
  border-radius: 3px;
  margin-bottom: 7px;
}

.mini-card-line {
  height: 5px;
  background: #E5E2DC;
  border-radius: 3px;
  margin-bottom: 4px;
}

.mini-card-line--short { width: 60%; }

/* ================================================
   SERVICES
   ================================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-mid);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ================================================
   WHY SECTION
   ================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why-copy h2 {
  margin-top: 8px;
  margin-bottom: 22px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
}

.why-copy p + p {
  margin-top: 12px;
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.strength-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.strength-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}

.strength-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.strength-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ================================================
   PROCESS
   ================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
  position: relative;
}

/* Connecting line between steps */
.process-list::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(25% + 10px);
  right: calc(25% + 10px);
  height: 1px;
  background: linear-gradient(to right, var(--primary-bg-strong), var(--primary-bg-strong));
  z-index: 0;
  pointer-events: none;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: box-shadow 180ms ease;
}

.process-step:hover {
  box-shadow: var(--shadow-sm);
}

.process-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  margin: 0;
}

/* ================================================
   TARGET
   ================================================ */
.target-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow 180ms ease;
}

.target-card:hover {
  box-shadow: var(--shadow);
}

.target-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  margin: 0 auto 18px;
  color: var(--primary);
}

.target-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ================================================
   EXAMPLES
   ================================================ */
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 180ms ease;
}

.example-card:hover {
  box-shadow: var(--shadow);
}

.example-frame {
  border-bottom: 1px solid var(--border);
}

.example-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  background: #ECEAE5;
  border-bottom: 1px solid var(--border);
}

.example-screen {
  padding: 14px;
  background: var(--bg-alt);
  min-height: 160px;
}

.example-screen--img {
  padding: 0;
  overflow: hidden;
  max-height: 220px;
}

.example-screen--img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.es-hero {
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  opacity: 0.75;
}

.es-hero--alt {
  background: #2B4A3D;
}

.es-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.es-block {
  flex: 1;
  height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.es-block--wide {
  flex: 1.5;
}

.example-info {
  padding: 20px 24px;
}

.example-info h3 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.example-info p {
  font-size: 0.9rem;
}

/* ================================================
   FAQ
   ================================================ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 130ms ease;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 200ms ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  padding: 0 2px 22px;
  font-size: 0.95rem;
}

/* ================================================
   CTA SECTION
   ================================================ */
.section--cta {
  background: var(--primary);
  padding: var(--section-gap) 0;
}

.section--cta .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 8px 0 16px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  margin-bottom: 38px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: #EDE9E2;
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 12px 40px;
  align-items: start;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 4px;
  grid-row: 1;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 130ms ease;
  white-space: nowrap;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  grid-row: 1;
  padding-top: 4px;
}

.footer-contact a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 130ms ease;
}

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ================================================
   RESPONSIVE — 1024px
   ================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
}

/* ================================================
   RESPONSIVE — 860px (Tablet)
   ================================================ */
@media (max-width: 860px) {
  :root {
    --section-gap: 64px;
  }

  /* Header */
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 52px 0 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    max-width: 440px;
  }

  /* Why */
  .why-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Process */
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list::before {
    display: none;
  }

  /* Cards */
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-contact {
    align-items: flex-start;
  }
}

/* ================================================
   RESPONSIVE — 640px (Mobile)
   ================================================ */
@media (max-width: 640px) {
  :root {
    --section-gap: 52px;
  }

  .container {
    width: calc(100% - 32px);
  }

  /* All multi-column grids → single column */
  .card-grid--3,
  .card-grid--2,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 12px;
  }
}
