/* ============================================================
   AlloSense — VARIANT-1 "SIGNAL"
   Dark premium industrial-tech aesthetic
   ============================================================ */

:root {
  --bg: #07121a;
  --bg-2: #0b1f2a;
  --bg-3: #0e2733;
  --line: rgba(78, 183, 245, 0.14);
  --line-soft: rgba(143, 163, 176, 0.16);

  --white: #f4f8fb;
  --muted: #8fa3b0;

  --blue: #116dff;
  --cyan: #4eb7f5;
  --soft: #5e97ff;

  --glow: 0 0 40px rgba(78, 183, 245, 0.25);

  --maxw: 1200px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 16px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--solid {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #02101a;
  font-weight: 600;
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17, 109, 255, 0.45); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled {
  background: rgba(7, 18, 26, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  transition: padding 0.3s ease;
}
.nav--scrolled .nav__inner { padding-block: 0.7rem; }
.nav__logo img { height: 30px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.nav__links a:not(.btn) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transition: width 0.28s ease;
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.9;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 26%, rgba(7,18,26,0.78) 50%, rgba(7,18,26,0.25) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero__glow {
  position: absolute;
  top: 30%; right: -8%;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(78,183,245,0.22), transparent 62%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }
.hero__trust {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* signal line */
.signal-line {
  position: relative;
  width: 220px; height: 2px;
  background: var(--line);
  margin-bottom: 1.8rem;
  overflow: hidden;
  border-radius: 2px;
}
.signal-line span {
  position: absolute; top: 0; left: 0;
  width: 70px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: signal 2.6s linear infinite;
}
@keyframes signal { 0% { transform: translateX(-80px); } 100% { transform: translateX(230px); } }

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  z-index: 2;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 3px; height: 8px; margin-top: 7px;
  background: var(--cyan); border-radius: 2px;
  animation: scroll 1.8s ease infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(-2px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-block: 1px solid var(--line-soft);
  padding-block: 2.2rem;
  background: var(--bg-2);
}
.trust__label {
  text-align: center;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--muted);
  margin-bottom: 1.4rem;
  font-family: var(--font-head);
}
.trust__logos {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.6rem);
}
.trust__logos li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.72;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.trust__logos li:hover { color: var(--white); opacity: 1; }

/* ============================================================
   METRICS
   ============================================================ */
.metrics { padding-block: clamp(3rem, 7vw, 5rem); background: var(--bg); }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--bg-2);
  padding: clamp(1.6rem, 3vw, 2.6rem) 1.4rem;
  text-align: center;
}
.metric__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.metric__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section__head { max-width: 680px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.section__lead, .section__head .section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 183, 245, 0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), var(--glow);
}
.card__media { overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.card__body p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 46px; height: 46px;
  margin: 1.5rem 1.5rem 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(78,183,245,0.1);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.card__icon svg { width: 24px; height: 24px; }
.card--feature .eyebrow { margin-bottom: 0.5rem; margin-top: 0; }
.card--feature:not(:has(.card__media)) { padding-bottom: 1.7rem; }
.card--feature:not(:has(.card__media)) .eyebrow,
.card--feature:not(:has(.card__media)) h3,
.card--feature:not(:has(.card__media)) p { padding-inline: 1.5rem; }
.card--feature:not(:has(.card__media)) h3 { font-size: 1.25rem; margin: 0.9rem 0 0.55rem; }
.card--feature:not(:has(.card__media)) h3,
.card--feature:not(:has(.card__media)) .eyebrow { padding-top: 0; }
.card--feature:not(:has(.card__media)) p { color: var(--muted); font-size: 0.95rem; }
.card--feature .card__icon + .eyebrow { margin-top: 1.3rem; padding-inline: 1.5rem; }

/* ---------- Technology grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.card--wide { grid-column: span 2; }
.card--wide { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.card--wide .card__media { aspect-ratio: auto; min-height: 240px; }
.card--wide .card__body { align-self: center; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.products { background: var(--bg-2); }
.products .card { background: var(--bg-3); }

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.industry {
  background: var(--bg-2);
  display: flex; align-items: center; gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}
.industry:hover { background: var(--bg-3); color: var(--cyan); }
.industry__num {
  font-size: 0.8rem; color: var(--cyan);
  letter-spacing: 0.1em; min-width: 1.8rem;
  opacity: 0.85;
}
.industry:nth-child(5) { grid-column: span 2; }

/* ============================================================
   COMPANY
   ============================================================ */
.company__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.company__media { position: relative; }
.company__media > img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.company__founder {
  position: absolute;
  bottom: -28px; left: -10px;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  max-width: 90%;
}
.company__founder img {
  width: 56px; height: 56px; border-radius: 10px;
  object-fit: cover;
}
.company__founder strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.company__founder span { display: block; font-size: 0.78rem; color: var(--muted); }
.company__founder .company__exp { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.02em; margin-top: 2px; }
.company__body p { color: var(--muted); margin-bottom: 1.1rem; max-width: 46ch; }
.company__pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.company__pills li {
  font-family: var(--font-head);
  font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--cyan);
  background: rgba(78,183,245,0.06);
}

/* ============================================================
   INVESTORS
   ============================================================ */
.investors { background: var(--bg-2); border-block: 1px solid var(--line-soft); text-align: center; }
.investors__inner { display: flex; flex-direction: column; align-items: center; }
.investors__techstars img { height: clamp(34px, 6vw, 52px); width: auto; }
.investors__caption { color: var(--muted); margin-top: 1.1rem; font-size: 0.95rem; }
.investors__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: 2rem;
}
.investors__list li {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact__lead { color: var(--muted); margin-bottom: 2rem; max-width: 40ch; }
.contact__details { display: grid; gap: 1.3rem; }
.contact__details li {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 1rem; align-items: baseline;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line-soft);
}
.contact__details span {
  font-family: var(--font-head); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan);
}
.contact__details a, .contact__details address {
  font-style: normal; color: var(--white); font-size: 1.05rem;
  transition: color 0.2s ease;
}
.contact__details a:hover { color: var(--cyan); }

.contact__form {
  display: grid; gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.contact__form label {
  display: grid; gap: 0.45rem;
  font-family: var(--font-head); font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--muted);
}
.contact__form input, .contact__form textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--bg); color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(143,163,176,0.5); }
.contact__form input:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(78,183,245,0.15);
}
.contact__form textarea { resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
}
.footer__brand img { height: 28px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; width: fit-content; }
.footer__nav a:hover { color: var(--cyan); }
.footer__contact { display: flex; flex-direction: column; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.footer__contact a:hover { color: var(--cyan); }
.footer__contact address { font-style: normal; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 0.84rem;
}
.footer__mark img { height: 24px; opacity: 0.6; color: var(--cyan); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .signal-line span, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .card--wide .card__media { aspect-ratio: 16/10; min-height: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .company__grid, .contact__grid { grid-template-columns: 1fr; }
  .company__media { max-width: 560px; }
  .company__founder { position: static; margin-top: 1rem; max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh; width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.34s cubic-bezier(.4,0,.2,1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.15rem; color: var(--white); }
  .nav__cta { margin-top: 0.6rem; }

  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry:nth-child(5) { grid-column: span 1; }
  .contact__details li { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 420px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}
