/* BittProduction website: static, no JavaScript, no cookies, no external resources (CSP style-src 'self').
   Font: Figtree (SIL OFL 1.1, fonts/Figtree-OFL.txt), bundled locally. */

@font-face { font-family: "Figtree"; src: url("fonts/figtree_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree_extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f6f6fb;
  --bg-2: #eeeef7;
  --surface: #ffffff;
  --ink: #15142b;
  --muted: #5d5c78;
  --line: #e2e1ef;
  --brand: #4f46e5;
  --brand-2: #0ea5b7;
  --brand-soft: #e8e7fd;
  --on-brand-soft: #3730a3;
  --shadow: 0 1px 2px rgba(21, 20, 43, .05), 0 14px 36px -14px rgba(21, 20, 43, .2);
  --shadow-lg: 0 2px 4px rgba(21, 20, 43, .05), 0 40px 80px -28px rgba(79, 70, 229, .4);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c1a;
    --bg-2: #131226;
    --surface: #18172e;
    --ink: #ecebfa;
    --muted: #a4a3c2;
    --line: #2a2946;
    --brand: #8b84ff;
    --brand-2: #3fd0de;
    --brand-soft: #25234a;
    --on-brand-soft: #c9c5ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -28px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* Header */
body > header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 14px max(16px, calc((100% - 1128px) / 2));
  background: transparent;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { display: block; border-radius: 9px; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 22px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav a.cta { color: var(--bg); background: var(--ink); padding: 8px 16px; border-radius: 999px; }
nav a.cta:hover { color: var(--bg); }
@media (max-width: 640px) { nav .hide-sm { display: none; } }

/* Layout */
main, footer { max-width: 880px; margin: 0 auto; padding: 0 16px; }
body.home main { max-width: none; padding: 0; }
body.home footer { max-width: 1160px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section.no-top { padding-top: 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; margin: 0 0 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 104px 0 120px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .7; }
body.home { background: radial-gradient(900px 560px at 50% -160px, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%) no-repeat, var(--bg); }
.hero .wrap { text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; margin: 26px auto 22px; max-width: 900px; }
.grad { background: linear-gradient(95deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2))); color: #fff; box-shadow: var(--shadow-lg); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--on-brand-soft); margin-bottom: 16px; }
.principle h3 { margin: 0 0 6px; font-size: 1.12rem; }
.principle p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Apps */
.apps { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }
.app { position: relative; overflow: hidden; border-radius: 28px; padding: 36px; min-height: 360px; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .app { padding: 26px; } }
.app h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin: 14px 0 8px; letter-spacing: -0.03em; }
.app p { margin: 0 0 22px; max-width: 440px; }
.app .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.app .meta li { font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.app .link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 15px; display: block; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.app.horento { background: radial-gradient(700px 400px at 100% 0%, #13788f, transparent 60%), linear-gradient(160deg, #0b3f4d, #0e5a6e); color: #e8f4f7; }
.app.horento p { color: #c4dde4; }
.app.horento .meta li { background: rgba(255, 255, 255, .1); color: #e8f4f7; border: 1px solid rgba(255, 255, 255, .16); }
.app.horento .link { background: #fff; color: #0e5a6e; }
.app.horento .shape { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.app.salvento { background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); color: var(--ink); }
.app.salvento p { color: var(--muted); }
.app.salvento .meta li { background: var(--brand-soft); color: var(--on-brand-soft); }
.app.salvento .soon { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--muted); font-size: .95rem; }
.salvento-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.portrait { aspect-ratio: 1; border-radius: 32px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: var(--shadow-lg); max-width: 300px; }
@media (max-width: 820px) { .portrait { max-width: 160px; border-radius: 26px; } .portrait span { font-size: 3.4rem; } }
.portrait span { font-size: 6rem; font-weight: 800; color: #fff; letter-spacing: -0.05em; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 14px; }
.about p { color: var(--muted); font-size: 1.08rem; margin: 0 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; }

/* Contact band */
.contact { text-align: center; border-radius: 32px; padding: 64px 24px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; top: -55%; right: -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); }
.contact h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.03em; }
.contact p { margin: 0 auto 28px; max-width: 520px; opacity: .8; font-size: 1.08rem; }
.contact .btn { background: var(--bg); color: var(--ink); word-break: break-all; }

/* Legal subpages */
article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 28px; margin-top: 16px; box-shadow: var(--shadow); }
@media (max-width: 640px) { article { padding: 4px 18px 20px; } }
article h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-top: 28px; }
article h2 { font-size: 1.3rem; margin-top: 32px; }
article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
article th, article td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.draft { border: 2px dashed #d97706; background: color-mix(in srgb, #d97706 12%, var(--surface)); border-radius: 12px; padding: 12px 16px; }

/* Footer */
footer { margin-top: 64px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer a { color: var(--muted); margin-right: 18px; text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.foot a { display: block; margin: 0 0 6px; }
.foot a.brand { display: inline-flex; margin: 0; }
.foot p { margin: 8px 0 0; max-width: 340px; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
