/* ==========================================================================
   Gizmo's Computers (gizmos.ca) — Black, Green & White Design Tokens
   Adaptive responsive scaling for phones, tablets, laptops & hi-res monitors
   ========================================================================== */

:root {
  /* Signature Black, Green & White Brand Accents */
  --green-500: #00a846;
  --green-600: #008637;
  --green-400: #22c55e;
  --green-300: #4ade80;
  --green-100: rgba(0, 168, 70, 0.11);
  --green-glow: rgba(0, 168, 70, 0.3);

  /* Light Mode Surfaces (Crisp Pure White + High-Contrast Black) */
  --bg-page: #ffffff;
  --bg-surface: #f4f6f5;
  --bg-surface-elevated: #ffffff;
  --bg-megamenu: #f2f5f3;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-pill: #ebefec;
  --bg-pill-hover: #dfe5e1;

  /* Always-Dark Architectural Showcase Surfaces (Obsidian Black) */
  --dark-canvas: #060807;
  --dark-surface: #0d110f;
  --dark-surface-2: #141a17;
  --dark-border: rgba(255, 255, 255, 0.11);
  --dark-border-strong: rgba(255, 255, 255, 0.2);

  /* Ink & Borders */
  --text-primary: #060807;
  --text-secondary: #3f4742;
  --text-muted: #646e68;
  --border-subtle: rgba(6, 8, 7, 0.09);
  --border-medium: rgba(6, 8, 7, 0.16);
  --border-strong: rgba(6, 8, 7, 0.28);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(6, 8, 7, 0.05);
  --shadow-md: 0 12px 32px rgba(6, 8, 7, 0.09);
  --shadow-lg: 0 24px 64px rgba(6, 8, 7, 0.16);
  --shadow-green: 0 10px 28px rgba(0, 168, 70, 0.28);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Motion Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quint: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Responsive Layout Scale */
  --container-max: 1280px;
  --container-pad: clamp(16px, 3vw, 36px);
  --nav-height: 74px;
  --banner-height: 38px;
}

/* Hi-Res & Ultrawide Monitor Scaling */
@media (min-width: 1680px) {
  :root {
    --container-max: 1420px;
  }
  html {
    font-size: 17px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container-max: 1560px;
  }
  html {
    font-size: 18px;
  }
}

/* Dark Theme Overrides (Obsidian Black, Crisp White & Vibrant Green) */
[data-theme='dark'] {
  --bg-page: #060807;
  --bg-surface: #0e1310;
  --bg-surface-elevated: #131916;
  --bg-megamenu: #0b0f0d;
  --bg-nav: rgba(6, 8, 7, 0.88);
  --bg-pill: #18201c;
  --bg-pill-hover: #212c26;

  --text-primary: #ffffff;
  --text-secondary: #b5c0b9;
  --text-muted: #7d8b83;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.56);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.74);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease-spring), color 0.35s var(--ease-spring);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* Responsive Utility Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Fluid Responsive Typography */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-500);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px var(--green-100);
  flex-shrink: 0;
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-500);
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.micro-badge.green {
  background: var(--green-500);
  color: #ffffff;
}

.micro-badge.dark {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Shared Buttons (Black, Green & White) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-xs);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease-spring),
              background-color 0.22s ease,
              box-shadow 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--green-500);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--green-400);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn-arrow svg {
  transition: transform 0.25s var(--ease-spring);
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

/* Color-grade studio hardware photography subtly into Black/Green/White harmony */
.studio-img-green {
  filter: hue-rotate(-72deg) saturate(1.12);
}

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