/* ==========================================================================
   ZECONEX — GLOBAL STYLESHEET
   Typography: Roboto Mono exclusively across the entire website
   ========================================================================== */

/* Mandatory Google Font Import: Roboto Mono Only */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Brand Colour Palette */
  --color-primary: #123B32;        /* Primary forest green */
  --color-primary-dark: #0A241E;   /* Deep forest shade */
  --color-primary-light: #1A5447;  /* Mid forest tint */
  --color-lime: #C8F169;           /* Electric lime accent */
  --color-lime-hover: #B5DE54;     /* Darker lime for active hover */
  --color-lime-soft: #EEFAD4;      /* Soft lime background tint */
  --color-navy: #101C2C;           /* Midnight navy */
  --color-bg: #F7F8F3;             /* Warm off-white background */
  --color-white: #FFFFFF;          /* Pure white surfaces */
  --color-grey: #E7EAE4;           /* Soft grey borders/dividers */
  --color-grey-dark: #C9D0C5;      /* Darker grey for border hover */
  --color-text: #101C2C;           /* Primary text in midnight navy */
  --color-text-muted: #526058;     /* Secondary muted text */
  --color-blue: #477BFF;           /* Secondary electric blue for tech specs */

  /* Aliases & Complementary Palette for Cross-Page Consistency */
  --color-forest: #123B32;        /* Direct alias of primary forest green */
  --color-offwhite: #F7F8F3;      /* Direct alias of warm bg */
  --color-grey-light: #F0F3EE;    /* Soft surface grey for cards/tables */
  --color-mint: #C2DFD2;          /* Mint border tint for alert callouts */

  /* Custom Brand Mouse Pointer Tokens */
  --cursor-custom: url('../assets/icons/custom-cursor-32.png') 23 29, auto;
  --cursor-custom-pointer: url('../assets/icons/custom-cursor-32.png') 23 29, pointer;

  /* Global Typography Token — Roboto Mono Only */
  --font-primary: 'Roboto Mono', monospace;

  /* Sizing & Spacing Scale (4px/8px increments) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Container & Layout */
  --container-max: 1240px;
  --header-height: 76px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-card-lg: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(16, 28, 44, 0.04);
  --shadow-card: 0 4px 20px rgba(18, 59, 50, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 14px 34px rgba(18, 59, 50, 0.12), 0 3px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 45px rgba(16, 28, 44, 0.14);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  font-family: var(--font-primary);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: var(--font-primary);
  font-size: 0.92rem;
}

/* ==========================================================================
   GLOBAL CUSTOM DUAL-RING CURSOR EFFECT
   ========================================================================== */
@media (pointer: fine) and (hover: hover) {
  * {
    cursor: none !important;
  }

  #cursor {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
  }

  #cursor-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.2s ease-out;
    z-index: 999998;
    mix-blend-mode: difference;
    opacity: 0;
  }

  /* Interactive hover states on clickable elements */
  #cursor-border.is-hovering {
    width: 68px;
    height: 68px;
    border-width: 1.5px;
    background-color: rgba(255, 255, 255, 0.1);
  }

  #cursor.is-hovering {
    transform: translate(-50%, -50%) scale(0.6);
  }

  /* Active clicking / press states */
  #cursor-border.is-clicking {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.25);
  }

  #cursor.is-clicking {
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* Touch device fallback for mobile accessibility */
@media (pointer: coarse), (hover: none) {
  #cursor,
  #cursor-border {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

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

/* Accessibility Focus States — WCAG 2.1 AA/AAA Compliant (Min 3:1 Non-text contrast) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(200, 241, 105, 0.75);
  border-radius: var(--radius-sm);
}

/* High-contrast focus state on dark elements / cards / footers */
.card-dark :focus-visible,
.site-footer :focus-visible,
.btn-primary :focus-visible,
.flagship-showcase-card :focus-visible,
.vision-section :focus-visible,
.dark-section :focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(18, 59, 50, 0.85);
}

/* Reading Measure and Word Wrap Safeguards for Monospace Typography */
p, li, dd {
  max-width: 75ch;
  overflow-wrap: break-word;
}

/* Touch Target Standard (WCAG 2.5.5 / 2.5.8) */
.btn,
.mobile-nav-toggle,
.mobile-nav-close,
.whatsapp-floating-btn {
  min-height: 44px;
}

/* Keyboard Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-lime);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 99999;
  border: 2px solid var(--color-lime);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Section Spacing */
.section {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}

.section-sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Section Header Utility */
.section-header {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem) auto;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

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

/* Section Eyebrow Badge */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  background: #E8F3EE;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(18, 59, 50, 0.12);
}

.section-eyebrow-dark {
  background: rgba(200, 241, 105, 0.15);
  color: var(--color-lime);
  border-color: rgba(200, 241, 105, 0.3);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-lime);
  box-shadow: 0 0 0 2px rgba(18, 59, 50, 0.3);
}

/* Grid Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect 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;
  }
}
