/* =========================================================
   FanoutLift — enterprise B2B theme
   ========================================================= */
:root {
  --ink: #0a0f1c;        /* headings */
  --body: #3c4456;       /* body text */
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f5f7fa;    /* light alt section */
  --line: #e4e8ef;
  --brand: #1f5eff;      /* primary */
  --brand-ink: #1646c4;
  --brand-soft: #eaf0ff;
  --dark: #0a0f1c;       /* dark band */
  --dark-2: #131a2e;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,15,28,.04), 0 8px 24px rgba(10,15,28,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
    "Malgun Gothic", "Apple SD Gothic Neo", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 30px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--body); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); text-decoration: none; }
.nav .btn-sm { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 16px;
  transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--brand-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Eyebrow tag ---------- */
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.tag-light { color: #cdd9ff; background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,94,255,.35), transparent 60%),
    linear-gradient(180deg, #0a0f1c 0%, #111a30 100%);
  color: #fff;
  padding: 92px 0 96px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero h1 { color: #fff; font-size: 52px; margin: 0 0 20px; max-width: 18ch; }
.hero .lead { color: #c4cbd9; font-size: 21px; max-width: 56ch; }

/* hero variant for inner pages (smaller) */
.hero-sub { padding: 64px 0 60px; }
.hero-sub h1 { font-size: 40px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,15,28,.1); }
.card h3 { margin-top: 4px; }
.card p { margin-bottom: 0; color: var(--muted); }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin-bottom: 0; font-size: 15px; }

/* ---------- List with checks ---------- */
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { position: relative; padding-left: 30px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f5eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
ul.crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.crosses li { position: relative; padding-left: 30px; }
ul.crosses li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px;
  border-radius: 50%; background: #fdecec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d6453b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Panel (note) ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 22px 26px; box-shadow: var(--shadow);
}
.panel.on-surface { background: #fff; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 600;
  color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 4px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--brand) 0%, #4a7bff 100%);
  color: #fff; border-radius: 20px; padding: 56px; text-align: center;
}
.cta h2 { color: #fff; font-size: 32px; }
.cta p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 52ch; margin: 0 auto 8px; }
.cta .btn { background: #fff; color: var(--brand-ink); }
.cta .btn:hover { background: #eef2ff; }

/* ---------- Related ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  color: var(--body); font-size: 15px; background: #fff;
}
.related a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aeb6c6; padding: 56px 0 36px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .02em; }
.site-footer a { color: #aeb6c6; display: block; padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 13px; color: #7c8499; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .cards.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { gap: 14px; }
  .nav a:not(.btn-sm) { display: none; }    /* keep only CTA on small screens */
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 18px; }
  h2 { font-size: 25px; }
  section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
