/* ============================================================
   Bomy AI — official website (bomyai.com)
   Design tokens derived from the live molink_app theme:
   light "화이트" accent #7CB8FF on #F4F7FA / dark "다크" accent #4FC9FF on #0B0A09.
   No external fonts, no JS, no trackers. Static-first.
   ============================================================ */

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- design tokens (light default = app "화이트") ---- */
:root {
  --bg:        #F4F7FA;
  --surface:   #FFFFFF;
  --surface-2: #E9EEF3;
  --line:      #D6DEE7;
  --text:      #111820;
  --sub:       #55606B;
  --brand:     #7CB8FF;              /* app light accent (Safari blue) */
  --accent:    #1A5FBF;              /* accessible blue for links/small text on light */
  --accent-2:  #2A6FD6;
  --on-accent: #FFFFFF;
  --shadow:    0 1px 2px rgba(17,24,32,.05), 0 8px 30px rgba(17,24,32,.06);
  --shadow-lg: 0 10px 40px rgba(26,95,191,.14);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --pad:       clamp(20px, 5vw, 40px);
  --hairline:  1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0B0A09;
    --surface:   #171717;
    --surface-2: #202124;
    --line:      #303033;
    --text:      #EAF0F6;
    --sub:       #B9B2A8;            /* app dark sub-text (warm) */
    --brand:     #4FC9FF;            /* app dark accent */
    --accent:    #6FD2FF;
    --accent-2:  #4FC9FF;
    --on-accent: #08131A;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.5);
    --shadow-lg: 0 14px 44px rgba(79,201,255,.16);
  }
}

/* ---- base ---- */
body {
  font-family: 'Noto Sans KR', 'Noto Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---- skip link / a11y ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .wordmark { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--sub); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; }
.nav-cta:hover { background: var(--accent-2); }

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

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--accent); }

/* ---- generic sections ---- */
section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--accent); text-transform: none;
  background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  padding: 6px 12px; border-radius: 999px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -0.03em; margin-top: 18px; }
.section-head p { color: var(--sub); font-size: clamp(16px, 2.2vw, 19px); margin-top: 16px; }

/* ---- hero ---- */
.hero { padding-top: clamp(48px, 8vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 6.2vw, 62px); line-height: 1.06; letter-spacing: -0.04em; margin-top: 22px; }
.hero h1 .grad { background: linear-gradient(100deg, #4F9BF5, var(--brand) 55%, #9B8CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--sub); font-size: clamp(17px, 2.4vw, 21px); margin-top: 22px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--sub); display: inline-flex; align-items: center; gap: 8px; }

.hero-art { display: grid; place-items: center; }
.hero-card {
  width: min(360px, 78vw); aspect-ratio: 1 / 1; border-radius: 32px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 30%, var(--surface)), var(--surface) 70%);
  border: var(--hairline); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; position: relative;
}
.hero-card img { width: 56%; border-radius: 28px; box-shadow: var(--shadow); }

/* ---- feature grid ---- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: var(--hairline); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-2px); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; }
.card p { color: var(--sub); font-size: 15.5px; margin-top: 8px; }

/* ---- split feature (molink / privacy) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.panel {
  background: var(--surface); border: var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(28px, 4vw, 44px);
}
.checklist { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 15.5px; }
.checklist .ck { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-top: 2px;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--accent); }
.checklist .ck svg { width: 15px; height: 15px; }
.checklist b { display: block; color: var(--text); }
.checklist span { color: var(--sub); }

/* ---- device status ---- */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device { background: var(--surface); border: var(--hairline); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.device h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.device .chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .01em; }
.chip.beta { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); }
.chip.dev  { background: var(--surface-2); color: var(--sub); border: 1px solid var(--line); }
.device p { color: var(--sub); font-size: 14.5px; margin-top: 12px; }

/* ---- ecosystem ---- */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco .item { background: var(--surface); border: var(--hairline); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); }
.eco .item .dot { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.eco .item h3 { font-size: 16px; }
.eco .item p { color: var(--sub); font-size: 14px; margin-top: 6px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-inner { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), var(--surface) 72%);
  border: var(--hairline); border-radius: 28px; padding: clamp(40px, 6vw, 72px) var(--pad); box-shadow: var(--shadow-lg); }
.cta-inner h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.03em; }
.cta-inner p { color: var(--sub); margin-top: 14px; font-size: 18px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---- footer ---- */
.site-footer { border-top: var(--hairline); background: var(--surface); padding-block: 52px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--sub); font-size: 14.5px; max-width: 30ch; }
.footcol h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); margin-bottom: 14px; }
.footcol a { display: block; color: var(--text); font-size: 15px; padding: 6px 0; }
.footcol a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: var(--hairline); color: var(--sub); font-size: 13.5px; }

/* ---- legal / support content pages ---- */
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; }
.doc .meta { color: var(--sub); margin-top: 10px; font-size: 14.5px; }
.doc h2 { font-size: 22px; margin-top: 40px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--sub); font-size: 16px; margin-top: 12px; }
.doc ul { padding-left: 22px; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line)); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.notice svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.notice p { color: var(--text); margin: 0; font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-top: 40px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; }
  .eco { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .eco { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
