/* ==========================================================================
   EthicsComputer — Corporate Design System & Brand Identity Stylesheet
   Version: 3.0.0 Enterprise Edition
   Philosophy: Technical Precision, Enterprise Trust, Clean Architecture, Human Expertise
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  /* ── Core Brand Palette ─────────────────────────────── */
  --ec-navy-950: #070d19;
  --ec-navy-900: #0b1326;
  --ec-navy-850: #0f1932;
  --ec-navy-800: #142244;
  --ec-navy-700: #1e315e;

  --ec-blue-900: #1e3a8a;
  --ec-blue-700: #1d4ed8;
  --ec-blue-600: #2563eb;
  --ec-blue-500: #3b82f6;
  --ec-blue-100: #dbeafe;
  --ec-blue-50:  #eff6ff;

  --ec-teal-700: #0f766e;
  --ec-teal-600: #0d9488;
  --ec-teal-50:  #f0fdfa;

  --ec-emerald-700: #047857;
  --ec-emerald-600: #059669;
  --ec-emerald-500: #10b981;
  --ec-emerald-50:  #ecfdf5;

  --ec-slate-900: #0f172a;
  --ec-slate-800: #1e293b;
  --ec-slate-700: #334155;
  --ec-slate-600: #475569;
  --ec-slate-500: #64748b;
  --ec-slate-400: #94a3b8;
  --ec-slate-300: #cbd5e1;
  --ec-slate-200: #e2e8f0;
  --ec-slate-100: #f1f5f9;
  --ec-slate-50:  #f8fafc;

  --ec-white:     #ffffff;

  /* ── Semantic Tokens ───────────────────────────────── */
  --ec-bg:          #ffffff;
  --ec-bg-alt:      #f8fafc;
  --ec-bg-dark:     var(--ec-navy-900);
  --ec-bg-card:     #ffffff;
  --ec-text:        var(--ec-slate-800);
  --ec-text-dark:   var(--ec-slate-900);
  --ec-text-muted:  var(--ec-slate-600);
  --ec-text-faint:  var(--ec-slate-400);
  --ec-text-light:  #ffffff;

  --ec-border:      #e2e8f0;
  --ec-border-dark: rgba(255, 255, 255, 0.1);
  --ec-border-blue: #bfdbfe;

  --ec-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --ec-shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
  --ec-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --ec-shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);

  /* ── Typography Stack ──────────────────────────────── */
  --ec-font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ec-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ec-font-mono:    'JetBrains Mono', monospace;

  /* ── Radii ─────────────────────────────────────────── */
  --ec-radius-sm: 6px;
  --ec-radius-md: 10px;
  --ec-radius-lg: 14px;
  --ec-radius-xl: 20px;
  --ec-radius-full: 9999px;

  /* ── Transitions ───────────────────────────────────── */
  --ec-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ec-trans-fast: 0.15s ease;
  --ec-trans: 0.25s var(--ec-ease);
}

/* ── Anti-Gimmick Reset: Disable fake cursor followers and neon gradients ── */
#cursor-dot, #cursor-ring, .custom-cursor-dot, .custom-cursor-ring,
#cursor-circle, .custom-cursor-circle,
#ec-cursor-dot, #ec-cursor-ring, #ec-cursor-glow, .ec-cursor-dot, .ec-cursor-ring {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html, body {
  cursor: auto !important;
}

a, button, [role="button"], input[type="submit"], input[type="button"], select, label[for] {
  cursor: pointer !important;
}

.text-gradient-neon {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  color: var(--ec-blue-700) !important;
}

/* ── Base Typography Reset ───────────────────────────── */
body {
  font-family: var(--ec-font-body);
  color: var(--ec-text);
  background-color: var(--ec-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.ec-font-heading {
  font-family: var(--ec-font-display);
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ec-text-dark);
}

.ec-font-mono {
  font-family: var(--ec-font-mono);
}

/* ── Distinctive Button System ───────────────────────── */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ec-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.375rem;
  border-radius: var(--ec-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ec-trans-fast);
}

.ec-btn-primary {
  background-color: var(--ec-navy-900);
  color: var(--ec-white);
  border-color: var(--ec-navy-900);
  box-shadow: var(--ec-shadow-sm);
}

