:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --card: #ffffff;
  --ink: #12161d;
  --ink-2: #2e2e2e;
  --muted: #5c6370;
  --line: #e3e6eb;
  --accent: #8f5b00;
  --brand: #ffa400;
  --accent-soft: #fff3d9;
  --ok: #138a4b;
  --ok-soft: #e3f5ea;
  --btn-bg: #0d1017;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(13, 16, 23, .04), 0 8px 24px rgba(13, 16, 23, .06);
  --radius: 14px;
  --max: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d121a;
  --bg-alt: #121a26;
  --card: #172130;
  --ink: #f2f4f7;
  --ink-2: #d5d9e0;
  --muted: #9aa2b1;
  --line: #223042;
  --accent: #ffa400;
  --brand: #ffa400;
  --accent-soft: #2a2110;
  --ok: #4cc685;
  --ok-soft: #12291c;
  --btn-bg: #f2f4f7;
  --btn-ink: #0b0d12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand { gap: 6px; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 19px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; }
:root[data-theme="dark"] .theme-light { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; background: var(--card); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; right: 0; top: 44px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 150px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg-alt); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.head { max-width: 720px; margin-bottom: 48px; }
.head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.035em; }
.hero h1 span { color: var(--muted); }
.hero .lead { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.console { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; position: relative; }
.console::before { content: ""; position: absolute; inset: -40px -40px auto auto; width: 220px; height: 220px; background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: -1; }
.console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.console-top strong { font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.row .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; }
.row .ico svg { width: 18px; height: 18px; }
.row b { display: block; font-size: 14px; }
.row span { font-size: 13px; color: var(--muted); }
.row em { color: var(--ink); font-style: normal; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.approval { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; font-weight: 500; }
.approval .btn { height: 32px; padding: 0 14px; font-size: 13px; }
.caption { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* Shift */
.shift { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shift h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; max-width: 820px; }
.shift > .wrap > p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 720px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cols3 > div { padding: 28px; background: var(--card); }
.cols3 > div + div { border-left: 1px solid var(--line); }
.cols3 h3 { font-size: 20px; font-weight: 600; }
.cols3 h3 span { color: var(--muted); font-weight: 400; }
.cols3 p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.cols3 .us { background: var(--btn-bg); color: var(--btn-ink); }
.cols3 .us h3 span, .cols3 .us p { color: color-mix(in srgb, var(--btn-ink) 72%, transparent); }

/* Cards */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.card h3 { font-size: 20px; font-weight: 600; margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }

.card.service { display: flex; flex-direction: column; padding: 32px; }
.card.service ul { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.card.service li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.card.service li svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.card.service small { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 24px 28px 0; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--brand); }
.step .n { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 22px; font-weight: 600; margin-top: 10px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Why */
.why .card h3 { margin-top: 0; }
.why .card { padding: 32px; }
.why .k { display: block; width: 28px; height: 3px; background: var(--brand); border-radius: 2px; margin-bottom: 18px; }

/* Platform */
.platform-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
.platform-main .txt { padding: 44px; }
.platform-main .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.platform-main h3 { font-size: 36px; font-weight: 600; margin-top: 16px; }
.platform-main p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.platform-main .btn { margin-top: 28px; }
.modules { background: var(--bg-alt); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; border-left: 1px solid var(--line); }
.modules span { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.platform-others { margin-top: 20px; }
.platform-others .card h3 { margin-top: 0; }
.platform-others small { display: block; margin-top: 16px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* Stories */
.story { display: flex; flex-direction: column; }
.story .who { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.story h3 { margin-top: 12px; font-size: 22px; }
.story .bar { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); margin-bottom: 22px; width: 64px; }

/* News */
.news-item { display: flex; flex-direction: column; text-decoration: none; }
.news-item .meta { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.news-item .meta b { color: var(--accent); font-weight: 600; }
.news-item h3 { margin-top: 12px; font-size: 19px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more svg { width: 16px; height: 16px; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about .text { font-size: 18px; color: var(--ink-2); margin-top: 18px; }
.facts { margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.founder { display: flex; gap: 20px; align-items: flex-start; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: grid; place-items: center; font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.founder h3 { font-size: 22px; font-weight: 600; }
.founder .role { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 4px; }
.founder p { color: var(--muted); margin-top: 10px; }

.about-t { width: 72px; height: 72px; margin-bottom: 20px; }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; max-width: 820px; margin: 0 auto; }
.contact p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.contact .cta-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.foot .foot-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }


/* Logo strip */
.logos { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.logos p { text-align: center; color: var(--muted); font-size: 14px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; margin-top: 26px; }
.logo-row img { height: 30px; width: auto; opacity: .55; transition: opacity .2s ease; }
.logo-row img.sq { height: 46px; }
.logo-row img:hover { opacity: .9; }
.wordmark { font-size: 19px; white-space: nowrap; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }
:root[data-theme="dark"] .logo-row img { filter: invert(1); opacity: .6; }

/* Stats */
.stats-band { padding: 0 0 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-top: 2px solid var(--brand); padding-top: 18px; }
.stat strong { display: block; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 280px; }

/* Stories with images */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature img { width: 100%; height: 100%; min-height: 300px; max-height: 420px; object-fit: cover; object-position: left center; }
.feature-txt { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-txt h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; margin-top: 12px; }
.feature-txt p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.story-grid { margin-top: 20px; }
.card.story { padding: 0; overflow: hidden; }
.card.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-txt { padding: 28px; }
.who { font-size: 13px; font-weight: 600; color: var(--muted); }
.story-txt h3, .mini h3 { margin-top: 10px; font-size: 21px; }
blockquote { margin: 22px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--accent); }
blockquote p { color: var(--ink) !important; font-size: 17px !important; font-style: italic; margin: 0 !important; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--muted); }
.note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Products */
.prod-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.card.product { display: flex; gap: 18px; align-items: flex-start; }
.card.product img { flex: none; object-fit: contain; }
.card.product h3 { margin-top: 0; }
img.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: none; }


/* Inner pages */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; margin-top: 6px; max-width: 900px; }
.page-head p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 720px; }
section.tight { padding: 8px 0 96px; }
.wrap.narrow { max-width: 860px; }
h2.sub { font-size: 24px; font-weight: 600; margin: 56px 0 20px; }
a.link-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.feature.link-card { display: grid; }
a.link-card:hover { border-color: var(--brand); }
a.link-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.read { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.read svg { width: 16px; height: 16px; }
.story-txt { display: flex; flex-direction: column; flex: 1; }
.story-txt .read { margin-top: auto; padding-top: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.story-page .who { display: block; }
.story-hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: left center; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 40px; }
.story-stats { margin-bottom: 8px; }
.story-stats:empty { display: none; }
.story-page blockquote { margin: 40px 0 0; }
.story-page blockquote p { font-size: 22px !important; line-height: 1.45; }
.prose h2 { font-size: 26px; font-weight: 600; margin: 48px 0 12px; }
.prose p { font-size: 18px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.7; }

.stat-cover { aspect-ratio: 16 / 9; background: #0d121a; color: #f2f4f7; display: grid; align-content: center; gap: 18px; padding: 28px 32px; }
.stat-cover div { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid #223042; padding-top: 12px; }
.stat-cover strong { font-size: 34px; font-weight: 600; color: #ffa400; letter-spacing: -.02em; min-width: 120px; }
.stat-cover span { color: #b6bdca; font-size: 15px; }

.card.news-item { padding: 0; overflow: hidden; }
.news-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.news-item:hover .news-media img { transform: scale(1.03); }
.news-media.tile { display: grid; place-items: center; }
.news-media.tile svg { width: 56px; height: 56px; stroke-width: 1.4; }
.tile-company { background: linear-gradient(135deg, #0d121a, #223042); color: #ffa400; }
.tile-clients { background: linear-gradient(135deg, #fff3d9, #ffd98a); color: #7a4d00; }
.tile-education { background: linear-gradient(135deg, #e6eefc, #c9d9f7); color: #223042; }
.tile-community { background: linear-gradient(135deg, #e3f5ea, #bfe6cd); color: #0f5a32; }
.tile-events { background: linear-gradient(135deg, #223042, #2e2e2e); color: #f2f4f7; }
.news-txt { padding: 22px 24px 26px; }
.news-txt h3 { margin-top: 10px; font-size: 19px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live i { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav, .tools .btn-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .top .wrap { justify-content: space-between; }
  .nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero .wrap, .about .wrap, .platform-main { grid-template-columns: 1fr; }
  .modules { border-left: 0; border-top: 1px solid var(--line); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .g2, .g3, .g4, .cols3, .stats { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 0; max-height: 240px; aspect-ratio: 16 / 9; }
  .feature-txt { padding: 28px; }
  .logo-row { gap: 22px 32px; }
  .logo-row img { height: 24px; }
  .logo-row img.sq { height: 38px; }
  .cols3 > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .platform-main .txt, .modules { padding: 28px; }
  .modules { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot { grid-template-columns: 1fr; }
  .lang summary span { display: none; }
  .brand small { display: none; }
}
