:root {
  --bg: #050907;
  --bg-soft: #08100d;
  --panel: #0b1411;
  --line: #1a2923;
  --line-soft: #12201a;
  --green: #63f5b0;
  --green-soft: #2bdc8b;
  --cyan: #79e8dc;
  --text: #f2f7f4;
  --muted: #a5b4ae;
  --dim: #718079;
  --amber: #e5bd72;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--green); color: #03100a; }

.nav {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 9, 7, .94);
  backdrop-filter: blur(12px);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28%;
  height: 1px;
  background: var(--green);
  opacity: .65;
  transform-origin: left;
  animation: nav-line 5s ease-in-out infinite;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand strong, .footer-brand strong { display: block; font-size: 20px; letter-spacing: .18em; }
.brand small, .footer-brand small {
  display: block;
  font: 12px 'DM Mono', monospace;
  letter-spacing: .12em;
  color: var(--dim);
  margin-top: 2px;
}
.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.brand:hover .mark { background: var(--green); color: #04100a; transform: translateY(-1px); }
.nav nav { display: flex; gap: 27px; font: 10px 'DM Mono', monospace; color: var(--muted); }
.nav nav a { position: relative; padding: 6px 0; transition: color .2s ease; font-size: 16px;}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width .22s ease;
}
.nav nav a:hover, .nav nav a.active { color: var(--green); }
.nav nav a:hover::after, .nav nav a.active::after { width: 100%; }
.nav-link {
  font: 20px 'DM Mono', monospace;
  color: var(--green);
  border: 1px solid #397a60;
  padding: 9px 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-link:hover { background: var(--green); color: #04100a; border-color: var(--green); }
.menu { display: none; background: none; border: 0; color: var(--green); font: 15px 'DM Mono', monospace; }

.hero {
  min-height: 610px;
  padding: 112px 6% 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-inner { max-width: 950px; }
.kicker, .section-number, .label {
  font: 500 9px 'DM Mono', monospace;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 20px 0 27px;
  font-weight: 600;
  animation: hero-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 em { font-style: normal; color: var(--green); }
.lead {
  max-width: 720px;
  color: #c0ccc7;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  animation: hero-in .7s .08s cubic-bezier(.2,.8,.2,1) both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
  animation: hero-in .7s .16s cubic-bezier(.2,.8,.2,1) both;
}

.button {
  display: inline-block;
  padding: 12px 16px;
  font: 500 15px 'DM Mono', monospace;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
svg {
    color: var(--green);
}
.button:hover { transform: translateY(-2px); border-color: #38604f; }
.button-primary { background: var(--green); border-color: var(--green); color: #04100a; }
.button-primary:hover { background: #8affc6; border-color: #8affc6; }
.text-link { font: 15px 'DM Mono', monospace; color: #d1dcd8; transition: color .2s ease; }
.text-link span { color: var(--green); margin-left: 5px; }
.text-link:hover { color: var(--green); }
.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  align-self: end;
  color: var(--muted);
  font: 9px 'DM Mono', monospace;
  letter-spacing: .12em;
  animation: hero-in .8s .25s cubic-bezier(.2,.8,.2,1) both;
}
.hero-aside p { margin: 0 0 12px; }
.hero-aside .rule { width: 45px; height: 1px; background: var(--green); margin: 18px 0; }
.hero-aside .muted { color: var(--dim); line-height: 1.8; letter-spacing: .03em; }

.trust-line {
  display: flex;
  justify-content: space-between;
  padding: 17px 6%;
  border-bottom: 1px solid var(--line);
  font: 8px 'DM Mono', monospace;
  color: var(--dim);
  letter-spacing: .12em;
}
.trust-line span { transition: color .2s ease; }
.trust-line span:hover { color: var(--green); }
.trust-line span:first-child { color: var(--green); }

.section { padding: 105px 6%; border-bottom: 1px solid var(--line); }
.section-muted { background: var(--bg-soft); }
.section-intro {
  display: grid;
  grid-template-columns: 75px minmax(0, 700px);
  gap: 25px;
  margin-bottom: 55px;
}
.section-number { padding-top: 7px; }
.section h2, .contact h2 { font-size: 43px; line-height: 1.05; letter-spacing: -.055em; margin: 0 0 13px; font-weight: 600; }
.section-intro > div > p { margin: 0; color: var(--muted); font-size: 18px; max-width: 620px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 31px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 385px;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.service:hover { background: #0c1713; transform: translateY(-3px); border-color: #294238; }
.service-number { font: 9px 'DM Mono', monospace; color: var(--green); }
.service h3 { font-size: 23px; letter-spacing: -.035em; margin: 55px 0 14px; }
.service p { font-size: 15px; color: var(--muted); max-width: 390px; }
.service ul { list-style: none; padding: 15px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-soft); color: #bac6c2; font-size: 13px; }
.service li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.service li:last-child { border: 0; }
.service li:before { content: '—'; color: var(--green); margin-right: 8px; }

.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.approach-grid > div {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.approach-grid > div:hover { background: #0b1512; }
.approach-grid span { font: 9px 'DM Mono', monospace; color: var(--green); }
.approach-grid h3 { font-size: 20px; margin: 40px 0 10px; }
.approach-grid p { font-size: 13px; color: var(--muted); margin: 0; }

.research .section-intro { margin-bottom: 40px; }
.cve-list { border-top: 1px solid var(--line); }
.cve-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 45px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.cve-card:hover { padding-left: 10px; }
.cve-meta { display: flex; flex-direction: column; gap: 10px; }
.cve-id { font: 10px 'DM Mono', monospace; color: var(--green); letter-spacing: .05em; }
.severity { width: max-content; font: 10px 'DM Mono', monospace; padding: 4px 7px; }
.low {border: 1px solid #fdf900; color: #fdf900;}
.high {border: 1px solid #f33e3e; color: #f33e3e;}
.medium {border: 1px solid #e97c00; color: #e97c00;}
.cve-content h3 { font-size: 22px; letter-spacing: -.035em; margin: 0 0 10px; }
.cve-content > p { font-size: 14px; color: var(--muted); max-width: 780px; margin: 0; line-height: 1.7; }
.cve-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cve-details div { min-width: 0; }
.cve-details dt { font: 10px 'DM Mono', monospace; color: var(--dim); text-transform: uppercase; margin-bottom: 6px; }
.cve-details dd { margin: 0; font-size: 12px; color: #c4cfcb; }
.cve-links { display: flex; gap: 22px; flex-wrap: wrap; }
.cve-links a { font: 9px 'DM Mono', monospace; color: var(--green); }
.cve-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.about-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 100px; }
.large { font-size: 20px !important; line-height: 1.55 !important; color: #dce6e2 !important; }
.about-grid p { font-size: 13px; color: var(--muted); max-width: 700px; }
.large strong { color: var(--green); font-weight: 500; }
.founder { border-top: 1px solid var(--green); padding-top: 20px; }
.founder h3 { font-size: 24px; margin: 15px 0 3px; }
.founder p:not(.label) { font-size: 13px; color: var(--muted); }
.founder a { display: inline-block; margin-top: 18px; font: 11px 'DM Mono', monospace; color: var(--green); }

.contact {
  margin: 0 6% 45px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
}
.contact h2 { font-size: 52px; margin-top: 16px; }
.contact > div > p:last-child { max-width: 620px; color: var(--muted); font-size: 12px; }
.contact-actions { display: flex; align-items: center; gap: 25px; white-space: nowrap; }

footer { padding: 25px 6%; display: flex; align-items: center; gap: 30px; color: var(--dim); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .mark { width: 23px; height: 23px; font-size: 12px; }
.footer-links { display: flex; gap: 20px; margin: auto; font: 12px 'DM Mono', monospace; }
.footer-links a:hover { color: var(--green); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nav-line { 0%,100% { transform: scaleX(.7); opacity: .4; } 50% { transform: scaleX(1); opacity: .8; } }
@keyframes slow-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .nav { padding: 0 5%; }
  .nav nav { display: none; position: absolute; top: 71px; left: 5%; right: 5%; padding: 12px 15px; background: rgba(5,9,7,.98); border: 1px solid var(--line); flex-direction: column; gap: 0; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .menu { display: block; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding: 85px 5% 70px; }
  .hero::before { width: 250px; height: 250px; right: -80px; top: 120px; }
  .hero-aside { align-self: auto; }
  .trust-line { padding: 15px 5%; gap: 12px; flex-wrap: wrap; }
  .section { padding: 80px 5%; }
  .services { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .cve-card { grid-template-columns: 1fr; gap: 18px; }
  .cve-details { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact { margin: 0 5% 35px; padding: 60px 0; display: block; }
  .contact-actions { margin-top: 30px; }
  footer { padding: 22px 5%; flex-wrap: wrap; }
  .footer-links { order: 3; width: 100%; margin: 0; }
}

@media (max-width: 600px) {
  .brand small, .footer-brand small { display: none; }
  .hero h1 { font-size: 47px; }
  .lead { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section-intro { grid-template-columns: 45px 1fr; gap: 15px; margin-bottom: 38px; }
  .section h2 { font-size: 34px; }
  .approach-grid { grid-template-columns: 1fr; }
  .service { min-height: auto; }
  .cve-content h3 { font-size: 19px; }
  .contact h2 { font-size: 38px; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px; }
  .footer-links a:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
