/* ADHMS landing page — palette taken from the business card */
:root {
  --navy: #0d1f33;
  --navy-2: #1f3247;
  --slate: #44566c;
  --teal: #09a9c0;
  --teal-soft: #7fd0dc;
  --bg: #f1f6f8;
  --bg-2: #e7eff3;
  --card: #ffffff;
  --line: #d6e3ea;
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse at 50% 20%, #ffffff 0%, transparent 60%),
    linear-gradient(rgba(9,169,192,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(9,169,192,.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shared svg classes */
.stroke, .teal-stroke, .mesh__lines, .card__icon svg, .contact__list svg {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.stroke { stroke: var(--navy); stroke-width: 6; }
.teal-stroke { stroke: var(--teal); stroke-width: 6; fill: none; }
.teal-stroke.thick { stroke-width: 8; }
.teal-fill { fill: var(--teal); }
.navy-fill { fill: var(--navy); }
.fill-bg { fill: #f8fbfc; }

/* circuit traces in corners */
.trace { position: absolute; width: min(36vw, 520px); pointer-events: none; z-index: 0; }
.trace path { fill: none; stroke: var(--teal); stroke-width: 5; }
.trace--tl { top: 0; left: 0; }
.trace--br { bottom: 0; right: 0; width: min(28vw, 380px); }

/* top bar */
.topbar {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 24px;
}
.logo {
  display: inline-flex; align-items: flex-end; gap: 2px;
  text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: .14em;
  line-height: 1;
}
.logo__a { width: 1.3rem; height: 1.3rem; color: var(--navy); margin-right: .08em; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--slate);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy); background: rgba(9,169,192,.1); }
.nav .nav__cta { color: #fff; background: var(--navy); }
.nav .nav__cta:hover { color: #fff; background: var(--teal); }

/* hero */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px 24px 0;
  max-width: 1160px; margin: 0 auto;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--navy-2);
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(4px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(9,169,192,.6); animation: ping 1.8s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(9,169,192,0); } 100% { box-shadow: 0 0 0 0 rgba(9,169,192,0); } }

.drone { display: block; width: min(380px, 80vw); margin: 28px auto 8px; animation: hover 4s ease-in-out infinite; }
.rotor line { stroke: var(--navy); stroke-width: 7; stroke-linecap: round; }
.rotor--l { transform-origin: 72px 22px; animation: spin .35s linear infinite; }
.rotor--r { transform-origin: 328px 22px; animation: spin .35s linear infinite reverse; }
@keyframes spin { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
@keyframes hover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.waves path { animation: wave 1.8s ease-in-out infinite; }
.waves path:nth-child(2) { animation-delay: .2s; }
.waves path:nth-child(3) { animation-delay: .4s; }
@keyframes wave { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.wordmark {
  display: inline-flex; align-items: flex-end; justify-content: center;
  font-size: clamp(4rem, 15vw, 10rem); font-weight: 800; line-height: .9;
  letter-spacing: .06em;
}
.wordmark__a { width: .95em; height: .95em; color: var(--navy); margin-right: .06em; }

.subtitle {
  margin-top: 18px;
  font-size: clamp(1.15rem, 3.2vw, 2rem); font-weight: 500; color: var(--navy);
}
.tagline {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--slate); font-weight: 500;
}
.rule { display: inline-block; width: clamp(30px, 10vw, 120px); height: 4px; border-radius: 4px; background: var(--teal); }

.lead { max-width: 640px; margin: 28px auto 0; color: var(--slate); font-size: 1.05rem; }

.hero__actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 24px; border-radius: 10px; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px -10px rgba(9,169,192,.8); }
.btn--primary:hover { background: #0796ab; }
.btn--ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

.hive-wrap {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
}
.hive { width: clamp(150px, 20vw, 220px); }
.mesh { width: 100%; height: auto; }
.mesh__lines { stroke: var(--teal-soft); stroke-width: 2.5; }
.mesh__nodes circle { fill: var(--teal); }
.mesh__nodes circle:nth-child(3n) { animation: blink 3s ease-in-out infinite; }
.mesh__nodes circle:nth-child(3n+1) { animation: blink 3s ease-in-out 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* sections */
.section { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 96px 24px 0; }
.eyebrow { font-family: var(--mono); color: var(--teal); font-size: .9rem; letter-spacing: .05em; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; margin-top: 6px; max-width: 720px; }

.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .member, .contact__box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 40px -30px rgba(13,31,51,.35);
}
.card { padding: 28px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.card:hover { transform: translateY(-4px); border-color: var(--teal-soft); }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(9,169,192,.1);
}
.card__icon svg { width: 34px; height: 34px; stroke: var(--navy); stroke-width: 2.2; }
.card h3 { margin-top: 18px; font-size: 1.2rem; }
.card p { margin-top: 8px; color: var(--slate); font-size: .97rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  font-family: var(--mono); font-size: .75rem; color: var(--navy-2);
  padding: 3px 10px; border-radius: 6px; background: var(--bg-2);
}

/* console */
.console {
  margin-top: 32px; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #cfe3ea; box-shadow: 0 30px 60px -40px rgba(13,31,51,.8);
}
.console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--navy-2); }
.console__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3c5068; }
.console__bar span:first-child { background: var(--teal); }
.console__bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: .8rem; color: #8aa0b5; }
.console pre { padding: 20px 22px; font-family: var(--mono); font-size: .9rem; line-height: 1.8; overflow-x: auto; }
.c-prompt { color: var(--teal); }
.c-dim { color: #6f86a0; }
.c-ok { color: #5fe0a6; }
.c-wip { color: #ffd479; }
.cursor { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* team */
.team { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { padding: 32px 24px; text-align: center; }
.avatar {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem; letter-spacing: .05em; color: #fff;
  background: var(--navy); border: 4px solid #fff; outline: 2px solid var(--teal);
}
.member h3 { margin-top: 18px; font-size: 1.15rem; }
.role { margin-top: 4px; color: var(--slate); font-size: .93rem; min-height: 3em; }
.mail {
  display: inline-block; margin-top: 14px; max-width: 100%;
  font-family: var(--mono); font-size: .8rem; color: var(--teal);
  text-decoration: none; word-break: break-all;
  padding: 6px 12px; border-radius: 8px; background: rgba(9,169,192,.08);
  transition: background .2s, color .2s;
}
.mail:hover { background: var(--teal); color: #fff; }

/* contact */
.contact { padding-bottom: 96px; }
.contact__box {
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  border-left: 6px solid var(--teal);
}
.contact__box > div > p:last-child { margin-top: 8px; color: var(--slate); }
.contact__list { list-style: none; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.2rem; font-weight: 500; }
.contact__list li::after { content: none; }
.contact__list svg {
  width: 30px; height: 30px; stroke: var(--navy); stroke-width: 1.8;
  padding-right: 14px; box-sizing: content-box; border-right: 3px solid var(--teal);
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--teal); }

/* footer */
.footer {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 28px 24px min(16vw, 200px);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 3px solid var(--teal); color: var(--slate); font-size: .9rem;
}

/* responsive */
@media (max-width: 900px) {
  .cards, .team { grid-template-columns: 1fr; }
  .role { min-height: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 20px 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .tagline { gap: 10px; }
  .hive-wrap { gap: 0; }
  .contact__box { padding: 28px 22px; }
  .contact__list li { font-size: 1.05rem; }
  .console pre { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
