/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* deep, saturated forest green — deliberately not near-black */
  --bg: #143a29;
  --bg-alt: #18442f;
  --bg-raised: #1e5038;

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --white: #f6f9f6;
  --body: #c3d3c8;
  --body-dim: #97ad9f;

  --mint: #8fe3b8;
  --mint-bright: #a9f0c9;
  --mint-dim: rgba(143, 227, 184, 0.16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
  --radius: 16px;
  --section-h: 82vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

/* subtle grain so the flat green never looks like a placeholder */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.label {
  display: inline-block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mint-bright);
  background: var(--mint-dim);
  border: 1px solid rgba(143, 227, 184, 0.3);
  padding: 7px 14px;
  border-radius: 7px;
  margin: 0 0 22px;
}

.display,
.headline {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; }
.headline { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; }

.display em,
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--mint-bright);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 46ch;
  margin: 0;
}
.lede-narrow { max-width: 40ch; }

.section-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 18px;
  max-width: 52ch;
}
.text-accent {
  color: var(--mint-bright);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--mint);
  color: #052e1c;
}
.btn-primary:hover { background: var(--mint-bright); transform: translateY(-1px); }
.btn-large { padding: 17px 38px; font-size: 1.02rem; }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 58, 41, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 58, 41, 0.96);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--white);
}
.logo {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  position: relative;
  font-size: 0.94rem;
  color: var(--body);
  font-weight: 500;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.dev-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint-bright);
  border: 1px solid rgba(143, 227, 184, 0.32);
  background: var(--mint-dim);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  animation: badgeGlow 2.6s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 227, 184, 0); }
  50% { box-shadow: 0 0 14px 0 rgba(143, 227, 184, 0.4); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: var(--section-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(143, 227, 184, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.hero-inner .label { justify-content: center; }
.hero-inner .lede { margin: 0 auto; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--body-dim);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  min-height: var(--section-h);
  display: flex;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}
.section-grid-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }

.section-head-center {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head-center .label { justify-content: center; }
.section-head-center .lede { margin: 0 auto; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tag-list li {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--body);
  background: #12191a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
}
.tag-list li.tag-featured {
  color: var(--mint-bright);
  font-weight: 700;
  border-color: rgba(143, 227, 184, 0.45);
  box-shadow: 0 0 16px -4px rgba(143, 227, 184, 0.5);
}

/* Steps — a connected flow of dark cards */
.steps-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #12191a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  overflow: hidden;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.7);
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mint);
  opacity: 0.7;
}
.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mint-bright);
  margin-bottom: 20px;
}
.step-num {
  display: block;
  font-family: var(--mono);
  color: var(--mint);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.step h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--body-dim); font-size: 0.93rem; line-height: 1.6; }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  color: var(--mint);
  opacity: 0.75;
}

.steps-footnote {
  max-width: 62ch;
  margin: 32px auto 0;
  text-align: center;
  color: var(--body-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Call mockup (Google Meet colors) ---------- */
.call-mock {
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.call-mock-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #17181a;
}
.meet-icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 2px;
  flex: none;
}
.meet-icon span { border-radius: 1px; }
.meet-icon span:nth-child(1) { background: #00ac47; }
.meet-icon span:nth-child(2) { background: #0066da; }
.meet-icon span:nth-child(3) { background: #ffba00; }
.meet-icon span:nth-child(4) { background: #ea4335; }
.call-mock-title {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: #e8eaed;
}
.call-mock-timer {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: #9aa0a6;
}
.call-mock-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
}
.call-tile {
  position: relative;
  background: #3c4043;
  border-radius: 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.call-tile-main { grid-row: span 2; min-height: 200px; }
.call-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.call-tile-main .call-avatar { width: 60px; height: 60px; font-size: 1.3rem; }
.call-name { font-size: 0.82rem; color: #e8eaed; font-weight: 500; }
.call-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mint-bright);
  background: rgba(8, 24, 17, 0.85);
  border: 1px solid rgba(143, 227, 184, 0.35);
  padding: 5px 9px;
  border-radius: 999px;
}
.call-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 3px rgba(143, 227, 184, 0.25);
}
.call-mock-caption {
  margin: 0 14px 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 10px;
}
.caption-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint-bright);
  background: rgba(143, 227, 184, 0.15);
  border: 1px solid rgba(143, 227, 184, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.call-mock-caption p {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.5;
}
.call-mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px 18px;
}
.call-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3c4043;
  color: #e8eaed;
}
.call-control-end {
  width: 52px;
  background: #ea4335;
  color: #fff;
}

/* ---------- CTA / contact form ---------- */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(143, 227, 184, 0.12), transparent 60%), var(--bg-alt);
}
.cta-wrap { max-width: 560px; margin: 0 auto; }
.cta-wrap .label { justify-content: center; }
.cta-wrap .lede { margin: 0 auto 36px; }

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #12191a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--body-dim);
}
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--body-dim); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-dim);
}
.contact-form .btn { align-self: flex-start; }
.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mint-bright);
  min-height: 1.2em;
}
.form-note.is-error { color: #f0a48f; }

.contact-direct {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--body-dim);
}
.contact-direct a { color: var(--mint-bright); font-weight: 500; }
.contact-direct a:hover { text-decoration: underline; }

/* ---------- LinkedIn posts ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #12191a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 227, 184, 0.4);
  box-shadow: 0 18px 40px -20px rgba(143, 227, 184, 0.35);
}
.post-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--body-dim);
  margin-bottom: 14px;
}
.post-card-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--body);
}
.post-card-source svg { color: var(--mint); }
.post-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 10px;
}
.post-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 20px;
}
.post-card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mint-bright);
}
.post-card:hover .post-card-link { text-decoration: underline; }
.post-follow {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--mint-bright);
}
.footer-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-footer {
  font-size: 1.05rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--white);
}
.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--body-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section-grid,
  .section-grid-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-flow { flex-direction: column; }
  .step-connector { width: auto; height: 32px; }
  .step-connector svg { transform: rotate(90deg); }
  .call-mock-grid { grid-template-columns: 1fr 1fr; }
  .dev-badge { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .hero,
  .section {
    min-height: 0;
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .display { font-size: 2.3rem; }
  .headline { font-size: 1.8rem; }
  .btn-large { width: 100%; }
  .contact-form { padding: 20px; }
  .contact-form .btn { align-self: stretch; }
}