.ec-btn-primary:hover {
  background-color: var(--ec-blue-700);
  border-color: var(--ec-blue-700);
  color: var(--ec-white);
  box-shadow: var(--ec-shadow-md);
  transform: translateY(-1px);
}

.ec-btn-primary:active {
  transform: translateY(0);
}

.ec-btn-accent {
  background-color: var(--ec-blue-600);
  color: var(--ec-white);
  border-color: var(--ec-blue-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.ec-btn-accent:hover {
  background-color: var(--ec-blue-700);
  border-color: var(--ec-blue-700);
  color: var(--ec-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ec-btn-secondary {
  background-color: var(--ec-white);
  color: var(--ec-slate-700);
  border-color: var(--ec-slate-300);
  box-shadow: var(--ec-shadow-xs);
}

.ec-btn-secondary:hover {
  background-color: var(--ec-slate-50);
  color: var(--ec-navy-900);
  border-color: var(--ec-slate-400);
  transform: translateY(-1px);
}

.ec-btn-dark-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.ec-btn-dark-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ec-btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--ec-radius-sm);
}

.ec-btn-lg {
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--ec-radius-lg);
}

/* ── Eyebrow & Badges ────────────────────────────────── */
.ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ec-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ec-blue-700);
  background-color: var(--ec-blue-50);
  border: 1px solid var(--ec-blue-100);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--ec-radius-full);
  margin-bottom: 1.25rem;
}

.ec-eyebrow-dark {
  color: #93c5fd;
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.ec-eyebrow-emerald {
  color: var(--ec-emerald-700);
  background-color: var(--ec-emerald-50);
  border-color: #a7f3d0;
}

.ec-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ── Restrained Architectural Grid Lines ─────────────── */
.ec-grid-bg {
  position: relative;
  background-color: var(--ec-white);
}

.ec-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

/* ── Hero Enterprise Architecture Blueprint ──────────── */
.ec-architecture-frame {
  position: relative;
  background: #0b1326;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ec-radius-xl);
  box-shadow: 0 24px 48px -12px rgba(7, 13, 25, 0.5);
  overflow: hidden;
  padding: 1.75rem;
}

.ec-arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ec-arch-window-dots {
  display: flex;
  gap: 6px;
}

.ec-arch-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ec-arch-layer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ec-radius-md);
  padding: 1rem;
  margin-bottom: 0.875rem;
  transition: all var(--ec-trans);
}

.ec-arch-layer:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(37, 99, 235, 0.35);
}

.ec-arch-layer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ec-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.625rem;
  text-transform: uppercase;
}

.ec-arch-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ec-arch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--ec-font-body);
  font-size: 0.78125rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: var(--ec-radius-sm);
  transition: all var(--ec-trans-fast);
}

.ec-arch-pill:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.ec-arch-core-hub {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(15, 25, 50, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--ec-radius-md);
  padding: 1.125rem;
  margin-bottom: 0.875rem;
  position: relative;
}

.ec-arch-pulse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--ec-radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--ec-font-mono);
  font-size: 0.71875rem;
  color: #38bdf8;
}

/* ── Trust Credential Strip ─────────────────────────── */
.ec-trust-strip {
  background: #070d19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 0;
}

.ec-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ec-radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all var(--ec-trans-fast);
}

.ec-trust-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.ec-trust-badge svg {
  flex-shrink: 0;
}

/* ── Capabilities Asymmetrical Grid ─────────────────── */
.ec-cap-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 1.75rem;
  transition: all var(--ec-trans);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--ec-shadow-xs);
}

.ec-cap-card:hover {
  border-color: var(--ec-slate-300);
  box-shadow: var(--ec-shadow-md);
  transform: translateY(-2px);
}

.ec-cap-card-featured {
  background: #0b1326;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--ec-shadow-lg);
}

.ec-cap-card-featured:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(7, 13, 25, 0.6);
}

.ec-cap-num {
  font-family: var(--ec-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ec-slate-400);
}

.ec-cap-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--ec-radius-md);
  background: var(--ec-blue-50);
  color: var(--ec-blue-600);
  border: 1px solid var(--ec-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ec-cap-card-featured .ec-cap-icon-box {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.3);
}

/* ── Cybersecurity Lifecycle Architecture ────────────── */
.ec-sec-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

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

