/* =================================================================
   GEARSHIFT — MAIN.CSS
   Shared design tokens, public site styles, components
   ================================================================= */

/* -----------------------------------------------------------------
   GOOGLE FONTS IMPORT
   ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* -----------------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------------- */
:root {
  /* Brand colours */
  --rust:       #c94b1e;
  --rust-dark:  #a33c17;
  --rust-light: rgba(201, 75, 30, 0.12);
  --amber:      #e8a020;
  --amber-light:rgba(232, 160, 32, 0.15);
  --success:    #1f7a4a;
  --danger:     #b52b1e;
  --blue:       #2563eb;

  /* Public site palette */
  --ink:        #0e0f0f;
  --ink-soft:   #1c2128;
  --paper:      #f4f1eb;
  --paper-dark: #ede9e1;
  --surface:    #faf8f4;
  --white:      #ffffff;
  --border:     #d5d0c8;
  --chrome:     #8a9ab0;
  --text-muted: #6b6b6b;

  /* App palette */
  --app-bg:       #0d1117;
  --app-surface:  #161b22;
  --app-surface2: #1f2937;
  --app-surface3: #263140;
  --app-border:   #30363d;
  --app-text:     #e6edf3;
  --app-muted:    #7d8590;
  --app-hover:    rgba(255,255,255,0.04);

  /* Typography */
  --ff-display: 'Bebas Neue', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10:128px;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.16);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.24);
  --shadow-rust: 0 8px 30px rgba(201,75,30,0.35);

  /* Transitions */
  --t-fast: 0.12s ease;
  --t-base: 0.2s ease;
  --t-slow: 0.35s ease;
}

/* -----------------------------------------------------------------
   LIGHT MODE
   Applied when <html> has class="light-mode"
   ----------------------------------------------------------------- */
html.light-mode {
  --app-bg:       #f0f2f5;
  --app-surface:  #ffffff;
  --app-surface2: #f4f6f9;
  --app-surface3: #e8ecf0;
  --app-border:   #d0d7de;
  --app-text:     #1c2128;
  --app-muted:    #57606a;
  --app-hover:    rgba(0,0,0,0.04);
}
html.light-mode body {
  background: var(--app-bg) !important;
  color: var(--app-text) !important;
}
html.light-mode .app-input {
  background-color: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border);
}
html.light-mode .app-input:focus {
  background-color: var(--app-surface);
  color: var(--app-text);
}
html.light-mode .app-input::placeholder { color: var(--app-muted); }
html.light-mode select.app-input {
  background-color: var(--app-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2357606a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}
html.light-mode select.app-input option,
html.light-mode .filter-select option {
  background: #ffffff;
  color: var(--app-text);
}
html.light-mode .sidebar-logo-text { color: var(--app-text); }
html.light-mode .sidebar-back { color: var(--app-muted); }
html.light-mode .nav-group-label { color: var(--app-muted); }
html.light-mode .data-table th { background: var(--app-surface2); color: var(--app-muted); border-bottom-color: var(--app-border); }
html.light-mode .data-table td { border-bottom-color: var(--app-border); }
html.light-mode .data-table tbody tr:hover { background: var(--app-hover); }
html.light-mode .modal-backdrop { background: rgba(0,0,0,0.45); }
html.light-mode .stat-card { background: var(--app-surface); border-color: var(--app-border); }
html.light-mode .toast { background: var(--app-surface); border-color: var(--app-border); color: var(--app-text); }
html.light-mode .inv-preview { background: var(--app-surface); color: var(--app-text); }
html.light-mode .search-box { background-color: var(--app-surface); color: var(--app-text); }
html.light-mode .filter-select {
  background-color: var(--app-surface);
  color: var(--app-text);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}
html.light-mode .filter-select:focus { background-color: var(--app-surface); color: var(--app-text); }


/* -----------------------------------------------------------------
   RESET & BASE
   ----------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

html.gs-loader-active,
html.gs-loader-active body {
  overflow: hidden;
}

html.gs-loader-active::before,
html.gs-loader-complete::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(14, 15, 15, 0.92);
  opacity: 1;
  transition: opacity var(--t-slow);
  pointer-events: all;
}

html.gs-loader-active::after,
html.gs-loader-complete::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  z-index: 9999;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid var(--white);
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: gs-loader-rotation 1s linear infinite;
  color: var(--white);
  opacity: 1;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

html.gs-loader-active body::before,
html.gs-loader-complete body::before {
  content: '';
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  z-index: 10000;
  border-radius: 50%;
  border-bottom: 4px solid var(--rust);
  border-left: 4px solid transparent;
  animation: gs-loader-rotation 1s linear infinite;
  opacity: 1;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

html.gs-loader-complete::before,
html.gs-loader-complete::after,
html.gs-loader-complete body::before {
  opacity: 0;
}

@keyframes gs-loader-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.gs-loader-active::after,
  html.gs-loader-complete::after,
  html.gs-loader-active body::before,
  html.gs-loader-complete body::before {
    animation: none;
  }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--ff-body); }
input, select, textarea { font-family: var(--ff-body); }

/* -----------------------------------------------------------------
   SCROLLBAR
   ----------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--app-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--app-muted); }

/* -----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ----------------------------------------------------------------- */
.display-xl {
  font-family: var(--ff-display);
  font-size: clamp(72px, 11vw, 148px);
  line-height: 0.88;
  letter-spacing: 1px;
}
.display-lg {
  font-family: var(--ff-display);
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
}
.display-md {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.92;
}
.display-sm {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
}
.label-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.body-lg { font-size: 18px; line-height: 1.75; }
.body-md { font-size: 15px; line-height: 1.8; }
.body-sm { font-size: 13px; line-height: 1.7; }

/* -----------------------------------------------------------------
   SITE NAVIGATION
   ----------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-7);
  background: var(--ink);
  border-bottom: 2px solid var(--rust);
  transition: box-shadow var(--t-base);
}

.site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.nav-logo .accent { color: var(--rust); }

.nav-center {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--chrome);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--amber); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.nav-right { display: flex; gap: var(--space-2); align-items: center; }

.btn-nav-login {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.btn-nav-login:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-nav-cta {
  padding: 9px 22px;
  background: var(--rust);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-nav-cta:hover { background: #e05520; }

/* Sub-nav for app pages */
.sub-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-5);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  height: 42px;
  position: sticky;
  top: 58px;
  z-index: 40;
  overflow-x: auto;
}
.sub-nav::-webkit-scrollbar { height: 0; }

