:root {
  --bg: #060911;
  --bg-elevated: #0b111e;
  --bg-card: rgba(15, 23, 42, 0.68);
  --bg-card-hover: rgba(19, 30, 53, 0.88);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.36);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #10b981;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 18% -8%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(850px 480px at 85% 4%, rgba(56, 189, 248, 0.12), transparent 62%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 15%, #000 35%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 17, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.68rem 1.2rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
  border-color: rgba(52, 211, 153, 0.45);
  color: #03120e;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.32);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(30, 41, 59, 0.75);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 4.8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #7dd3fc;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.55rem);
  line-height: 1.09;
  letter-spacing: -0.032em;
  margin: 0 0 1.2rem;
}

.gradient-text {
  background: linear-gradient(120deg, #34d399 0%, #38bdf8 60%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.metric-lbl {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Hero Architecture Blueprint Console */
.blueprint-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 14, 26, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.blueprint-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-sky), transparent);
}

.bp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bp-dots {
  display: flex;
  gap: 6px;
}

.bp-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}

.bp-layers {
  display: grid;
  gap: 0.7rem;
}

.bp-layer {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bp-layer-title {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.bp-layer-sub {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.bp-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.24);
  white-space: nowrap;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.4rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #34d399;
  margin-bottom: 0.55rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.18;
}

.section-desc {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0.5rem 0 0;
}

/* Portfolio Filter & Cards */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  appearance: none;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-chip[aria-pressed="true"] {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.42);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.project-card.span-wide {
  grid-column: 1 / -1;
}

.project-card.span-wide .project-body-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 9, 17, 0.65);
  color: #bae6fd;
}

.project-domain {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.project-domain:hover {
  background: rgba(16, 185, 129, 0.16);
}

.project-card h3 {
  font-size: 1.42rem;
  margin: 0.85rem 0 0.45rem;
  letter-spacing: -0.02em;
}

.project-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.project-highlights li::before {
  content: "▹";
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.rationale-box {
  background: rgba(6, 9, 17, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.rationale-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 0.3rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.24rem 0.58rem;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

/* Capabilities Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
}

.bento-card.bento-wide {
  grid-column: 1 / -1;
  background:
    radial-gradient(560px 240px at 95% 15%, rgba(56, 189, 248, 0.13), transparent 70%),
    linear-gradient(155deg, rgba(15, 23, 42, 0.86), rgba(9, 15, 28, 0.94));
  border-color: rgba(56, 189, 248, 0.28);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}

.geo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.geo-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.3rem 0.68rem;
  border-radius: 8px;
  background: rgba(6, 9, 17, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

a.geo-pill:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.55);
}

.geo-checklist {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(6, 9, 17, 0.72);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.geo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.geo-checklist li::before {
  content: "✓";
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1rem;
}

.bento-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Tech Stack Matrix */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.stack-col {
  background: rgba(11, 17, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.stack-col h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin: 0 0 1rem;
}

.stack-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.stack-items li {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.stack-items li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stack-items strong {
  font-size: 0.92rem;
  color: var(--text);
}

.stack-items span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Best Practices Section */
.practices-wrap {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(7, 11, 20, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.practice-step {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.practice-step h3 {
  font-size: 1.04rem;
  margin: 0 0 0.45rem;
}

.practice-step p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Contact CTA */
.contact-panel {
  background:
    radial-gradient(600px 280px at 90% 10%, rgba(16, 185, 129, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(9, 14, 26, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 0 0 0.75rem;
}

.contact-panel p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.scope-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.contact-box {
  background: rgba(6, 9, 17, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.contact-box label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.contact-box input:focus,
.contact-box textarea:focus {
  outline: none;
  border-color: var(--accent-sky);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.copy-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #34d399;
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand-line {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: #7dd3fc;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .contact-panel,
  .projects-grid,
  .bento-grid,
  .bento-card.bento-wide,
  .project-card.span-wide .project-body-split {
    grid-template-columns: 1fr;
  }
  .stack-grid,
  .practices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3rem;
  }
  .hero-metrics,
  .stack-grid,
  .practices-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel,
  .practices-wrap {
    padding: 1.4rem;
  }
}
