:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --card: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.hero {
  background: linear-gradient(135deg, #0b1226, #1b2b44);
  padding: 4rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

header.hero p {
  color: var(--muted);
  max-width: 860px;
  margin: 1rem auto 1.8rem;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.btn-secondary {
  background: transparent;
  color: #dbeafe;
  border-color: #334155;
}

.section {
  padding: 2.2rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
  margin-bottom: 1.3rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.card,
.small-card,
.demo-card {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  padding: 1rem;
}

.card h3,
.small-card h4 {
  margin-top: 0;
  color: #f8fafc;
}

.card p,
.small-card p {
  color: var(--muted);
  margin: 0.55rem 0 0;
}

.architecture-block {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.architecture-block img {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
}

.architecture-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.incident-grid {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.small-card {
  background: #141f35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.demo-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.demo-card {
  background: #0f172a;
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: left;
  border-radius: 0.85rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.demo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  border: 1px solid #2e3d57;
}

.demo-card figcaption {
  margin-top: 0.6rem;
  color: #e2e8f0;
  font-weight: 600;
}

.demo-card figcaption span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.flow-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.flow-card {
  background: #1e2f4a;
  border: 1px solid #2c3f57;
  border-radius: 0.7rem;
  padding: 0.8rem;
  font-weight: 600;
  color: #dbeafe;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.17);
}

.footer {
  padding: 1.2rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer div {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .section {
    padding: 2.7rem 1.5rem;
  }

  .architecture-block {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero p,
  .section p {
    font-size: 1rem;
  }
}

.lightbox-image {
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-value {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.75rem auto 1.1rem;
  font-weight: 500;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal.active {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: min(92vw, 920px);
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #2a3a53;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 1;
  display: grid;
  gap: 0.5rem;
}

.image-modal-content img {
  max-height: 80vh;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 0.65rem;
}

.image-modal-content p {
  margin: 0;
  color: #e2e8f0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.88;
}

.close-modal {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 1.3rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.close-modal:hover {
  background: rgba(75, 85, 99, 0.95);
}

