/* InfoDev Solutions Limited — site styles (no external dependencies) */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526077;
  --border: #e3e8ef;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-ink: #1d4ed8;
  --hero-bg: #0b1220;
  --hero-text: #e6edf7;
  --hero-muted: #9fb0c8;
  --radius: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --surface: #111a2e;
    --text: #e6edf7;
    --muted: #9fb0c8;
    --border: #1f2a40;
    --brand: #3b82f6;
    --brand-ink: #60a5fa;
  }
}

*, *::before, *::after { 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.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.brand span { line-height: 1.15; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav { gap: 14px; } .nav .hide-sm { display: none; } }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 13px; }
.lang-switch a { padding: 3px 9px; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--border); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (max-width: 720px) { .header-right { gap: 12px; } }
@media (max-width: 560px) { .site-header .nav { display: none; } }

/* Chinese typography */
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; }
:lang(zh) body { line-height: 1.8; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
:lang(zh) .hero h1 { line-height: 1.25; }

/* Hero */
.hero {
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(6, 182, 212, .25), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(37, 99, 235, .3), transparent 60%),
    var(--hero-bg);
  color: var(--hero-text);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--brand-2); border: 1px solid rgba(6,182,212,.35); border-radius: 999px; padding: 4px 12px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 820px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--hero-muted); max-width: 680px; margin: 0 0 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { color: var(--hero-text); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; font-size: 13px; color: var(--hero-muted); }
.hero-meta strong { display: block; color: var(--hero-text); font-size: 15px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin: 14px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }

.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist li strong { color: var(--text); }

.code-panel {
  background: #0b1220; color: #cbd5e1; border-radius: var(--radius); padding: 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.8;
  border: 1px solid #1f2a40; overflow-x: auto;
}
.code-panel .k { color: #60a5fa; } .code-panel .s { color: #34d399; } .code-panel .c { color: #64748b; }

.products .card { display: flex; flex-direction: column; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); margin-top: 16px; }

.contact-box { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact-box .card h3 { margin-top: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.contact-box .card p { color: var(--text); font-size: 15px; }
.contact-box .card p.desc { color: var(--muted); font-size: 14px; margin-top: 8px; }
.contact-box address { font-style: normal; }
.company-card { grid-column: 1 / -1; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* Legal pages */
.legal-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 6px 0 8px; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 20px 96px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static !important; } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-alt); }
.note {
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); background: color-mix(in srgb, var(--brand) 6%, var(--bg));
  border-radius: var(--radius); padding: 16px 20px; margin: 20px 0;
}
.note p { margin: 0; }
.caps { text-transform: uppercase; font-size: 14px; }
.legal-links { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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