/* ============================================================
   Bekir Labs, Inc. — design system
   Dark ink · violet/blue · serif display · blueprint accents
   ============================================================ */

:root {
  --bg:       #07060e;
  --bg-2:     #0a0917;
  --surface:  #0e0d1c;
  --surface-2:#141227;
  --border:   #1e1c33;
  --border-2: #2e2a52;

  --text:     #eeedf6;
  --body:     #b6b3d0;
  --muted:    #807da2;
  --faint:    #7b7899;

  --violet:   #a99cff;
  --blue:     #5d8bf7;
  --grad:     linear-gradient(120deg, #a99cff 0%, #6d8bf7 55%, #4e7bf5 100%);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1120px;
  --pad: 24px;
  --r:   16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(169, 156, 255, .28); color: var(--text); }

a { color: var(--violet); text-decoration: none; }
a:hover { color: #c5bcff; }

img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */

h1, h2, h3 { color: var(--text); font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.display em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h2 em { font-style: italic; color: var(--violet); }

.h3 { font-size: 19px; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--grad);
  flex: none;
}

.mono { font-family: var(--mono); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 6, 14, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 28, 51, 0.7);
}
.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  color: var(--text) !important;
  font-size: 14px !important;
  transition: border-color .18s ease, background .18s ease;
}
.nav-cta:hover { border-color: var(--violet); background: rgba(169, 156, 255, .06); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 8, 20, .98);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px var(--pad); font-size: 16px; }
  .nav-cta { margin: 10px var(--pad) 0; justify-content: center; border-radius: 12px; }
  .nav-burger { display: inline-flex; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn-primary {
  color: #0a0918;
  background: linear-gradient(120deg, #c3b9ff, #7d9bff);
  box-shadow: 0 0 0 1px rgba(196, 186, 255, .25), 0 12px 40px -12px rgba(120, 130, 255, .45);
}
.btn-primary:hover {
  color: #0a0918;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(196, 186, 255, .4), 0 16px 48px -12px rgba(120, 130, 255, .6);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-2);
  background: rgba(20, 18, 39, .4);
}
.btn-ghost:hover { color: var(--text); border-color: var(--violet); background: rgba(169, 156, 255, .07); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 172px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg::before {
  /* blueprint grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 118, 170, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 118, 170, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-bg::after {
  /* violet glow */
  content: '';
  position: absolute;
  top: -320px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(ellipse at center, rgba(124, 108, 240, .17) 0%, rgba(78, 123, 245, .07) 45%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero .eyebrow { justify-content: center; margin-bottom: 30px; }
.hero .eyebrow::before { display: none; }
.hero-center { text-align: center; }
.hero-center .display { margin: 0 auto 28px; max-width: 900px; }
.hero-center .lede { margin: 0 auto 42px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-facts {
  margin-top: 84px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 56px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-facts span b { color: var(--muted); font-weight: 500; }

/* ---------- sections ---------- */

.section { padding: 104px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .h2 { max-width: 720px; }
.section-head .lede { margin-top: 20px; }

.hr-faint { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  /* a 3-card grid at 2 columns: let the odd card span the full row instead of orphaning */
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 13, 28, .5) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 28px;
  transition: border-color .22s ease, transform .22s ease;
}
.card:hover { border-color: var(--border-2); }
.card .h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-2);
  background: rgba(169, 156, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--violet);
}
.card-icon svg { width: 19px; height: 19px; }

.num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--faint);
  margin-bottom: 18px;
  display: block;
}

/* ---------- product feature panel ---------- */

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 55% at 85% -10%, rgba(124, 108, 240, .12), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.quote-strip {
  text-align: center;
  padding: 118px 0;
}
.quote-strip .q {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  color: var(--text);
  max-width: 840px;
  margin: 0 auto;
}
.quote-strip .q em { font-style: italic; color: var(--violet); }
@media (max-width: 480px) {
  /* narrow screens: drop the authored line breaks and let the quote wrap naturally */
  .quote-strip .q br { display: none; }
}

/* ---------- blog ---------- */

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 13, 28, .45) 100%);
  color: var(--body);
  transition: border-color .22s ease, transform .22s ease;
}
.post-card:hover { border-color: var(--violet); transform: translateY(-2px); color: var(--body); }
.post-card .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.post-card .title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--text); }
.post-card .excerpt { font-size: 14.5px; color: var(--muted); }
.post-card .more { font-size: 13.5px; font-weight: 600; color: var(--violet); margin-top: auto; padding-top: 6px; }

/* article page */
.article { max-width: 700px; margin: 0 auto; padding: 150px var(--pad) 90px; }
.article .meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.article h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 58px); line-height: 1.08; margin-bottom: 34px; letter-spacing: -0.01em; }
.article h2 { font-family: var(--serif); font-size: 30px; margin: 52px 0 18px; }
.article p { margin-bottom: 22px; font-size: 17px; line-height: 1.75; color: var(--body); }
.article strong { color: var(--text); font-weight: 600; }
.article blockquote {
  border-left: 2px solid var(--violet);
  padding: 6px 0 6px 24px;
  margin: 34px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
}
.article ul { margin: 0 0 22px 22px; }
.article li { margin-bottom: 10px; color: var(--body); }
.article .back { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.article-foot {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 44px;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 23, .8));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 18px; }
.footer .tag { font-family: var(--serif); font-size: 19px; color: var(--muted); font-style: italic; max-width: 300px; }
.footer h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer li a { color: var(--muted); font-size: 14.5px; transition: color .18s ease; }
.footer li a:hover { color: var(--text); }
.footer-base {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
}
.footer-base .mono { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- reveal on scroll ---------- */

.fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; }
}

/* ---------- page hero (interior pages) ---------- */

.page-hero { padding: 168px 0 72px; position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero .display { font-size: clamp(40px, 6vw, 68px); margin-bottom: 24px; }
.page-hero .lede { max-width: 620px; }

/* ---------- contact ---------- */

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 13, 28, .5) 100%);
  padding: 34px 30px;
}
.contact-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.contact-card .addr { font-size: 19px; font-weight: 600; color: var(--text); word-break: break-all; }
.contact-card .addr a { color: var(--text); }
.contact-card .addr a:hover { color: var(--violet); }
.contact-card p { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- misc ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 14px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(140, 140, 255, .8); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
