/* ============================================
   NexusFabric Networks — Enterprise Marketing Site
   ============================================ */

:root {
  --bg-primary: #060d18;
  --bg-secondary: #0a1628;
  --bg-card: #0f1d32;
  --bg-card-hover: #142640;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 212, 170, 0.25);
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00d4aa;
  --accent-light: #33e0be;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --blue: #3b82f6;
  --gradient: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.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;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-full { width: 100%; }

/* ---- Typography helpers ---- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: 16px;
}

.section-desc.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon { width: 32px; height: 32px; }

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 212, 170, 0.12);
  top: -10%;
  right: -5%;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.1);
  bottom: 10%;
  left: -10%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Network diagram */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  margin-top: 48px;
}

.network-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
}

.connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.conn-line {
  stroke: rgba(0, 212, 170, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.data-packet { fill: var(--accent); }

.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.node-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  z-index: 2;
  flex-direction: column;
  gap: 4px;
}

.node-ring {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 50%;
  animation: ring-pulse 3s infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

.node-gpu {
  width: 90px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.node-1 { top: 8%; left: 12%; }
.node-2 { top: 8%; right: 12%; }
.node-3 { bottom: 12%; left: 10%; }
.node-4 { bottom: 12%; right: 10%; }

/* ---- Partners ---- */
.partners {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.partners-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-logos {
  display: flex;
  gap: 64px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}

.partner-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Global ---- */
.global-section {
  padding: 100px 0;
}

.global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.global-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.global-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.global-features svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.map-container {
  position: relative;
  aspect-ratio: 2/1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.world-outline {
  width: 100%;
  height: 100%;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: dot-pulse 2s infinite;
}

.map-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 50%;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.4); }
}

.map-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.map-dot:hover .map-tooltip { opacity: 1; }

/* ---- Solutions ---- */
.solutions {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.solution-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.06) 100%);
  border-color: var(--border-accent);
}

.solution-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.solution-link:hover { gap: 10px; }

/* ---- Industries ---- */
.industries {
  padding: 100px 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  padding: 32px 24px;
  border-left: 2px solid var(--border);
  transition: var(--transition);
}

.industry-card:hover {
  border-left-color: var(--accent);
  padding-left: 28px;
}

.industry-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.industry-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 12px 0 8px;
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---- Case Studies ---- */
.case-studies {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.case-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.case-card-large {
  grid-row: span 2;
}

.case-image {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.case-card-large .case-image { height: 280px; }

.case-image-1 {
  background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, rgba(0, 212, 170, 0.15) 100%);
}

.case-image-2 {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 50%, rgba(59, 130, 246, 0.15) 100%);
}

.case-image-3 {
  background: linear-gradient(135deg, #0a2818 0%, #134e3a 50%, rgba(0, 212, 170, 0.12) 100%);
}

.case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(6, 13, 24, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.case-body { padding: 28px; }

.case-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.case-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.case-metrics {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-metrics div {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.case-metrics strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Numbers ---- */
.numbers {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.numbers-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.number-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.capability-headline {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.number-label {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Services Highlight ---- */
.services-highlight {
  padding: 80px 0;
}

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

.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-accent);
}

.service-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---- Resources ---- */
.resources {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

.resource-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.resource-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.resource-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}

.resource-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-form select {
  appearance: none;
  cursor: pointer;
}

.cta-form textarea { resize: vertical; min-height: 80px; }

/* ---- Footer ---- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-featured {
    grid-row: span 1;
  }

  .global-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .case-card-large { grid-row: span 1; }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    padding: 40px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(6, 13, 24, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) { opacity: 0; }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-actions .btn-primary { display: none; }

  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

/* ---- Products & Services page ---- */
.nav-links a.nav-active {
  color: var(--text-primary);
}

.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 64px) 0 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.ps-inquiry {
  padding: 0 0 64px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.ps-inquiry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.06) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}

.ps-inquiry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ps-inquiry-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
}

.ps-browse {
  padding: 80px 0 100px;
}

.ps-browse-header {
  text-align: center;
  margin-bottom: 56px;
}

.ps-browse-divider {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 16px;
}

.ps-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ps-category-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.ps-category-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.ps-category-visual {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.ps-category-visual svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.ps-category-visual-1 {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.ps-category-visual-2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(0, 212, 170, 0.08) 100%);
}

.ps-category-visual-3 {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(15, 39, 68, 0.5) 100%);
}

.ps-category-visual-4 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 39, 68, 0.5) 100%);
}

.ps-category-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ps-category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.ps-category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.ps-category-card:hover .ps-category-link {
  gap: 10px;
}

.ps-detail {
  padding: 100px 0;
}

.ps-detail-alt {
  background: var(--bg-secondary);
}

.ps-detail-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.ps-offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ps-offering-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.ps-detail-alt .ps-offering-card {
  background: var(--bg-primary);
}

.ps-offering-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.ps-offering-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.ps-offering-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.ps-cta {
  padding: 80px 0 100px;
}

.ps-cta-inner {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ps-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.ps-cta-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

@media (max-width: 1024px) {
  .ps-offerings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ps-inquiry-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .ps-category-grid {
    grid-template-columns: 1fr;
  }

  .ps-offerings-grid {
    grid-template-columns: 1fr;
  }

  .ps-cta-inner {
    padding: 40px 24px;
  }
}
