:root {
  --navy: #0f2340;
  --navy-light: #1c3a63;
  --accent: #ff6b4a;
  --accent-dark: #e8502c;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #253044;
  --muted: #697588;
  --border: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 64, 0.08);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { background: var(--bg); text-decoration: none; }
.nav-links a.active { color: var(--accent-dark); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn.outline:hover { background: #fff; border-color: var(--navy-light); }
.btn.light { background: #fff; color: var(--navy); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,107,74,0.35), transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; max-width: 760px; }
.hero-graph {
  position: absolute;
  top: 0; right: 0;
  height: 100%; width: 42%;
  opacity: 0.5;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%);
  mask-image: linear-gradient(to left, #000 40%, transparent 100%);
}
.hero-graph .hg-lines path {
  fill: none; stroke: rgba(120,160,230,0.4); stroke-width: 2;
}
.hero-graph .hg-nodes circle {
  fill: #4b8dff;
  animation: hgpulse 3.2s ease-in-out infinite;
}
.hero-graph .hg-nodes circle:nth-child(2n) { fill: var(--accent); animation-delay: .5s; }
.hero-graph .hg-nodes circle:nth-child(3n) { animation-delay: 1.1s; }
.hero-graph .hg-nodes circle:nth-child(4n) { animation-delay: 1.7s; }
@keyframes hgpulse {
  0%, 100% { opacity: .45; r: 5; }
  50% { opacity: 1; r: 7; }
}
@media (max-width: 760px) { .hero-graph { display: none; } }

/* ---------- Git pipeline section ---------- */
.pipeline {
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(75,141,255,0.16), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(255,107,74,0.14), transparent 60%),
    #0a1526;
  position: relative;
}
.pipeline code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  padding: 1px 10px; border-radius: 8px; font-size: 0.85em;
}
.git-graph-wrap { max-width: 1000px; margin: 0 auto; overflow-x: auto; }
.git-graph { width: 100%; min-width: 760px; height: auto; display: block; }

.git-graph .branch { fill: none; stroke-linecap: round; }
.git-graph .branch.main { stroke: rgba(255,255,255,0.14); stroke-width: 5; }
.git-graph .branch.feature { stroke: rgba(255,255,255,0.14); stroke-width: 5; stroke-dasharray: 2 0; }
.git-graph .flow-line {
  fill: none;
  stroke: url(#flow);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 240;
  filter: url(#glow);
  animation: gitflow 4s linear infinite;
}
@keyframes gitflow { from { stroke-dashoffset: 254; } to { stroke-dashoffset: 0; } }

.git-graph .node circle {
  fill: #0a1526;
  stroke: var(--accent);
  stroke-width: 3.5;
  filter: url(#glow);
}
.git-graph .node.feat circle { stroke: #4b8dff; }
.git-graph .node.merge circle { stroke: #57d98a; }
.git-graph .node.deploy circle { fill: var(--accent); stroke: #ff9a80; }
.git-graph .node circle { animation: nodepulse 3s ease-in-out infinite; }
.git-graph .node:nth-child(2) circle { animation-delay: .3s; }
.git-graph .node:nth-child(3) circle { animation-delay: .6s; }
.git-graph .node:nth-child(4) circle { animation-delay: .9s; }
@keyframes nodepulse { 0%,100% { opacity: .85; } 50% { opacity: 1; filter: url(#glow) brightness(1.3); } }
.git-graph .node text {
  fill: #cdd7e6;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 15px;
  text-anchor: middle;
  font-weight: 600;
}

.commit-log {
  max-width: 560px;
  margin: 46px auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
}
.cl-row { display: flex; gap: 16px; padding: 5px 0; align-items: baseline; }
.cl-hash { color: var(--accent); flex: 0 0 auto; }
.cl-msg { color: #aeb9cc; }
.cl-row:last-child .cl-msg { color: #57d98a; }
.hero h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: #cdd7e6; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}
.hero h1 code.kw {
  background: rgba(255,107,74,0.18);
  color: var(--accent);
  padding: 2px 12px;
  border-radius: 10px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- Terminal block ---------- */
.terminal {
  margin-top: 36px;
  background: #0a1526;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  max-width: 560px;
}
.terminal-bar {
  background: rgba(255,255,255,0.05);
  padding: 10px 16px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  color: #6c7d96;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.terminal-bar span {
  width: 11px; height: 11px; border-radius: 50%; background: #3a4a63; display: inline-block;
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; margin-right: 8px; }
.terminal pre {
  margin: 0;
  padding: 18px 20px;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #d8e2f0;
  white-space: pre-wrap;
}
.terminal .t-dim { color: #6c7d96; }
.terminal .t-ok { color: #57d98a; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
}
.section-head h2 { font-size: 2.2rem; color: var(--navy); margin: 10px 0 14px; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-header h1 { font-size: 2.6rem; letter-spacing: -0.5px; margin-bottom: 10px; }
.page-header p { color: #cdd7e6; font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,35,64,0.12); }
.card .icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.2rem; }
.card h3 code, .info-block code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: #eef2f8;
  color: var(--accent-dark);
  padding: 1px 7px;
  border-radius: 6px;
}
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .grid { text-align: center; }
.stat .num { font-size: 2.8rem; font-weight: 800; color: var(--accent); }
.stat .label { color: #cdd7e6; font-size: 0.95rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card .photo { width: 100%; height: 260px; object-fit: cover; background: #dde4ee; }
.team-card .body { padding: 24px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-card .bio { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.team-card .contact { font-size: 0.88rem; border-top: 1px solid var(--border); padding-top: 14px; }
.team-card .contact a { display: block; margin: 2px 0; }

/* ---------- Jobs ---------- */
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.job:hover { border-color: var(--accent); }
.job .meta h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.job .meta .details { color: var(--muted); font-size: 0.9rem; display: flex; gap: 16px; flex-wrap: wrap; }
.job .pill {
  background: #eef2f8; color: var(--navy-light);
  padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}

/* ---------- Contact / Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.info-block { margin-bottom: 26px; }
.info-block h4 { color: var(--navy); margin-bottom: 4px; }
.info-block p, .info-block a { color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; text-align: center;
}
.cta-band h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-band p { margin-bottom: 26px; font-size: 1.1rem; opacity: 0.95; }
.cta-band code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  background: rgba(255,255,255,0.22);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: #aeb9cc;
  padding: 60px 0 28px;
}
footer.site .grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
footer.site h5 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #aeb9cc; font-size: 0.92rem; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; margin-bottom: 14px; }
footer.site .copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 0.85rem; color: #8695ad;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff;
    border-bottom: 1px solid var(--border); padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .menu-toggle { display: block; }
  .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
}
