/* ============================================================
   AGR Robotics — pages/home.css
   Homepage: fullscreen hero + sections
   ============================================================ */

/* --- Fullscreen Hero --------------------------------------- */
.home-hero-fs {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Background — image or video */
.hero-fs-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Fallback gradient when no image/video */
.hero-fs-fallback {
  background: linear-gradient(135deg, #0D1117 0%, #1F2835 60%, #0A0F14 100%);
}

/* Dark overlay for text readability */
.hero-fs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,12, var(--overlay-op, 0.45));
  z-index: 1;
}
/* Extra gradient at bottom for stats bar legibility */
.hero-fs-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(5,8,12,0.75) 0%, transparent 100%);
}

/* Gold grid texture */
.hero-fs-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(200,168,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}

/* Text content */
.hero-fs-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 48px 120px;
  width: 100%;
}

.hero-fs-content .hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-fs-content .hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-fs-content .hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(58px, 8.5vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 32px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  text-wrap: balance;
  max-width: 860px;
}
.hero-fs-content .hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-fs-content .hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-fs-content .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats bar — pinned to bottom inside hero */
.hero-fs-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,8,12,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-fs-stats .hero-stat {
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-fs-stats .hero-stat:last-child { border-right: none; }
.hero-fs-stats .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.hero-fs-stats .stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 80px;
  right: 48px;
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* --- Problem section --------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.problem-col {
  padding: 44px;
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72));
}
.problem-col:last-child { border-right: none; }
.problem-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.problem-statement {
  padding: 40px 44px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  grid-column: 1 / -1;
}
.problem-statement p {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-primary);
  line-height: 1.4;
  max-width: 860px;
}
.problem-statement p em {
  font-style: normal;
  color: var(--accent);
}

/* --- Pillars (solutions) ----------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.pillar-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72));
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.pillar-card:last-child { border-right: none; }
.pillar-card:hover { background: linear-gradient(180deg, rgba(31,40,53,0.95), rgba(31,40,53,0.8)); }
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pillar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.pillar-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pillar-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* --- Industries grid --------------------------------------- */
.home-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.industry-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.industry-card:last-child { border-right: none; }
.industry-card:hover { background: var(--bg-tertiary); }
.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s;
}
.industry-card:hover::after { transform: scaleX(1); }
.industry-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.industry-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none; stroke-width: 1.5;
}
.industry-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.industry-challenge {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
}
.industry-card:hover .industry-link { gap: 12px; }

/* --- Validation strip -------------------------------------- */
.validation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.val-left {
  padding: 48px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
}
.val-right {
  padding: 48px;
  background: var(--bg-secondary);
}
.val-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.val-metric {
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.val-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 5px;
}
.val-metric-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* --- Global support --------------------------------------- */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.gs-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72));
  transition: background 0.25s;
}
.gs-card:last-child { border-right: none; }
.gs-card:hover { background: var(--bg-tertiary); }
.gs-region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.gs-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.gs-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1100px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-visual { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { border-right: none; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .trust-item:last-child { border-bottom: none; }
  .home-industries-grid { grid-template-columns: 1fr 1fr; }
  .industry-card:nth-child(2) { border-right: none; }
  .gs-grid { grid-template-columns: 1fr; }
  .gs-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .gs-card:last-child { border-bottom: none; }
}

@media (max-width: 860px) {
  .home-hero-inner { padding: 0 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border-subtle); min-height: auto; }
  .trust-strip-inner { padding: 0 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-col { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .problem-col:last-child { border-bottom: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .pillar-card:last-child { border-bottom: none; }
  .home-industries-grid { grid-template-columns: 1fr; }
  .industry-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .validation-inner { grid-template-columns: 1fr; }
  .val-left { border-right: none; border-bottom: 1px solid var(--border-subtle); }
}

/* --- Problem section --------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.problem-col {
  padding: 44px;
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72));
}
.problem-col:last-child { border-right: none; }
.problem-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.problem-statement {
  padding: 40px 44px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  grid-column: 1 / -1;
}
.problem-statement p {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-primary);
  line-height: 1.4;
  max-width: 860px;
}
.problem-statement p em { font-style: normal; color: var(--accent); }

/* --- Pillars ----------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.pillar-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72));
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.pillar-card:last-child { border-right: none; }
.pillar-card:hover { background: linear-gradient(180deg, rgba(31,40,53,0.95), rgba(31,40,53,0.8)); }
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-number { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); margin-bottom: 20px; }
.pillar-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: 12px; }
.pillar-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }
.pillar-items { display: flex; flex-direction: column; gap: 6px; }
.pillar-item { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); padding-left: 12px; border-left: 1px solid var(--border); }

/* --- Industries -------------------------------------------- */
.home-industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.industry-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.industry-card:last-child { border-right: none; }
.industry-card:hover { background: var(--bg-tertiary); }
.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s;
}
.industry-card:hover::after { transform: scaleX(1); }
.industry-icon { width: 38px; height: 38px; margin-bottom: 22px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.industry-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.industry-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: 10px; }
.industry-challenge { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
.industry-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); transition: gap 0.2s; }
.industry-card:hover .industry-link { gap: 12px; }

/* --- Validation strip -------------------------------------- */
.validation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.val-left { padding: 48px; background: var(--bg-primary); border-right: 1px solid var(--border-subtle); }
.val-right { padding: 48px; background: var(--bg-secondary); }
.val-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.val-metric { padding: 18px 20px; background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: 10px; }
.val-metric-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--accent); font-weight: 500; margin-bottom: 5px; }
.val-metric-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }

/* --- Global support ---------------------------------------- */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.gs-card { padding: 36px 32px; border-right: 1px solid var(--border-subtle); background: linear-gradient(180deg, rgba(21,28,37,0.92), rgba(21,28,37,0.72)); transition: background 0.25s; }
.gs-card:last-child { border-right: none; }
.gs-card:hover { background: var(--bg-tertiary); }
.gs-region { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.gs-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 10px; }
.gs-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1100px) {
  .hero-fs-stats { grid-template-columns: 1fr 1fr; }
  .hero-fs-stats .hero-stat:nth-child(2) { border-right: none; }
  .hero-fs-stats .hero-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
  .home-industries-grid { grid-template-columns: 1fr 1fr; }
  .industry-card:nth-child(2) { border-right: none; }
  .industry-card:nth-child(3) { border-top: 1px solid var(--border-subtle); }
  .gs-grid { grid-template-columns: 1fr; }
  .gs-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .gs-card:last-child { border-bottom: none; }
  .validation-inner { grid-template-columns: 1fr; }
  .val-left { border-right: none; border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 860px) {
  .hero-fs-content { padding: 90px 20px 110px; }
  .hero-fs-content .hero-headline { font-size: clamp(48px, 12vw, 80px); }
  .hero-fs-content .hero-sub { font-size: 16px; }
  .hero-scroll-hint { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-col { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .home-industries-grid { grid-template-columns: 1fr; }
  .industry-card { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .hero-fs-stats { grid-template-columns: 1fr 1fr; }
  .hero-fs-stats .hero-stat { padding: 14px 16px; }
}
