/* ============================================================
   QBOT Technologies — Landing Page Styles
   ============================================================ */

/* ------------------------------------------------------------
   CSS Variables
------------------------------------------------------------ */
:root {
  --red:          #E22441;
  --red-hover:    #C41E37;
  --red-subtle:   rgba(226, 36, 65, 0.08);

  --bg:           #F5F6F8;
  --surface:      #FFFFFF;
  --surface-2:    #ECEEF2;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);

  --text:         #111318;
  --text-muted:   #5C5E6E;
  --text-subtle:  #9A9BA8;

  /* hero-specific dark palette */
  --hero-bg:        #0E0F11;
  --hero-surface:   #161719;
  --hero-border:    rgba(255, 255, 255, 0.08);
  --hero-text:      #F0F0F2;
  --hero-muted:     #9A9BA5;
  --hero-subtle:    #5A5B65;

  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.2s ease;

  --container:    1200px;
  --nav-h:        72px;
}

/* ------------------------------------------------------------
   Reset & Base
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ------------------------------------------------------------
   Container
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(226, 36, 65, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--text);
  border: 2px solid rgba(0,0,0,0.15);
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover {
  background: var(--red-subtle);
  transform: translateY(-1px);
}

.btn-sm  { font-size: 0.8125rem; padding: 8px 16px; }
.btn-lg  { font-size: 1rem;      padding: 14px 28px; }
.btn-full { width: 100%; }

/* ------------------------------------------------------------
   Navbar
------------------------------------------------------------ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

#nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

#nav-menu ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.05); }

.nav-cta { margin-left: auto; flex-shrink: 0; }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background var(--transition);
}
#hamburger:hover { background: rgba(255,255,255,0.08); }

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#hamburger:hover { background: rgba(0,0,0,0.06); }

#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(245, 246, 248, 0.96) 0%,
      rgba(242, 244, 249, 0.92) 50%,
      rgba(238, 242, 250, 0.88) 100%
    ),
    url('../assets/img-robot-white.jpg') center / cover no-repeat;
}

/* subtle red accent glow — keeps brand presence */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 75% 55%, rgba(226,36,65,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(226, 36, 65, 0.09);
  border: 1px solid rgba(226, 36, 65, 0.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111318;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: #4A4C5A;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-modalities {
  font-size: 0.8125rem;
  color: #666;
  max-width: 560px;
  margin: -4px auto 20px;
  line-height: 1.6;
}

.hero-response {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 20px;
}

.hero-trust {
  font-size: 0.8125rem;
  color: #888;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.10);
  max-width: 520px;
  margin: 0 auto;
}

.hero-br { display: inline; }

/* ------------------------------------------------------------
   Section Shared
------------------------------------------------------------ */
section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Value Pillars
------------------------------------------------------------ */
#value-pillars {
  background: var(--bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--red-subtle);
  border: 1px solid rgba(226, 36, 65, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.pillar-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.pillar-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.pillar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ------------------------------------------------------------
   What We Offer
------------------------------------------------------------ */
#what-we-offer { background: var(--surface); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.offer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.offer-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.offer-icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.offer-icon svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.offer-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.offer-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Dataset Showcase
------------------------------------------------------------ */
#datasets { background: var(--bg); }

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dataset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.dataset-card:hover {
  border-color: rgba(226, 36, 65, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.dataset-card.featured {
  border-color: rgba(226, 36, 65, 0.2);
}

.card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-subtle);
}

.card-img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.card-img-placeholder span {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Card media area — gallery */
.card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: default;
}

.card-media.has-images {
  cursor: pointer;
}

.card-media.has-images:hover .gallery-overlay {
  opacity: 1;
}

.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-media.has-images:hover .card-preview-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 17, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
}

.gallery-overlay svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.gallery-overlay span {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(14, 15, 17, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------
   Lightbox
------------------------------------------------------------ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.90);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.lb-window {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(90vh - 80px);
}

#lb-img {
  display: block;
  max-width: min(88vw, 860px);
  max-height: calc(90vh - 90px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lb-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  gap: 12px;
}

#lb-title {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#lb-counter {
  color: rgba(255,255,255,0.45);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,0.22);
}

