/* ============================================================
   ZENIXAI SOLUTION - APPLICATION DEVELOPMENT STYLESHEET
   Typography: Roboto (H1-H4), Poppins (Body & Buttons), JetBrains Mono (Code/Tags)
   ============================================================ */

/* CSS Variables */
:root {
  --navy-950: #070c16;
  --navy-900: #0b1220;
  --navy-850: #0e172a;
  --navy-800: #121c30;
  --navy-700: #1a2744;
  --blue: #2d6df3;
  --blue-light: #528bfa;
  --blue-soft: rgba(45, 109, 243, 0.12);
  --amber: #feb542;
  --amber-soft: rgba(254, 181, 66, 0.15);
  --green: #3fc68e;
  --green-soft: rgba(63, 198, 142, 0.15);
  --ink-900: #0d1424;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
}

/* Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   STRICT TYPOGRAPHY RULES (Roboto H1-H4 & Poppins P/Btn)
   ============================================================ */
h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.015em;
}

h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}

h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-900);
}

p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
}

button, .btn {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 14px 28px;
}

/* ============================================================
   MOBILE RESPONSIVE RULES (max-width: 550px)
   ============================================================ */
@media (max-width: 550px) {
  h1 {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 26px !important;
    line-height: 1.32 !important;
  }

  h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  p {
    font-size: 16px !important;
    line-height: 28px !important;
  }
}