@media (max-width: 640px) {
  .ec-sec-lifecycle {
    grid-template-columns: 1fr;
  }
}

.ec-sec-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ec-radius-lg);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: all var(--ec-trans);
}

.ec-sec-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.ec-sec-step-num {
  font-family: var(--ec-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #34d399;
  margin-bottom: 0.75rem;
}

/* ── Practical AI Pipeline ───────────────────────────── */
.ec-ai-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .ec-ai-pipeline {
    grid-template-columns: 1fr;
  }
}

.ec-ai-node {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--ec-shadow-xs);
  position: relative;
  transition: all var(--ec-trans);
}

.ec-ai-node:hover {
  border-color: var(--ec-blue-500);
  box-shadow: var(--ec-shadow-sm);
}

.ec-ai-step-badge {
  font-family: var(--ec-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ec-blue-600);
  margin-bottom: 0.5rem;
}

/* ── Platforms Product Showcase ──────────────────────── */
.ec-product-card {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  overflow: hidden;
  box-shadow: var(--ec-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--ec-trans);
}

.ec-product-card:hover {
  border-color: var(--ec-slate-300);
  box-shadow: var(--ec-shadow-lg);
  transform: translateY(-3px);
}

.ec-product-mockup-frame {
  background: #0b1326;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  position: relative;
}

.ec-product-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ec-product-mockup-dots {
  display: flex;
  gap: 5px;
}

.ec-product-mockup-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ec-product-mockup-title {
  font-family: var(--ec-font-mono);
  font-size: 0.6875rem;
  color: #94a3b8;
}

.ec-product-ui-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ec-radius-md);
  padding: 1rem;
}

/* ── Large Editorial Case Studies ────────────────────── */
.ec-case-block {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  overflow: hidden;
  box-shadow: var(--ec-shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: all var(--ec-trans);
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .ec-case-block {
    grid-template-columns: 1fr;
  }
}

.ec-case-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ec-case-preview {
  background: #0b1326;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ec-case-preview {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
  }
}

.ec-case-stat-badge {
  font-family: var(--ec-font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

/* ── Industry Navigator ──────────────────────────────── */
.ec-industry-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 1.5rem;
  transition: all var(--ec-trans-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.ec-industry-card:hover {
  border-color: var(--ec-blue-500);
  box-shadow: var(--ec-shadow-md);
  transform: translateY(-2px);
}

.ec-industry-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ec-radius-md);
  background: var(--ec-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-slate-700);
  margin-bottom: 1rem;
  transition: all var(--ec-trans-fast);
}

.ec-industry-card:hover .ec-industry-icon {
  background: var(--ec-blue-50);
  color: var(--ec-blue-600);
}

/* ── High-Conversion Form ────────────────────────────── */
.ec-form-input,
.ec-form-select,
.ec-form-textarea {
  width: 100%;
  font-family: var(--ec-font-body);
  font-size: 0.9375rem;
  color: var(--ec-slate-900);
  background: #ffffff;
  border: 1px solid var(--ec-slate-300);
  border-radius: var(--ec-radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--ec-trans-fast);
  outline: none;
}

.ec-form-input:focus,
.ec-form-select:focus,
.ec-form-textarea:focus {
  border-color: var(--ec-blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ec-pill-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--ec-radius-full);
  border: 1px solid var(--ec-slate-300);
  background: #ffffff;
  color: var(--ec-slate-700);
  cursor: pointer;
  transition: all var(--ec-trans-fast);
  user-select: none;
}

.ec-pill-select-label:hover {
  border-color: var(--ec-slate-400);
  background: var(--ec-slate-50);
}

input[type="radio"]:checked + .ec-pill-select-label {
  background: var(--ec-navy-900);
  color: #ffffff;
  border-color: var(--ec-navy-900);
}

/* ── Sticky Mobile Bar ───────────────────────────────── */
@media (max-width: 768px) {
  .ec-mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid var(--ec-slate-200);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    z-index: 800;
  }

  .ec-mobile-bottom-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ec-slate-700);
    text-decoration: none;
    line-height: 1.2;
  }
}

@media (min-width: 769px) {
  .ec-mobile-bottom-bar {
    display: none;
  }
}
