/* The CMS pages' own look (cms/base.html). The shop keeps oscar's Bootstrap. */
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0;
  --bg: #ffffff; --bg-soft: #f8fafc; --night: #0b1120; --night-2: #111a2e;
  --accent: #3b82f6; --accent-2: #6366f1; --brand: #ed1c24;
  --radius: 16px; --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo",
          "Malgun Gothic", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65;
       -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82);
               backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
               border-bottom: 1px solid rgba(226,232,240,.8); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a, .nav-right a.link { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav-right a.link:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right form { margin: 0; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--ink-2); font-size: .9rem; display: flex; align-items: center; gap: 6px;
                padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: #cbd5e1; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 150px;
           background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.12); }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.lang li a:hover { background: var(--bg-soft); text-decoration: none; }
.lang li a.active { color: var(--accent); font-weight: 600; }
.menu-toggle { display: none; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600;
       font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
       font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(15,23,42,.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #94a3b8; }
.on-dark .btn-primary { background: #fff; color: var(--ink); }
.on-dark .btn-ghost { color: #e2e8f0; border-color: rgba(255,255,255,.22); }
.on-dark .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 56px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
           color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(99,102,241,.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,.25), transparent 60%), var(--night); color: #e2e8f0; padding: 112px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
                background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
                background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: #a5b4fc; background: rgba(99,102,241,.14); border: 1px solid rgba(129,140,248,.3); padding: 6px 14px;
                 border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; color: #fff; }
.hero p.lead { font-size: 1.18rem; color: #94a3b8; max-width: 36rem; margin: 0; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0,0,0,.45); }

/* the screen mock-up in the hero: an LVGL-looking UI drawn in CSS */
.device { background: linear-gradient(160deg, #1f2937, #0f172a); border-radius: 26px; padding: 14px;
          box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
.screen { aspect-ratio: 800 / 480; border-radius: 14px; overflow: hidden; background: #0c1220; display: grid;
          grid-template-rows: auto 1fr; font-size: 12px; color: #cbd5e1; }
.screen .bar { display: flex; justify-content: space-between; padding: 8px 14px; background: #121a2b; color: #8ea0b8; }
.screen .body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 14px; }
.gauge { border-radius: 12px; background: #121a2b; display: grid; place-items: center; }
.gauge .ring { width: 58%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
               background: conic-gradient(#3b82f6 0 72%, #243044 72% 100%); }
.gauge .ring span { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #121a2b; display: grid; place-items: center;
                    font-size: 1.6em; font-weight: 700; color: #fff; }
.tiles { display: grid; gap: 10px; }
.tile { border-radius: 10px; background: #182236; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.tile i { width: 34px; height: 18px; border-radius: 999px; background: #3b82f6; position: relative; }
.tile i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tile i.off { background: #374151; }
.tile i.off::after { right: auto; left: 2px; }
.tile.slider b { flex: 1; margin-left: 10px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #6366f1 60%, #243044 60%); }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.08); border-color: #cbd5e1; }
.card h3 { font-size: 1.15rem; margin: 18px 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 18px rgba(79,70,229,.25); }
.icon svg { width: 22px; height: 22px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: .9rem; font-weight: 800;
                color: var(--accent); margin-bottom: 14px; letter-spacing: .05em; }
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product { display: block; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
           transition: transform .2s, box-shadow .2s; }
.product:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.product .thumb { aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; }
.product .thumb img { max-height: 100%; object-fit: contain; }
.product .info { padding: 16px 18px 20px; }
.product h3 { font-size: 1rem; margin: 0 0 6px; }
.product .price { color: var(--ink-2); font-weight: 600; }
.more { margin-top: 32px; }

/* call to action */
.cta { border-radius: 28px; padding: 64px; color: #e2e8f0; text-align: center;
       background: radial-gradient(700px 300px at 50% 0%, rgba(99,102,241,.45), transparent 70%), var(--night); }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.02em; margin: 0 0 14px; }
.cta p { color: #94a3b8; font-size: 1.1rem; margin: 0 auto; max-width: 36rem; }
.cta .btn-row { justify-content: center; }

/* page header + prose (content pages, blog) */
.page-head { padding: 88px 0 40px; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
/* heading/text/image/embed blocks read as one column of prose */
.flow { padding: 8px 0; }
.flow .prose h2 { margin-top: 28px; }
.page-head + .flow, .section + .flow { padding-top: 56px; }
.flow:last-child { padding-bottom: 96px; }
.flow + .section { padding-top: 56px; }
.prose { max-width: 760px; font-size: 1.06rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 12px; }
.prose p { margin: 0 0 1em; }
.prose img, .embed iframe { border-radius: var(--radius); }
.embed { max-width: 760px; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post { display: block; color: inherit; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.post:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.post time { color: var(--muted); font-size: .88rem; }
.post h2 { font-size: 1.3rem; margin: 6px 0 8px; letter-spacing: -.01em; }
.post p { color: var(--muted); margin: 0 0 14px; }
.post span { color: var(--accent); font-weight: 600; font-size: .92rem; }
.messages { list-style: none; margin: 16px auto 0; padding: 0 20px; max-width: var(--max); }
.messages li { padding: 12px 16px; border-radius: 12px; background: #eff6ff; color: #1e40af; }

/* footer */
.site-footer { background: var(--night); color: #94a3b8; padding: 72px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .legal { border-top: 1px solid rgba(148,163,184,.15); margin-top: 48px; padding-top: 24px; font-size: .85rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
  .device { transform: none; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
  .nav, .nav-right { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-header.open .nav, .site-header.open .nav-right { display: flex; }
  .lang ul { position: static; box-shadow: none; }
  .section { padding: 64px 0; }
  .grid, .steps, .posts { grid-template-columns: 1fr; }
  .products { gap: 14px; }
  .cta { padding: 40px 24px; border-radius: 20px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