.sub-nav-link {
  padding: 6px 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--app-muted);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.sub-nav-link:hover { color: var(--app-text); background: var(--app-hover); }
.sub-nav-link.active {
  color: var(--amber);
}
.sub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
}

/* -----------------------------------------------------------------
   PUBLIC BUTTONS
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--r-sm);
  border: none;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover {
  background: #e05520;
  transform: translateY(-2px);
  box-shadow: var(--shadow-rust);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-dark);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* -----------------------------------------------------------------
   SECTION WRAPPERS
   ----------------------------------------------------------------- */
.section {
  padding: var(--space-9) var(--space-7);
}
.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-steel {
  background: var(--ink-soft);
  color: var(--white);
}
.section-light { background: var(--surface); }
.section-paper { background: var(--paper); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rust);
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--rust);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
   GRID UTILITIES
   ----------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2 { display: flex; align-items: center; gap: var(--space-2); }
.flex-gap-3 { display: flex; align-items: center; gap: var(--space-3); }
.flex-col { display: flex; flex-direction: column; }

/* -----------------------------------------------------------------
   CARDS — PUBLIC SITE
   ----------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.card:hover {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-3px, -3px);
}
.card-dark {
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  transition: border-color var(--t-base), background var(--t-base);
}
.card-dark:hover {
  background: #242c38;
  border-color: var(--rust);
  transform: none;
  box-shadow: none;
}

/* -----------------------------------------------------------------
   BADGE / CHIP
   ----------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.chip-rust { background: rgba(201,75,30,0.15); color: var(--rust); border: 1px solid rgba(201,75,30,0.3); }
.chip-amber { background: rgba(232,160,32,0.15); color: var(--amber); border: 1px solid rgba(232,160,32,0.3); }
.chip-green { background: rgba(31,122,74,0.15); color: #27ae60; border: 1px solid rgba(31,122,74,0.3); }

/* -----------------------------------------------------------------
   FOOTER — PUBLIC SITE
   ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--chrome);
  padding: var(--space-9) var(--space-7) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-7);
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 40px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-logo span { color: var(--rust); }
.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  max-width: 280px;
  color: var(--chrome);
}
.footer-col-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px;
  color: var(--chrome);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--chrome);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* -----------------------------------------------------------------
   FORM ELEMENTS — PUBLIC
   ----------------------------------------------------------------- */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--rust);
  background: var(--white);
}
.form-input::placeholder { color: #aaa; }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* -----------------------------------------------------------------
   ALERTS
   ----------------------------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid;
}
.alert-warn  { background: rgba(232,160,32,0.1);  border-color: var(--amber);   color: #c8820a; }
.alert-error { background: rgba(181,43,30,0.1);   border-color: var(--danger);  color: var(--danger); }
.alert-info  { background: rgba(37,99,235,0.1);   border-color: var(--blue);    color: #3b82f6; }
.alert-success{ background: rgba(31,122,74,0.1);  border-color: var(--success); color: var(--success); }

/* -----------------------------------------------------------------
   TOAST NOTIFICATIONS
   ----------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  box-shadow: var(--shadow-lg);
  animation: toastSlide 0.3s ease both;
}
.toast.leaving { animation: toastLeave 0.3s ease both; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warn    { border-left: 3px solid var(--amber); }
.toast-info    { border-left: 3px solid var(--blue); }
.toast-icon { font-size: 16px; flex-shrink: 0; }

/* -----------------------------------------------------------------
   MODAL
   ----------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 800;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 720px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--app-surface);
  z-index: 1;
}
.modal-title {
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--app-text);
}
.modal-close {
  width: 32px; height: 32px;
  background: none;
  border: none;
  color: var(--app-muted);
  font-size: 18px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--app-surface2); color: var(--app-text); }

.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--app-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* -----------------------------------------------------------------
   DECORATIVE ELEMENTS
   ----------------------------------------------------------------- */
.grid-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.grid-texture-light {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}
.divider-dark {
  height: 1px;
  background: var(--app-border);
  margin: var(--space-6) 0;
}

/* Tag strips */
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 3px 10px;
  background: var(--rust-light);
  color: var(--rust);
  border-radius: 20px;
}

/* -----------------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------------- */
@keyframes toastSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastLeave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.anim-fade-up    { animation: fadeUp 0.6s ease both; }
.anim-fade-up-d1 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-fade-up-d2 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-fade-up-d3 { animation: fadeUp 0.6s 0.3s ease both; }
.anim-fade-up-d4 { animation: fadeUp 0.6s 0.4s ease both; }
.anim-fade-up-d5 { animation: fadeUp 0.6s 0.5s ease both; }

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --space-7: 24px; --space-9: 64px; }
  .site-nav { padding: 0 var(--space-5); }
  .nav-center { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 13px; }
  .display-xl { font-size: 56px; }
}
