/* ============================================================================
   Stratego Agency — Working / Maintenance Page
   Same visual identity: charcoal ground (#0A0A0C), paper-ivory text (#F4F4F0),
   electric lime accent (#D4FF3D). Boldonse display, Inter Tight body, Geist Mono.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --ink-000:        #050507;
  --ink-deep:       #0A0A0C;
  --ink:            #111114;
  --ink-card:       #18181C;
  --ink-elev:       #232328;
  --ink-line:       rgba(244, 244, 240, 0.08);
  --ink-rule:       rgba(244, 244, 240, 0.16);

  --paper:          #F4F4F0;
  --paper-soft:     #C9C9C2;
  --paper-mute:     #80807A;
  --paper-deep:     #5A5A55;

  --lime:           #D4FF3D;
  --lime-soft:      #E2FF73;
  --lime-deep:      #9CCB1F;
  --lime-glow:      rgba(212, 255, 61, 0.20);

  --bg:             var(--ink-deep);
  --fg:             var(--paper);
  --fg-soft:        var(--paper-soft);
  --fg-mute:        var(--paper-mute);

  --font-display:   'Boldonse', 'Inter Tight', system-ui, sans-serif;
  --font-body:      'Inter Tight', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'Geist Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  clamp(1rem, 0.94rem + 0.28vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:   clamp(1.2rem, 1rem + 0.95vw, 2rem);
  --text-3xl:   clamp(1.35rem, 1.1rem + 1.7vw, 2.75rem);
  --text-4xl:   clamp(1.65rem, 1.3rem + 2.6vw, 4rem);
  --text-5xl:   clamp(1.9rem, 1.5rem + 3.4vw, 4.75rem);
  --text-mega:  clamp(2.1rem, 1.6rem + 3vw, 4.5rem);

  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  6.5rem;

  --radius:     12px;
  --radius-lg:  20px;
  --radius-full: 999px;

  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   620ms;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--lime); color: var(--ink-000); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}
p {
  margin: 0 0 var(--space-4);
  overflow-wrap: break-word;
  word-break: break-word;
}
p:last-child { margin-bottom: 0; }

.lime { color: var(--lime); }

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--ink-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--lime);
  display: inline-block;
  position: relative;
  border-radius: 4px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--ink-000);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid var(--ink-rule);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 255, 61, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(212, 255, 61, 0); }
}

/* ---------- 5. Hero / Main Content --------------------------------------- */
.working-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-9);
  position: relative;
  overflow: hidden;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(1400px circle at 30% 50%, rgba(0, 0, 0, 0.9), transparent 70%),
    radial-gradient(1000px circle at 50% 50%, rgba(212, 255, 61, 0.4), transparent 60%),
    radial-gradient(800px circle at 70% 30%, rgba(244, 244, 240, 0.1), transparent 50%);
  background-size: 200% 200%;
  animation: meshDrift 15s infinite alternate ease-in-out;
}

@keyframes meshDrift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 50% 100%; }
}
.working-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.05);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  z-index: 0;
}
.working-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.working-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.working-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.working-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
}

.working-headline {
  font-size: var(--text-mega);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.working-sub {
  color: var(--fg-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 52ch;
}

/* ---------- 6. Progress Bar ---------------------------------------------- */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 480px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.progress-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.progress-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--lime);
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--ink-elev);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  border-radius: var(--radius-full);
  animation: fillBar 2s var(--ease-out) 0.5s forwards;
}
@keyframes fillBar {
  to { width: 78%; }
}

/* ---------- 7. Task Cards ------------------------------------------------ */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
  max-width: 680px;
  margin-top: var(--space-4);
}
.task-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}
.task-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.task-card:hover {
  border-color: rgba(212, 255, 61, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 255, 61, 0.1);
  transform: translateY(-2px);
}
.task-icon {
  width: 36px; height: 36px;
  background: var(--ink-000);
  border: 1px solid var(--ink-rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 1rem;
}
.task-card h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.task-card p {
  font-size: var(--text-xs);
  color: var(--fg-mute);
  line-height: 1.5;
}
.task-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}
.task-status--done {
  background: rgba(212, 255, 61, 0.12);
  color: var(--lime);
}
.task-status--active {
  background: rgba(26, 46, 255, 0.15);
  color: #7B8CFF;
}
.task-status--pending {
  background: rgba(244, 244, 240, 0.06);
  color: var(--fg-mute);
}
.task-status .s-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.task-status--active .s-dot {
  animation: pulse 2s var(--ease-out) infinite;
  background: #7B8CFF;
  box-shadow: 0 0 0 0 rgba(123, 140, 255, 0.5);
}

/* ---------- 8. Contact CTA ----------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--lime);
  color: var(--ink-000);
}
.btn--primary:hover { background: var(--lime-soft); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--ink-rule);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--lg { padding: 16px 28px; }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 9. Footer ---------------------------------------------------- */
.site-footer {
  background: var(--ink-000);
  border-top: 1px solid var(--ink-line);
  padding-block: var(--space-6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: var(--space-5);
}
.footer-links a { color: var(--fg-mute); transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--lime); }

/* ---------- 10. Reveal Animation ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.25s; }
.reveal-d3 { animation-delay: 0.4s; }
.reveal-d4 { animation-delay: 0.55s; }
.reveal-d5 { animation-delay: 0.7s; }
.reveal-d6 { animation-delay: 0.85s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. Responsive ----------------------------------------------- */
@media (max-width: 720px) {
  .brand .lime { display: none; }
  .task-grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-3); 
  }
  .task-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 14px 16px;
    align-items: center;
  }
  .task-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .task-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .task-status { grid-column: 3; grid-row: 1; margin: 0; padding: 3px 6px; }
  .task-card p { grid-column: 2 / span 2; grid-row: 2; margin: 0; }
  
  .working-hero { padding-block: var(--space-7); }
  .working-headline { font-size: var(--text-4xl); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .working-headline { font-size: var(--text-3xl); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn--lg { padding: 14px 20px; text-align: center; justify-content: center; }
}

/* ---------- 12. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .progress-fill { width: 78%; }
  .reveal { opacity: 1; transform: none; }
}
