:root {
  --primary: #7a1527;
  --primary-dark: #4d0a17;
  --accent: #d8a06a;
  --bg: #f8f4f2;
  --surface: rgba(255,255,255,0.78);
  --surface-strong: #fffdfc;
  --text: #1d1620;
  --muted: #615561;
  --border: rgba(122, 21, 39, 0.15);
  --shadow: 0 20px 60px rgba(62, 12, 20, 0.12);
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 21, 39, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(216, 160, 106, 0.18), transparent 28%),
    linear-gradient(180deg, #fff8f6 0%, #f6f1ef 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glass {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;/* TOP SECTION */}

.architecture-top {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* LEFT SIDE */
.arch-left {
  flex: 1;
}

/* RIGHT SIDE */
.arch-right {
  flex: 1;
}

/* spacing */
.arch-left h2 {
  margin: 10px 0 15px;
}

.arch-left {
  text-align: left;
  max-width: 550px;
}

.eyebrow {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(107, 16, 32, 0.08);
  color: #6b1020;
  border: 1px solid rgba(107, 16, 32, 0.15);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.pill.tiny { padding: .45rem .75rem; font-size: .82rem; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  margin-bottom: 1rem;
}
.muted { color: var(--muted); }
.strong { font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 246, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 21, 39, 0.08);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 800;
}

.brand-logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}
.nav-menu {   
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 1rem;
}
.nav-link {
  color: var(--muted);
  font-weight: 700;
  padding: .75rem .9rem;
  border-radius: 12px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(122, 21, 39, 0.07); }
.nav-toggle { display: none; border: 0; background: var(--primary); color: white; padding: .8rem 1rem; border-radius: 14px; }

.hero {
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,21,39,.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.4rem;
  min-height: 56px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: .24s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #a61d3a);
  color: white;
  box-shadow: 0 16px 30px rgba(122, 21, 39, .26);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--primary); border-color: rgba(122, 21, 39, .12); }

.hero-panel {
  max-width: 560px;
  margin-left: auto;
  padding: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(122,21,39,.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(122,21,39,.08);
  margin-bottom: 12px;
}

.floating-note {
  width: 100%;
  padding: 1.25rem 1.4rem;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(122,21,39,.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 520px;
}

.floating-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48ch;
}

.stats-band { margin-top: 1.5rem; }
.stat-card { 
    min-height: 150px;
    padding: 1.4rem;
}
.stat-value { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-label { color: var(--muted); margin-top: .35rem; }

.section-title {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 2rem;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(122,21,39,.08);
}
.section-title h2 { margin: 0; font-size: clamp(1.7rem, 2vw, 3rem); }
.section-title p { max-width: 60ch; margin: 0; color: var(--muted); }

.feature-card, .sensor-card, .threat-card, .team-card, .download-card, .timeline-card, .contact-card, .video-card {
  padding: 1.4rem;
}
.feature-card h3, .sensor-card h3, .threat-card h3, .team-card h3, .download-card h3 { margin-top: .8rem; }
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #a8223e);
}

.objectives-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .8rem;
  color: var(--muted);
  line-height: 1.65;
}

.filters { display: flex; gap: .7rem; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid rgba(122,21,39,.12);
  background: white;
  color: var(--muted);
  padding: .8rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; }

.threat-card, .sensor-card, .team-card { min-height: 100%; }
.sensor-top { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.sensor-label { color: var(--muted); font-weight: 700; }
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(122,21,39,.08);
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(122,21,39,0.15);
  font-weight: 900;
  font-size: 1.35rem;
}

.accordion-item {
  padding: 1rem 1.15rem;
}
.accordion-item summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.telemetry-card { padding: 1.35rem; }
.telemetry-row { display: grid; gap: .7rem; }
.telemetry-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: .85rem;
}
.telemetry-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(122,21,39,.09);
  overflow: hidden;
}
.telemetry-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  transition: width 1.1s ease;
}

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(122,21,39,.14);
}
.timeline-card {
  position: relative;
  margin-left: 44px;
}
.timeline-card::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(122,21,39,.08);
}

.media-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(122,21,39,.1);
  max-width: 900px;

  margin: 0 auto;
}

.media-frame video {
  width: 100%;
  display: block;
}