/* Monospace Tags */
.font-mono, .tag, .eyebrow, .card-num, .console {
  font-family: 'JetBrains Mono', monospace;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.bg-light {
  background-color: var(--bg-white);
}

/* Section Header - Center & Full Width */
.section-head-center {
  width: 100%;
  text-align: center;
  margin-bottom: 56px;
}

.section-head-center .eyebrow {
  margin: 0 auto 16px;
}

.section-head-center h2 {
  margin-bottom: 16px;
}

.section-head-center .lead {
  width: 100%;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ============================================================
   1. HERO STYLES & CONSOLE
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(circle at top right, #132247 0%, var(--navy-950) 65%);
  color: #fff;
  padding: 100px 6vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.accent {
  color: var(--blue-light);
}

.subhead {
  color: #94a3b8;
  margin-top: 20px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.justify-center {
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(45, 109, 243, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 109, 243, 0.5);
}

.btn-primary .arrow {
  margin-left: 8px;
  transition: transform 0.2s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Signature Pipeline Console */
.console {
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.console-head {
  background: var(--navy-850);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.console-head .path {
  color: #64748b;
}

.console-head .env {
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.console-head .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.steps {
  padding: 20px 24px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.step:last-child {
  border-bottom: none;
}

.step-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-marker .core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
}

.step[data-s="3"] .step-marker {
  border-color: var(--green);
}
.step[data-s="3"] .step-marker .core {
  background: var(--green);
}

.step[data-s="2"] .step-marker {
  border-color: var(--amber);
  animation: pulse 1.5s infinite;
}
.step[data-s="2"] .step-marker .core {
  background: var(--amber);
}

.step-body {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
}

.step-name {
  color: #e2e8f0;
}

.step-tag {
  color: #64748b;
  font-size: 11px;
}

.step[data-s="3"] .step-tag {
  color: var(--green);
}
.step[data-s="2"] .step-tag {
  color: var(--amber);
}

.console-foot {
  background: var(--navy-850);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.console-foot .live {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-foot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   2. ABOUT SECTION STYLES
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.callout {
  margin-top: 28px;
  padding: 18px 24px;
  background: #ffffff;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.callout p {
  font-weight: 500;
  color: var(--ink-900);
}

.visual-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.visual-panel-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.visual-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.illustration-caption {
  font-size: 12px !important;
  color: var(--ink-500);
  text-align: center;
  margin-top: 12px;
}

.image-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px 16px;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
}

.badge-title {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue-light);
  text-transform: uppercase;
}

.badge-sub {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

/* ============================================================
   3. WHAT WE OFFER (CARDS GRID)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.card[data-c="amber"] .card-icon {
  background: var(--amber-soft);
  color: #d97706;
}

.card[data-c="green"] .card-icon {
  background: var(--green-soft);
  color: #059669;
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-500);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-foot .tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-700);
  font-weight: 600;
}

 /* ============================================================
   4. PROCESS & DELIVERY (DYNAMIC HOVER ON ALL CARDS)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.process-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.process-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.3s ease;
}

.process-icon {
  color: var(--ink-500);
  transition: color 0.3s ease;
}

.process-card h3 {
  margin-bottom: 12px;
  color: var(--ink-900);
  transition: color 0.3s ease;
}

.process-card p {
  color: var(--ink-500);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.process-card-foot {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  transition: border-color 0.3s ease;
}

.deliverable-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.deliverable-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.3s ease;
}

/* ============================================================
   HOVER STATE: 
   ============================================================ */
.process-card:hover {
  background: var(--navy-900) !important;
  color: #ffffff !important;
  border: 1px solid rgba(45, 109, 243, 0.5) !important;
  box-shadow: 0 16px 36px rgba(7, 12, 22, 0.35) !important;
  transform: translateY(-4px);
}

.process-card:hover h3 {
  color: #ffffff !important;
}

.process-card:hover p {
  color: #94a3b8 !important;
}

.process-card:hover .process-num {
  background: var(--blue) !important;
  color: #ffffff !important;
}

.process-card:hover .process-icon {
  color: var(--blue-light) !important;
}

.process-card:hover .process-card-foot {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

.process-card:hover .deliverable-text {
  color: var(--green) !important;
}

/* ============================================================
   5. WHY US SECTION
   ============================================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all 0.2s;
}

.pillar-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.pillar-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h3 {
  margin-bottom: 4px;
}

.pillar-content p {
  color: var(--ink-500);
  margin-bottom: 8px;
}

.pillar-tag {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-700);
  font-weight: 500;
}

/* ============================================================
   6. VALUE CREATION (HORIZONTAL STREAM)
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f1f5f9;
}

.filter-btn.active {
  background: var(--navy-900) !important;
  color: #ffffff !important;
  border-color: var(--navy-900) !important;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.2);
}

.value-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.value-row {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  align-items: center;
  gap: 24px;
  transition: all 0.2s ease;
}

.value-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.value-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.value-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.value-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-blue { background: #eff6ff; color: var(--blue); }
.badge-amber { background: #fffbeb; color: #d97706; }
.badge-green { background: #ecfdf5; color: #059669; }

.value-row-center p {
  color: var(--ink-500);
}

.value-row-right {
  display: flex;
  justify-content: flex-end;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

/* ============================================================
   7. FINAL CTA (FIXED CONTRAST & CENTER ALIGNMENT)
   ============================================================ */
.hero-cta {
  padding: 100px 6vw;
  text-align: center;
}

.hero-cta h2 {
  color: #ffffff !important; /* CRITICAL FIX: Ensure white title on dark background */
  max-width: 900px;
  margin: 0 auto 16px;
}

.hero-cta .subhead {
  color: #94a3b8 !important;
  max-width: 800px;
  margin: 0 auto;
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-subnote {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
}

/* ============================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner, .about-grid, .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards-grid, .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-row-right {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cards-grid, .process-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================================
   FIXED VISUAL PANEL & IMAGE FULL HEIGHT STRETCH
   ============================================================ */

/* 1. வலதுபுற அட்டைப் பெட்டி முழு உயரம் எடுக்க */
.visual-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%; /* இடதுபுற உயரத்திற்கு சமமாக இருக்கும் */
}

/* 2. படத்தின் உள் பகுதி முழு இடத்தையும் நிரப்ப */
.visual-panel-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  flex: 1; /* மீதமுள்ள முழு உயரத்தையும் எடுத்துக்கொள்ளும் */
  display: flex;
  min-height: 450px;
}

/* 3. படம் 100% உயரத்தை அழகாக நிரப்ப */
.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* படம் இழுக்கப்படாமல் (stretch ஆகாமல்) முழுமையாகத் தெரியும் */
  display: block;
}

/* 4. விளக்கம் கீழ்ப்பகுதியில் சரியாக அமைய */
.illustration-caption {
  font-size: 12px !important;
  color: var(--ink-500);
  text-align: center;
  margin-top: 14px;
  flex-shrink: 0;
}

