/* ==========================================================================
   RpSis. - Design System & Modern CSS Architecture
   Domain: rpsis.com
   Color Palette: Deep Tech Dark Mode (#07111F, #0D1B2A, #38BDF8, #10B981)
   ========================================================================== */

/* --- CSS RESET & VARIABLES --- */
:root {
  /* Colors */
  --bg-dark: #07111F;
  --bg-dark-alt: #081525;
  --surface-card: #0D1B2A;
  --surface-card-elevated: #10243A;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(56, 189, 248, 0.3);

  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Brand Accents */
  --accent-cyan: #38BDF8;
  --accent-blue: #2563EB;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow-cyan: 0 0 25px rgba(56, 189, 248, 0.15);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Layout */
  --header-height: 80px;
  --container-max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* --- AMBIENT BACKGROUND GLOWS --- */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
}

.glow-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(37, 99, 235, 0.1) 70%);
}

.glow-2 {
  bottom: 10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(7, 17, 31, 0) 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
}

/* --- REUSABLE UTILITIES & LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 110px 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- BUTTONS & CTAS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--surface-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* --- HEADER & STICKY NAV --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  background: rgba(7, 17, 31, 0.95);
  border-bottom-color: rgba(56, 189, 248, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition-fast);

}

.nav-link:hover {
  color: var(--accent-cyan);
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.975rem;
  color: var(--text-primary);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Console Card Mock UI */
.console-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.console-header {
  background: rgba(16, 36, 58, 0.8);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
}

.console-controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.console-body {
  padding: 24px;
}

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

.metric-box {
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.highlight-emerald {
  color: var(--accent-emerald);
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.console-terminal {
  background: #040911;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #D1D5DB;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-timestamp { color: var(--text-muted); }
.t-tag.info { color: var(--accent-cyan); font-weight: 600; }
.t-tag.success { color: var(--accent-emerald); font-weight: 600; }
.t-hl { color: #F59E0B; }
.t-prompt { color: var(--accent-cyan); font-weight: bold; }
.t-cursor { animation: blink 1s infinite; color: var(--accent-cyan); }

.console-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--surface-border);
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
}

.flow-step.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --- FRANJA DE PILARES --- */
.pillars-section {
  padding: 40px 0;
  border-y: 1px solid var(--surface-border);
  background: rgba(13, 27, 42, 0.4);
}

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

.pillar-card {
  background: rgba(16, 36, 58, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-hover);
  background: rgba(16, 36, 58, 0.8);
}

.pillar-icon {
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- SOLUCIONES (GRID 6 CARDS) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.solution-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.solution-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.solution-bullets {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-bullets li {
  font-size: 0.825rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
}

.solution-bullets li::before {
  content: '•';
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* --- ARQUITECTURA E INTEGRACIÓN --- */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.arch-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.arch-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(13, 27, 42, 0.6);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
}

.f-icon {
  margin-top: 2px;
}

/* CSS/SVG Diagram Card */
.diagram-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}

.pulse-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
}

.diagram-flow-container {
  display: grid;
  grid-template-columns: 1fr 40px 1.2fr 40px 1fr;
  align-items: center;
  gap: 4px;
}

.diagram-layer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-title {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

.node-box {
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid var(--surface-border);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.node-box:hover {
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.core-hub-box {
  background: linear-gradient(135deg, rgba(16, 36, 58, 0.9) 0%, rgba(7, 17, 31, 0.9) 100%);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.core-logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #FFFFFF;
}

.core-sub-modules {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-chip {
  font-size: 0.675rem;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 4px;
}

.diagram-connectors {
  height: 200px;
  position: relative;
}

/* --- ESCENARIOS DE APLICACIÓN --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.scenario-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: var(--transition-smooth);
}

.scenario-card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
}

.scenario-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.2);
  position: absolute;
  top: 24px;
  right: 28px;
}

.scenario-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.scenario-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- METODOLOGÍA (4 FASES) --- */
.method-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 30px;
}

.method-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-marker {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.marker-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* --- ENFOQUE RPSIS (MANIFESTO) --- */
.manifesto-card {
  background: linear-gradient(135deg, #0A192F 0%, #0D2137 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-glow-cyan);
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.manifesto-quote {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 24px;
  font-style: normal;
}

.manifesto-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- PREGUNTAS FRECUENTES (FAQ ACCORDION) --- */
.faq-accordion-wrapper {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--surface-border-hover);
  background: var(--surface-card-elevated);
}

.faq-summary {
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CONTACTO & FORMULARIO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-label {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.c-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.c-val:hover {
  color: var(--accent-cyan);
}

.c-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Form Styles */
.contact-form-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(7, 17, 31, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.form-error {
  font-size: 0.775rem;
  color: var(--accent-red);
  margin-top: 4px;
  display: block;
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--accent-red);
}

/* Feedback Box */
.form-feedback-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-feedback-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #A7F3D0;
}

.form-feedback-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #FCA5A5;
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.submitting .btn-text {
  display: none;
}

.btn.submitting .btn-spinner {
  display: inline-block;
}

/* --- FOOTER --- */
.site-footer {
  background: #030810;
  border-top: 1px solid var(--surface-border);
  padding: 80px 0 40px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 60px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.legal-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid,
  .arch-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav-list {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .solutions-grid,
  .pillars-grid,
  .scenarios-grid,
  .method-timeline {
    grid-template-columns: 1fr;
  }

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

  .diagram-flow-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .diagram-connectors {
    display: none;
  }

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

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

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
