/* BorTechine Labs — light theme. Brand colors from the logo: ink #101115, mint #34d399 */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0f1115;
  --ink-2: #4a505c;
  --ink-3: #868c98;
  --line: #e7e9ed;
  --line-2: #d9dce2;
  --mint: #34d399;
  --mint-ink: #0b8a5d;
  --dark: #101115;
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.frame { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .frame { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.label { font-size: 13px; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(15,17,21,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-dark:hover { background: #23262e; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink-3); }
.btn-mint { background: var(--mint); color: var(--dark); }
.btn-mint:hover { background: #4ee0aa; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .frame { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.mark img { width: 32px; height: 32px; border-radius: 8px; }
.mark span { color: var(--ink-3); font-weight: 500; }
.top nav { display: flex; align-items: center; gap: 32px; }
.top nav a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav .btn { height: 38px; padding: 0 18px; font-size: 14px; color: #fff; }
.top nav .btn:hover { color: #fff; }
@media (max-width: 760px) { .top nav a.opt { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 104px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(640px 320px at 8% 0%, rgba(52,211,153,.12), transparent 70%),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  opacity: .55;
}
.hero .frame { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 0; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.042em; font-weight: 600; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--mint-ink); }
.hero .lead { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.store { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.store svg { color: var(--ink-2); flex: none; }

.art {
  position: relative; aspect-ratio: 1 / 1; max-height: 500px; width: 100%; justify-self: end; border-radius: 32px; overflow: hidden;
  background: var(--dark);
  box-shadow: 0 40px 80px -30px rgba(15,17,21,.45), 0 12px 24px -12px rgba(15,17,21,.25);
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .logo { position: absolute; left: 50%; top: 46%; width: 46%; transform: translate(-50%, -50%); }
.art .caption {
  position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .01em;
}
.art .caption b { color: rgba(255,255,255,.88); font-weight: 500; }
.art .caption i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: 8px; box-shadow: 0 0 10px var(--mint); vertical-align: 1px; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero .frame { grid-template-columns: 1fr; gap: 48px; }
  .art { justify-self: stretch; aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { text-wrap: balance; margin: 18px 0 0; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
.section h2 span { color: var(--ink-3); }
.section .intro { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 26em; }
@media (max-width: 720px) { .section { padding: 80px 0; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.about p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }
.facts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; overflow: hidden; }
.fact { padding: 22px 24px; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.fact .label { display: block; margin-bottom: 4px; }
.fact b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 0; }
  .fact:not(:last-child) { border-bottom: 1px solid var(--line); }
}

/* Services */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line-2); }
.service { padding: 32px 32px 0 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service .num { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.service .ic { margin-top: 28px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--dark); color: var(--mint); }
.service h3 { margin: 22px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.service p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; margin-top: 40px; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service .ic { margin-top: 16px; }
}

/* Contact (dark band) */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 64px; border-radius: 32px; background: var(--dark); color: #fff;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 300px at 100% 0%, rgba(52,211,153,.18), transparent 70%);
}
.contact .arcs { position: absolute; left: -160px; bottom: -200px; width: 520px; height: 520px; z-index: -1; opacity: .5; }
.contact .eyebrow { color: var(--mint); }
.contact h2 { margin: 18px 0 0; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
.contact p { margin: 16px 0 0; color: rgba(255,255,255,.62); max-width: 30em; }
.contact .box { padding: 28px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.contact .box .label { color: rgba(255,255,255,.5); margin-bottom: 6px; }
.contact .box a.mail { display: block; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; word-break: break-all; color: #fff; }
.contact .box .btn { margin-top: 22px; width: 100%; }
.contact .box small { display: block; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.45); text-align: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; } }

/* ---------- Footer ---------- */
.foot { margin-top: 112px; border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 16px 0 0; max-width: 24em; font-size: 14.5px; color: var(--ink-2); }
.foot h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot li a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.foot li a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .foot { margin-top: 80px; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.doc { padding: 72px 0 0; }
.doc .grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 80px; }
.doc aside .sticky { position: sticky; top: 104px; }
.doc aside ol { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; border-left: 1px solid var(--line); }
.doc aside li { padding: 5px 0 5px 16px; }
.doc aside a { color: var(--ink-2); }
.doc aside a:hover { color: var(--mint-ink); }
.doc article { max-width: 700px; min-width: 0; }
.doc h1 { margin: 18px 0 0; font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -0.04em; line-height: 1.06; font-weight: 600; }
.doc .dates { margin: 14px 0 40px; }
.doc .intro { font-size: 18px; color: var(--ink); line-height: 1.6; }
.doc h2 { margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.doc h2 .n { display: inline-block; min-width: 36px; font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--ink-3); }
.doc article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.doc article a:hover { text-decoration-color: var(--mint-ink); }
.doc .table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line-2); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 600; font-size: 13px; }
@media (max-width: 960px) { .doc .grid { grid-template-columns: minmax(0, 1fr); } .doc aside { display: none; } }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lost h1 { margin: 18px 0 12px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; font-weight: 600; }
.lost p { color: var(--ink-2); margin: 0 0 28px; }

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