.video-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.video-card {
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.video-wrapper {
  height: 220px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-card a { color: var(--primary); font-weight: 800; }
.download-card p { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form { padding: 1.35rem; }
.form-row { display: grid; gap: .9rem; margin-top: 1rem; }
input, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(122,21,39,.12);
  padding: 1rem;
  font: inherit;
  background: white;
}
textarea { min-height: 180px; resize: vertical; }

.site-footer {
  padding: 28px 0 50px;
  color: var(--muted);
}
.footer-card {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

.note {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--primary);
  background: rgba(122,21,39,.06);
  border-radius: 0 16px 16px 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-title { flex-direction: column; align-items: start; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(122,21,39,.1);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding-top: 72px; }
  .telemetry-item { grid-template-columns: 1fr; }
  .floating-note { position: static; margin-top: 1rem; max-width: none; }
  .footer-card { flex-direction: column; align-items: start; }
}
/* ===== SENSOR SECTION FIX ===== */

.section {
  padding: 88px 0;
  background: none !important;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.sensor-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

/* ===== ATTACK SECTION DESIGN UPGRADE ===== */

.attack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.attack-card {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(120, 0, 0, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* subtle top accent line */
.attack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #7a0019, #a0002a);
  opacity: 0.8;
}

/* hover effect */
.attack-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(122, 0, 25, 0.15);
}

/* title */
.attack-card h3 {
  margin-bottom: 10px;
  color: #7a0019;
  font-weight: 700;
}

/* text */
.attack-card p {
  color: #444;
  line-height: 1.6;
}

/* responsive */
@media (max-width: 1100px) {
  .attack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.team-email {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.6rem;
}

.team-email:hover {
  text-decoration: underline;
}

.team-card p {
  max-width: 42ch;
}

.team-card .role {
  font-weight: 700;
  color: var(--primary);
}
.architecture-diagram {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.architecture-diagram img {
  max-width: 900px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* TOP SECTION */
.architecture-top {
  text-align: center;
  margin-bottom: 50px;
}

/* BOTTOM GRID */
.architecture-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr; /* videos bigger */
  gap: 30px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .architecture-bottom {
    grid-template-columns: 1fr;
  }
}


.recommendation-card {
  display: block;
  text-decoration: none;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  transition: 0.3s;
}

.recommendation-card img {
  width: 100%;
  border-radius: 10px;
}

.recommendation-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

.recommendation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
}

@keyframes rippleAnim {
  to {
    transform: scale(20);
    opacity: 0;
  }
}

.telemetry-bar {
  position: relative;
  box-shadow: 0 0 10px rgba(122,21,39,0.4);
  animation: pulseBar 2s infinite;
}

@keyframes pulseBar {
  0% { box-shadow: 0 0 6px rgba(122,21,39,0.3); }
  50% { box-shadow: 0 0 18px rgba(122,21,39,0.6); }
  100% { box-shadow: 0 0 6px rgba(122,21,39,0.3); }
}

#scrollBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  width: 0%;
  z-index: 9999;
}

.hero {
  position: relative;
  overflow: hidden;
}

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

.hero-grid {
  position: relative;
  z-index: 1;
}

/* ===== CONTACT PAGE CENTERED DESIGN ===== */

.contact-section {
  padding: 80px 0;
}

.contact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.contact-header h2 {
  margin: 10px 0;
}

.contact-header p {
  color: var(--muted);
}

/* CENTER CARD */
.contact-card {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 2rem;
  border-radius: 24px;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-info-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form button {
  margin-top: 10px;
}

/* BOTTOM CARDS */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: 20px;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-info-grid {
  max-width: 1000px;   /* controls width */
  margin: 0 auto;      /* centers it */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(122,21,39,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(216,160,106,0.08), transparent 40%);
  z-index: -1;
}

.particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(122,21,39,0.4);
  border-radius: 50%;
  animation: float 12s linear infinite;
}

@keyframes float {
  from { transform: translateY(100vh); }
  to { transform: translateY(-10vh); }
}

.site-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.site-particles span {
  position: absolute;
  width: 9px;
  height: 9px;
  background: rgba(122, 21, 39, 0.22);
  border-radius: 50%;
  animation: floatDots linear infinite;
}

@keyframes floatDots {
  from {
    transform: translateY(110vh);
  }
  to {
    transform: translateY(-20vh);
  }
}

.architecture-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}


.recommendation-grid {
  max-width: 1000px;
  margin: 60px auto 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* ⭐ 2 columns */
  gap: 24px;
}

.recommendation-card {
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
}

.recommendation-card img {
  width: 100%;
  height: 320px;          /* ⭐ control size */
  object-fit: contain;    /* keeps full document visible */
  border-radius: 12px;
  background: #f5eeee;
}

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

@media (max-width: 900px) {
  .architecture-bottom {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

.glass::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(122, 16, 32, 0.9) 50%,
    rgba(216, 160, 106, 0.9) 52%,
    transparent 57%
  );

  background-size: 300% 300%;
  animation: laserMove 6s linear infinite;

  pointer-events: none;

.glass::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(122, 16, 32, 0.9) 50%,
    rgba(216, 160, 106, 0.9) 52%,
    transparent 57%
  );

  background-size: 300% 300%;
  animation: laserMove 6s linear infinite;

  pointer-events: none;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    transparent,
    #6b1020,
    transparent
  );

  background-size: 300% 300%;
  animation: laserMove 8s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  mask-composite: exclude;
}

@keyframes laserMove {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.video-grid,
.recommendation-grid,
.team-grid {
  overflow: visible;
}

.glass:hover {
  transform: scale(1.06) translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7f7, #f4e8ea);
  padding: 30px;
}

.thank-you-card {
  max-width: 650px;
  background: white;
  padding: 55px 45px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(107, 16, 32, 0.18);
  border: 1px solid rgba(107, 16, 32, 0.15);
}

.thank-you-card h1 {
  color: #6b1020;
  font-size: 38px;
  margin-bottom: 18px;
}

.thank-you-card p {
  color: #5f5660;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}