/* Taybuta — dev-studio landing.
   Aesthetic: Vercel / Linear / Cursor territory. Near-black ground,
   gradient glows, tight modern type, monospace in the details.
   Inter + JetBrains Mono via Google Fonts, no build step. */

:root {
  --bg: #0A0A0A;
  --bg-2: #101013;
  --bg-3: #17171B;
  --surface: #1A1A1F;
  --surface-hi: #232329;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --ink: #FAFAFA;
  --ink-2: #B4B4B8;
  --ink-3: #7A7A80;
  --accent: #F59E0B;           /* amber */
  --accent-hot: #FBBF24;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --brand-bg: #34D399;          /* Bagpipe portfolio tint */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.brand__mark--sm { width: 22px; height: 22px; font-size: 13px; border-radius: 5px; }

.brand__word {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: flex; align-items: center; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { padding: 12px 20px; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease,
    border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-hi);
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink-3);
}

/* ── Pill ─────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.10); }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 128px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.hero__glow--a {
  top: -240px;
  left: -160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.5), transparent 60%);
}
.hero__glow--b {
  bottom: -320px;
  right: -200px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 60%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero__wrap { position: relative; }

.hero__title {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 900px;
}

.hero__accent {
  background: linear-gradient(120deg, var(--accent) 0%, #FDE68A 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero__sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 40px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── Terminal ─────────────────────────────────────────── */
.terminal {
  max-width: 720px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal__dot--r { background: #FF5F57; }
.terminal__dot--y { background: #FEBC2E; }
.terminal__dot--g { background: #28C840; }

.terminal__title {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.terminal__body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
}

.terminal__line { color: var(--ink); }
.terminal__line--out { color: var(--ink-3); padding-left: 16px; }
.terminal__prompt { color: var(--accent); margin-right: 8px; }
.terminal__cmd { color: var(--brand-bg); }
.terminal__arg { color: var(--ink-2); }
.terminal__caret {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Trust bar ────────────────────────────────────────── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-2);
}
.trust__wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust__label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}
.trust__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust__item {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.trust__sep { color: var(--ink-3); }

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-2); }

.section__head {
  max-width: 720px;
  margin: 0 0 64px;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 20px;
}
.eyebrow--center { text-align: center; }

.section__title {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--ink);
}

.section__sub {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

/* ── Bento grid ───────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento .card { grid-column: span 1; }
.bento .card--wide { grid-column: span 2; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card, .bento .card--wide { grid-column: 1; }
}

.card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease,
    background-color 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}

.card__ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__ico svg { width: 22px; height: 22px; }

.card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}

.card__body {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.card__tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Work entries ─────────────────────────────────────── */
.work {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--ink);
  transition: transform 200ms ease, border-color 200ms ease;
}

.work:hover {
  transform: translateY(-2px);
  border-color: var(--brand-bg);
  color: var(--ink);
}

.work--placeholder { border-style: dashed; opacity: 0.6; }
.work--placeholder:hover { transform: none; border-color: var(--border); }

@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
}

.work__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(52, 211, 153, 0.1);
  color: var(--brand-bg);
  border: 1px solid rgba(52, 211, 153, 0.28);
  align-self: flex-start;
}
.work__badge--soon {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.28);
}

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--live { background: var(--brand-bg); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.dot--soon { background: var(--accent); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

.work__year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: 0.06em;
}

.work__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--ink);
}
.work__title--muted { color: var(--ink-2); }

.work__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.work__desc {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 600px;
}
.work__desc--muted { color: var(--ink-3); }

.work__cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Founders ─────────────────────────────────────────── */
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .founders { grid-template-columns: 1fr; } }

.founder {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 200ms ease, border-color 200ms ease;
}
.founder:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}

.founder__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.03em;
}
.founder__avatar--a { background: linear-gradient(135deg, #F59E0B, #FDE68A); }
.founder__avatar--b { background: linear-gradient(135deg, #34D399, #A7F3D0); }
.founder__avatar--c { background: linear-gradient(135deg, #818CF8, #C7D2FE); }

.founder__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.founder__role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

/* ── Open source grid ─────────────────────────────────── */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .os-grid { grid-template-columns: 1fr; } }

.os-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease;
}
.os-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.os-card--muted { opacity: 0.6; border-style: dashed; }
.os-card--muted:hover { transform: none; border-color: var(--border); }

.os-card__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.os-card__type,
.os-card__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.os-card__type { color: var(--accent); }
.os-card__status { color: var(--ink-3); }

.os-card__title {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.os-card__title--muted { color: var(--ink-2); }

.os-card__desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}
.os-card__desc--muted { color: var(--ink-3); }

/* ── Stats strip ──────────────────────────────────────── */
.stats-strip {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 720px) { .stats-strip__grid { grid-template-columns: repeat(2, 1fr); } }

.big-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(120deg, var(--ink), var(--ink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.big-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

/* ── CTA ──────────────────────────────────────────────── */
.section--cta {
  padding: 128px 0;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.06), transparent 70%), var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta__wrap { max-width: 640px; margin: 0 auto; text-align: center; padding: 0 32px; }

.cta__title {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
}

.cta__sub {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 40px;
  line-height: 1.55;
}

.cta__note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 24px 0 0;
}

/* ── Footer ───────────────────────────────────────────── */
.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.foot__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 720px) { .foot__inner { grid-template-columns: 1fr; gap: 32px; } }

.foot__brand .brand { margin-bottom: 12px; }

.foot__tag {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 500px) { .foot__cols { grid-template-columns: 1fr; } }

.foot__col { display: flex; flex-direction: column; gap: 8px; }

.foot__label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}

.foot__col a { color: var(--ink-3); font-size: 14px; }
.foot__col a:hover { color: var(--accent); }

.foot__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.foot__bottom-inner {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .work:hover,
  .founder:hover, .os-card:hover { transform: none; }
}
