/* ========================================================================
   irq.co.kr — Landing page stylesheet
   Mobile-first, AdSense-friendly layout
   ======================================================================== */

:root {
  --bg: #0b1020;
  --bg-alt: #0f172a;
  --bg-soft: #111a33;
  --panel: #141d3a;
  --text: #e5e7eb;
  --text-dim: #9aa4b8;
  --muted: #6b7490;
  --border: #1f2a4a;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #34d399;
  --warn: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
          "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: #fff; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; color: var(--text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020; font-weight: 900;
}
.brand-mark.small { width: 24px; height: 24px; font-size: .85rem; }
.brand-name { font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-dim  { color: var(--text-dim); font-weight: 600; }

.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--text-dim); font-size: .94rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 10%, rgba(167,139,250,.18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
  padding: 4px 12px; border: 1px solid rgba(34,211,238,.35); border-radius: 999px;
}
.hero-title { margin-bottom: 20px; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  max-width: 780px; color: var(--text-dim); font-size: 1.08rem; line-height: 1.75;
  margin-bottom: 28px;
}
.hero-desc strong { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  list-style: none; padding: 20px 22px; margin: 0;
  background: rgba(20, 29, 58, .6); border: 1px solid var(--border); border-radius: var(--radius);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.45rem; color: #fff; letter-spacing: -0.01em; }
.hero-stats span   { font-size: .85rem; color: var(--text-dim); }

@media (max-width: 720px) {
  .hero { padding: 48px 0 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent; color: #fff; border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-link { background: transparent; color: var(--accent); padding: 10px 0; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
.kicker {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 8px;
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid.tight { gap: 18px; }

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

/* ---------- Service cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.45); box-shadow: var(--shadow-md); }
.card-eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 10px;
}
.card-lead { color: var(--text-dim); }
.card-lead strong { color: #fff; }
.feat {
  list-style: none; padding: 0; margin: 18px 0 22px;
  border-top: 1px dashed var(--border);
}
.feat li {
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  font-size: .95rem; color: var(--text-dim);
}
.feat li b { color: #fff; margin-right: 6px; }
.card-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Values ---------- */
.value {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.5rem; color: #0b1020;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 14px;
}
.value h3 { font-size: 1.15rem; }
.value p { color: var(--text-dim); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; counter-reset: step; }
.steps li {
  padding: 20px 24px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li h4 { color: var(--accent); margin-bottom: 6px; }
.steps li p  { margin: 0; color: var(--text-dim); }
.steps li code {
  background: rgba(34,211,238,.1); color: var(--accent);
  padding: 2px 6px; border-radius: 4px; font-size: .88em;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 32px; padding: 24px 28px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(167,139,250,.18));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.cta-band h3 { margin-bottom: 4px; }
.cta-band p { color: var(--text-dim); margin: 0; }
@media (max-width: 720px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--text-dim); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.tbl td b { color: var(--accent); }

.note {
  margin-top: 24px; padding: 16px 20px;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius-sm); color: #fde68a; font-size: .95rem;
}
.note strong { color: #fff; }

/* ---------- Posts (insights) ---------- */
.post {
  padding: 24px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.post-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); padding: 3px 10px; border: 1px solid rgba(34,211,238,.35);
  border-radius: 999px; margin-bottom: 12px;
}
.post p { color: var(--text-dim); margin: 0; font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: #fff; list-style: none;
  padding: 6px 0; position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 700; line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 4px; color: var(--text-dim); }

/* ---------- Ad slots ---------- */
.ad-slot {
  padding: 24px 0;
  background: var(--bg);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.ad-slot-banner { padding: 32px 0; }
.ad-slot-inline { padding: 40px 0; }
.ad-placeholder {
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font-size: .88rem; letter-spacing: .05em;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.015),
    rgba(255,255,255,.015) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* ---------- Footer ---------- */
.site-footer {
  background: #05070f;
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  color: var(--text-dim);
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--text-dim); font-size: .92rem; }
.foot-nav a:hover { color: #fff; text-decoration: none; }
.copyright { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Content pages (privacy/terms/about) ---------- */
.doc {
  padding: 60px 0 80px;
}
.doc h1 { margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.doc h2 { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.doc h3 { margin-top: 24px; color: var(--accent); }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc ul li, .doc ol li { margin: 6px 0; }
.doc a { color: var(--accent); }
