/* ---------- tokens ---------- */
:root {
  --bg: #0b0d0f;
  --bg-alt: #12151a;
  --bg-card: #14181d;
  --border: #23282f;
  --text: #e9ebee;
  --text-dim: #9aa3ad;
  --text-faint: #5b636d;
  --accent: #3ecf8e;
  --accent-soft: rgba(62, 207, 142, 0.12);
  --accent-2: #5fd3c4;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 980px;
}

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

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

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

/* subtle grain / texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(62,207,142,0.05), transparent 40%),
                     radial-gradient(circle at 80% 60%, rgba(95,211,196,0.04), transparent 45%);
}

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { color: var(--accent); display: flex; }
.brand-mark img { display: block; width: 44px; height: 44px; }

.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-name-sub { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.15s ease;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 7px 14px;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* ---------- hero ---------- */
.hero {
  padding: 110px 24px 90px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-fossil-bg {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 58%;
  max-width: 680px;
  min-width: 320px;
  opacity: 0.08;
  filter: grayscale(1) brightness(1.6);
  pointer-events: none;
  z-index: 0;
  animation: hero-float 10s ease-in-out infinite;
}

.hero-fossil-bg img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  box-shadow: 0 0 6px 1px var(--accent);
  animation: particle-float 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 65%; left: 8%;  animation-delay: 0.8s; width: 3px; height: 3px; }
.hero-particles span:nth-child(3) { top: 30%; left: 74%; animation-delay: 1.6s; }
.hero-particles span:nth-child(4) { top: 75%; left: 68%; animation-delay: 2.4s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { top: 8%;  left: 45%; animation-delay: 3.2s; width: 3px; height: 3px; }
.hero-particles span:nth-child(6) { top: 55%; left: 38%; animation-delay: 4s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-16px) scale(1.3); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fossil-bg,
  .hero-particles span {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-fossil-bg {
    width: 90%;
    right: -20%;
    opacity: 0.06;
  }
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.rotator-text {
  display: inline-block;
  color: var(--accent);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rotator-text.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #08170f;
}

.btn-primary:hover { background: #5edba0; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------- sections ---------- */
.section {
  padding: 70px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--mono);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
}

.tag {
  color: var(--accent);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.card-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; max-width: 60ch; }

/* about */
.about-grid {
  max-width: 900px;
}

.strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.strengths h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.strengths h3::before {
  content: "▸";
  color: var(--accent);
  margin-right: 8px;
}

.strengths p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

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

/* contact */
.contact-sub {
  color: var(--text-dim);
  margin: -20px 0 30px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.form-row input,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { justify-self: start; }

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 13px;
}

.footprint { color: var(--accent); display: flex; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    box-shadow: 0 24px 20px -12px var(--bg);
    gap: 4px;
    display: none;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { justify-content: center; margin-top: 6px; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .card.reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .card.reveal:nth-child(3) { transition-delay: 0.16s; }

.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
