/* XEEIN News: the shared XEEIN dark gray look (copied from soft.xeein.com/style.css), fonts kept on this site
   so the share picture can always draw them, then the news parts at the end. */
@font-face { font-family: 'Anton'; src: url(/fonts/anton-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 650 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }
/* Sinhala (the font loads only when Sinhala is shown) */
@font-face { font-family: 'Noto Sans Sinhala'; src: url(/fonts/noto-sans-sinhala-sinhala-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans Sinhala'; src: url(/fonts/noto-sans-sinhala-sinhala-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --bg: #121316;
  --panel: #1b1d21;
  --panel-2: #22252a;
  --line: #2c2f35;
  --text: #e8e9eb;
  --muted: #9a9ea6;
  --dim: #6c7079;
  --accent: #ff8a1f;
  --accent-ink: #141414;
  --green: #3ecf6e;
  --red: #ff4d4d;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
/* the XEEIN Soft logo: one long wordmark. The orange > < brackets of the XEEIN Soft icon are the X,
   then EEIN, then Soft in orange. Colours fixed, so it looks the same on every product page. */
.top .brand { display: flex; align-items: center; gap: 0; color: #f2f3f5; font-weight: 900; font-size: 1.5rem; line-height: 1; letter-spacing: .03em; }
.brand:hover { text-decoration: none; }
.brand-x { width: 1.12em; height: .95em; margin-right: .06em; overflow: visible; filter: drop-shadow(0 0 10px rgba(255,138,31,.30)); transition: transform .2s; }
.brand-x path { fill: none; stroke: #ff8a1f; stroke-width: 6.2; stroke-linecap: round; stroke-linejoin: round; }
.brand:hover .brand-x { transform: scale(1.06); }
.brand-word { color: #f2f3f5; }
.brand-soft { color: #ff8a1f; font-weight: 600; margin-left: .32em; letter-spacing: .01em; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; }
.nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.top .nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.top .nav a:hover, .top .nav a.on { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .top .wrap { gap: 12px; } .nav { gap: 14px; } }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 96px 0 80px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 100%; max-width: 280px; margin-left: auto; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { max-width: 120px; margin: 0; order: -1; } }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn:hover { text-decoration: none; background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ff9a3d; }
.btn svg { width: 18px; height: 18px; }
.btn.soon, .btn.soon:hover { background: var(--panel-2); border-color: var(--line); color: var(--dim); cursor: not-allowed; user-select: none; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card .head img { width: 44px; height: 44px; flex: none; }
.card .head h3 { margin: 0; }
.card .tag { font-size: .75rem; color: var(--dim); font-weight: 500; }
.card.big { padding: 32px; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; }
.card.big img { width: 96px; height: 96px; }
@media (max-width: 560px) { .card.big { grid-template-columns: 1fr; } .card.big img { width: 64px; height: 64px; } }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.pill.accent { color: var(--accent); border-color: rgba(255,138,31,.4); }
.pill.green { color: var(--green); border-color: rgba(62,207,110,.4); }

/* lists */
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ul.ticks li b { color: var(--text); font-weight: 600; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; gap: 32px; } }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 1.6rem; color: var(--accent); font-weight: 800; }
.stat span { color: var(--muted); font-size: .875rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* table */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table td, .table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; width: 36%; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
ol.steps li b { color: var(--text); }

code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }

/* screenshots: a flat window frame */
.shot { margin: 0; background: #0d0e10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.shot img { width: 100%; height: auto; display: block; }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span:first-child { background: var(--accent); }
.shot-bar b { margin-left: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hero-shot { margin-top: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.tabs button { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.gallery a:hover { text-decoration: none; }
.gallery a img { cursor: zoom-in; }
.shot-text img { width: 48px; height: 48px; margin-bottom: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; gap: 20px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--dim); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* placeholders: dashed orange only on this PC (localhost), never online */
html.draft .todo { outline: 1px dashed rgba(255,138,31,.55); outline-offset: 2px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pills .pill { font-size: .85rem; padding: 4px 12px; }
footer .fb { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- news: a post per day, its picture beside the text ---------- */
.news-hero { padding: 56px 0 72px; }
.news-hero h1 { max-width: 760px; }
.up-lang { display: inline-flex; gap: 4px; padding: 4px; margin-top: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.up-lang button { border: 0; background: transparent; color: var(--muted); font: 600 .95rem/1 Inter, system-ui, sans-serif; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.up-lang button:hover { color: var(--text); }
.up-lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.up-lang button[lang="si"] { font-family: 'Noto Sans Sinhala', Inter, sans-serif; }
.up-list { display: grid; gap: 40px; margin-top: 36px; }
.up-post { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.up-canvas { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #0d0e10; }
.up-body .eyebrow { margin-bottom: 6px; }
.up-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; margin: .2em 0 .5em; }
.up-title a { color: inherit; }
.up-sum { font-size: 1.08rem; margin: 0 0 12px; color: var(--text); }
.up-src a { color: var(--muted); text-decoration: underline; }
.up-tags { color: var(--accent); font-weight: 600; margin: 10px 0 0; }
.up-credit a { color: var(--dim); }
.up-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.up-actions .btn { font: inherit; font-weight: 600; cursor: pointer; }
.up-post [lang="si"] { font-family: 'Noto Sans Sinhala', Inter, sans-serif; }
.up-note { font-size: .85rem; }
@media (max-width: 760px) { .up-post { grid-template-columns: 1fr; gap: 20px; padding: 14px; } .news-hero { padding: 36px 0 56px; } .up-actions .btn { flex: 1 1 auto; justify-content: center; } }
