/* ========= Base ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #e9f1fb;
  background: radial-gradient(circle at top left, #223345 0%, #2f4458 40%, #234450 100%);
}

/* Colors for sections */
:root {
  --accent-ondevice: #22d3ee;
  --accent-genai: #a855f7;
  --accent-activities: #f97316;
  --accent-surveillance: #f97373;
  --border-soft: rgba(148, 163, 184, 0.25);
  --bg-panel: rgba(13, 23, 39, 0.86);
}

/* ========= Brand / Header ========= */

/* Inline logo + text */
.brand-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo-svg {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-title-text {
  font-size: 1.55rem;
  font-weight: 600;
  color: #f9fafb;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .brand-logo-svg {
    height: 34px;
  }
  .brand-title-text {
    font-size: 0.95rem;
  }
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.5),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.4rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #c7d2fe;
}

.nav-list a:hover {
  color: #ffffff;
}

/* ========= Hero ========= */
.hero {
  padding: 4rem 0 3.2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem);
  margin: 0 0 0.7rem;
}

.hero-lead {
  margin: 0;
  color: #d1e0f5;
  max-width: 38rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-footnote {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

/* Edge emphasis elements */
.edge-ribbon {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.95));
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

/* Architecture pyramid card */
/* Architecture pyramid card */
.arch-card {
  background: rgba(16, 27, 45, 0.9);
  border-radius: 22px;
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
}

.arch-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.arch-subtitle {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: #d1e0f5;
}

/* === Pyramid with triangular background === */
.arch-pyramid {
  position: relative;
  margin-top: 0.5rem;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Triangle shape behind the layers */
.arch-pyramid::before {
  content: "";
  position: absolute;
  inset: 0.1rem 0.4rem 0.1rem;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.98));
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  opacity: 0.95;
  z-index: 0;
}

/* Layers inside the triangle */
.arch-layer {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.84rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.96);
  margin-inline: auto;
}

.arch-layer p {
  margin: 0.18rem 0 0;
  color: #dde7ff;
}

.arch-layer-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Widths to visually form a pyramid *inside* the triangle */
.arch-layer--edge {
  width: 92%;
}

.arch-layer--genai {
  width: 72%;
}

.arch-layer--activities {
  width: 52%;
}

.arch-footnote {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

/* ========= Common section layout ========= */
.section {
  padding: 3.4rem 0;
}

.section-header {
  max-width: 46rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0.1rem 0 0;
  color: #d1e0f5;
}

.section-inner {
  border-radius: 24px;
  padding: 2.4rem 2.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.55);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.section-intro {
  margin: 0 0 1.6rem;
  color: #d1e0f5;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}

.split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.split-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.split-text > p {
  margin: 0 0 0.9rem;
  color: #d1e0f5;
}

.section-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* Feature chips */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-chip {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.8rem 0.85rem;
  background: rgba(18, 30, 48, 0.9);
}

.feature-chip h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.feature-chip p {
  margin: 0;
  font-size: 0.83rem;
  color: #cbd5f5;
}

/* Bullets */
.bullets {
  margin: 0.6rem 0 0.4rem;
  padding-left: 1.2rem;
  color: #cbd5f5;
  font-size: 0.94rem;
}

.bullets li + li {
  margin-top: 0.25rem;
}

/* Media shells */
.split-media {
  display: flex;
  align-items: stretch;
}

/* Flush media */
.media-shell {
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.media-video,
.media-img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Stack section cards */
.section-stack {
  padding-bottom: 0.8rem;
}

.stack-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  background: rgba(18, 30, 48, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 1.1rem;
}

.stack-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.stack-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.stack-note {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: #d1e0f5;
}

/* Edge overview cards */
.section-edge-overview .section-inner {
  background: rgba(15, 23, 42, 0.96);
}

.edge-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.edge-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.9rem 1rem;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
}

.edge-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
}

.edge-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5f5;
}

/* Edge layer combined layout (01A + 01B) */
.edge-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.edge-layer-card {
  background: rgba(18, 30, 48, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edge-layer-title {
  margin: 0;
  font-size: 1.1rem;
}

.edge-layer-text {
  margin: 0;
  font-size: 0.9rem;
  color: #d1e0f5;
}

.edge-layer-note {
  margin: 0.4rem 0 0.6rem;
  font-size: 0.82rem;
  color: #cbd5f5;
}

.edge-layer-media {
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #22d3ee, #f97316);
  color: #020617;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* Contact */
.section-contact .section-inner {
  background: rgba(15, 23, 42, 0.96);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.25rem;
}

.contact-form {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.1rem 1.2rem 1rem;
  background: rgba(15, 23, 42, 0.95);
}

.contact-form h3 {
  margin: 0 0 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.form-row label {
  font-size: 0.85rem;
}

.form-row input,
.form-row textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.55rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #020617;
  color: #e5e7eb;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.4rem 0 1.6rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-meta {
  margin: 0;
}

/* ========= Responsive ========= */
@media (max-width: 900px) {
  .hero-inner,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .arch-card {
    margin-top: 1rem;
  }

  .split,
  .split-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .edge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .edge-layer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .arch-layer--activities,
  .arch-layer--genai,
  .arch-layer--edge {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 115%;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.8);
    padding: 0.7rem 0.8rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transform-origin: top right;
    transition: opacity 0.14s ease-out, transform 0.14s ease-out;
  }

  .nav-list.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}