.lb-close {
  top: -54px;
  right: 0;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev { left: -60px; }
.lb-next { right: -60px; }

.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

.lb-prev svg,
.lb-next svg,
.lb-close svg {
  width: 20px;
  height: 20px;
}

.lb-prev:disabled,
.lb-next:disabled {
  opacity: 0.25;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: -48px; right: 0; }
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(226, 36, 65, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  align-self: flex-start;
}

.card-camera-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: -2px;
}

.camera-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-value {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 2px solid var(--red);
  border-radius: 0 6px 6px 0;
}

.card-specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: var(--text-subtle); }
.spec-value { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.card-body .btn { margin-top: auto; padding-top: 4px; }

/* ------------------------------------------------------------
   Schema Preview
------------------------------------------------------------ */
#schema-preview {
  background: #131C2E;
  padding: 72px 0;
}

#schema-preview .section-header h2 {
  color: #F0F0F2;
}

#schema-preview .section-sub {
  color: rgba(240, 240, 242, 0.55);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 6px;
  color: #7DD3FC;
}

.schema-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.schema-panel-bar {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schema-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.schema-dataset-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}

.schema-pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  color: #7A8FA8;
  background: #131C2E;
  white-space: pre;
  tab-size: 2;
}

/* Syntax colours */
.sk { color: #7DD3FC; }              /* key — sky blue */
.sv { color: #86EFAC; }              /* string value — green */
.sn { color: #FDE68A; }              /* number value — amber */
.sc { color: #6B8096; font-style: italic; } /* comment — visible muted blue-gray */

/* ------------------------------------------------------------
   Use Cases
------------------------------------------------------------ */
#use-cases { background: var(--surface); }

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.usecase-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.usecase-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.usecase-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usecase-icon svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.usecase-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.usecase-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Collaboration
------------------------------------------------------------ */
#collaboration { background: var(--bg); }

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.collab-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.collab-card.collab-featured {
  border-color: rgba(226, 36, 65, 0.3);
  background: linear-gradient(160deg, #fff8f9 0%, var(--surface) 100%);
}

.collab-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.collab-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.collab-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.collab-card .btn { align-self: flex-start; }

.pricing-signal {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------------------
   Why QBOT
------------------------------------------------------------ */
#why-qbot {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    url('../assets/img-factory-worker.jpg') center / cover no-repeat;
}

.why-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  padding: 52px 60px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.why-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 4px;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-content p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.why-content p:first-child {
  font-size: 1.125rem;
  color: var(--text);
}

/* ------------------------------------------------------------
   Contact
------------------------------------------------------------ */
#contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  margin-bottom: 32px !important;
}

.contact-email a {
  color: var(--red);
  transition: color var(--transition);
}
.contact-email a:hover { color: var(--red-hover); }

.contact-email svg { color: var(--text-subtle); flex-shrink: 0; }

.contact-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item svg { color: var(--red); flex-shrink: 0; }

/* Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.required { color: var(--red); }

.optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-subtle);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5B65' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 36, 65, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-subtle);
}

.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
}

.form-success[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.form-reset-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 6px;
  color: #4ade80;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.form-reset-btn:hover {
  background: rgba(74, 222, 128, 0.1);
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer-brand img { height: 28px; margin-bottom: 8px; }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  padding-top: 4px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-subtle);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-email {
  font-size: 0.875rem;
  color: var(--red);
  transition: color var(--transition);
}
.footer-email:hover { color: var(--red-hover); }

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-trust {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-portal {
  font-size: 0.75rem;
  color: var(--text-subtle);
  opacity: 0.6;
}

/* ------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .dataset-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-right { grid-column: 1 / -1; text-align: left; }
}

/* ------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
------------------------------------------------------------ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  section { padding: 64px 0; }

  /* Nav */
  #hamburger { display: flex; }
  .nav-cta { display: none; }

  #nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 16px 24px 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    justify-content: flex-start;
  }

  #nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  /* Hero */
  #hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .hero-br { display: none; }

  /* Grids → single column */
  .pillars-grid { grid-template-columns: 1fr; gap: 1px; }
  .offer-grid { grid-template-columns: 1fr; }
  .dataset-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Why */
  .why-inner { padding: 28px 24px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { justify-content: flex-start; }
  .footer-right { text-align: left; }
}

/* ------------------------------------------------------------
   Responsive — Small Mobile (≤ 400px)
------------------------------------------------------------ */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .pillar-card { padding: 28px 20px; }
  .card-body { padding: 18px; }
  .collab-card { padding: 28px 20px; }
  .why-inner { padding: 24px 20px; }
}
