/* Core system variables and global resets */
@import "global.css";

/* Component-specific stylesheets */
@import "components/hero.css";
@import "components/grid.css";
@import "components/footer.css";
@import "components/about.css";
@import "components/contact.css";
@import "components/privacy.css";
@import "components/navigation.css";
@import "components/faq.css";
@import "components/services.css";

/* ─── MASTER FORCE DARK MODE BASELINE ──────────────────────────── */
:root {
  /* Explicitly define your core tactical color signatures globally */
  color-scheme: dark;
  --bg-pure-black: #000000;
  --bg-surface-dark: #0a0a0a;
  --text-main: #e5e5e5;
  --text-muted: #a3a3a3;
  --border-thin: #171717;
}

html {
  background-color: #000000 !important;
  color: #e5e5e5 !important;
  color-scheme: dark;
}

body {
  background-color: #000000 !important;
  color: #e5e5e5 !important;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

/* Ensure all global page structural containers inherit the pure dark canvas */
main, section, div, article {
  background-color: transparent;
}

input,
textarea,
select,
button {
  color: #e5e5e5;
}

input,
textarea,
select {
  background-color: #0a0a0a !important;
  border-color: #262626 !important;
  color: #e5e5e5 !important;
  caret-color: #ffffff;
}

::placeholder {
  color: #737373;
  opacity: 1;
}

dialog,
form,
fieldset,
.card,
.bento-card,
.terminal-window,
.mockui-panel {
  background-color: #0a0a0a;
  color: #e5e5e5;
}

/* ─── ADDED EXTENSION: SCROLLBARS & TRANSITIONS ───────────────── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  *, *::before, *::after {
    box-sizing: border-box;
  }
  ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  ::-webkit-scrollbar-track {
    background: #0d0d0d;
  }
  ::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 10px;
  }
  a, button, input, textarea, svg {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }




/* ─── THE BENTO GRID MATRIX ────────────────────────────────────── */
.bento-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bento-card {
  background: #0a0a0a; /* Subtle lift off the pure black background */
  border: 1px solid #171717; /* Razor-thin premium border */
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Asymmetric Grid Mapping (Classic Framer Look) */
.bento-card.wide { grid-column: span 8; }
.bento-card.narrow { grid-column: span 4; }
.bento-card.full { grid-column: span 12; }

/* Responsive layout for mobile viewports */
@media (max-width: 768px) {
  .bento-card.wide, .bento-card.narrow, .bento-card.full {
    grid-column: span 12;
  }

  .bento-container {
    gap: 12px;
    padding: 28px var(--content-padding);
  }

  .bento-card {
    padding: 22px 18px;
    border-radius: 8px;
  }
}

/* Hover Accent Glow */
.bento-card:hover {
  border-color: #262626;
  background: #0d0d0d;
}


/* ─── SCROLL REVEAL ENGINE ────────────────────────────────────── */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Triggered dynamically by JavaScript */
.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO SPLIT GRID INTERFACE ────────────────────────────────── */
.hero {
  padding: 140px 0 100px 0; /* Balanced padding bounds */
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Force left column layout bounds */
.hero-content {
  grid-column: span 6;
  text-align: left;
}

/* Force right column alignment blocks */
.hero-preview {
  grid-column: span 6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

/* Fully responsive handling for trackpads and mobile devices */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-content, .hero-preview {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .hero-content {
    text-align: center;
  }
  .hero-preview {
    justify-content: center;
    margin-top: 20px;
  }

  .hero-headline {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
  }

  .hero-break {
    display: initial !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 74px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-headline {
    font-size: var(--text-display);
  }

  .terminal-window {
    max-width: 100%;
  }

  .terminal-body {
    height: 216px;
    padding: 18px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}

/* ─── TECHNICAL TERMINAL WINDOW COMPONENT ──────────────────────── */
.terminal-window {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  background: #0a0a0a; /* Subtle elevation off pure black canvas */
  border: 1px solid #171717; /* Razor-thin system border */
  border-radius: 10px;
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); /* Framer depth shadow */
}

/* Faint brand glyph sat at the right of the terminal header, vertically
   centered with the title text by the header's own align-items: center. */
.terminal-watermark {
  width: 18px;
  height: auto;
  margin-left: auto;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.terminal-header {
  background: #0d0d0d;
  padding: 14px 18px;
  border-bottom: 1px solid #171717;
  display: flex;
  align-items: center;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: #525252;
  font-size: 11px;
  margin-left: 24px;   /* breathing room between the traffic-light dots and the title */
  letter-spacing: 0.05em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: #a3a3a3;
  height: 300px;       /* fixed footprint — box never resizes as the log streams */
  overflow: hidden;    /* old lines scroll off the top, no scrollbar */
}

.mockui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mockui-command {
  color: #e5e5e5;
}

.code-dim {
  color: #525252;
}

.mockui-status.green {
  color: #22c55e;
  font-weight: 700;
  font-size: 12px;
}

.mockui-panel {
  margin-top: 24px;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 16px;
  text-align: left;
}

.mockui-label {
  font-size: 10px;
  color: #525252;
  margin-bottom: 12px;
  display: block;
}

.mockui-code-text {
  font-size: 12px;
  color: #22c55e;
  margin: 4px 0;
}


/* ─── HERO TYPEWRITER CURSOR ───────────────────────────────────── */
@keyframes cursorPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor-blink { color: #ffffff; margin-left: 4px; animation: cursorPulse 1s steps(2, start) infinite; }


/* ─── KINETIC FLEX ACCORDION (OPERATING PRINCIPLES) ────────────── */
/* Drop the 12-col grid on the tenet pool so row pairs stack as blocks */
.tenet-list {
  display: block;
}

.bento-row-pair {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

/* Cards share space equally by default and transition fluidly */
.bento-row-pair .bento-card {
  flex: 1;
  min-width: 0; /* Essential to prevent text clipping during width shifts */
  display: flex;
  flex-direction: column; /* lets the hover viz dock into the empty space below the text */
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s, opacity 0.4s ease;
}

/* When the mouse enters a row, slightly compress both cards down */
.bento-row-pair:hover .bento-card {
  flex: 0.7;
}
/* Expand the specific card being hovered into a commanding layout ratio */
.bento-row-pair .bento-card:hover {
  flex: 1.3;
}

/* Spotlight focus — while any card is hovered, grey out every other card */
.tenet-list:hover .bento-card {
  opacity: 0.35;
}
/* The card under the cursor holds its full colour and original state */
.tenet-list .bento-card:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .bento-row-pair {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }
  .bento-row-pair:hover .bento-card,
  .bento-row-pair .bento-card:hover {
    flex: none;
  }
  /* Keep every card at full colour on touch — no sticky spotlight dim */
  .tenet-list:hover .bento-card {
    opacity: 1;
  }
  /* Hover-only micro-visualisations don't belong on the vertical stack */
  .tenet-viz {
    display: none;
  }
}

/* ─── TENET HOVER MICRO-VISUALISATIONS ─────────────────────────── */
/* When a card expands on hover, a wide SVG line-art animation docks
   into the empty space below the text. Each illustrates the tenet's
   description (agents drawn as small robots). Mono white + grey, no
   text, pure CSS, runs only on hover.                               */
.tenet-viz {
  margin-top: auto;            /* dock to the bottom of the flex-column card */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease, max-height 0.55s ease;
}
.tenet-list .bento-card:hover .tenet-viz {
  max-height: 92px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 14px;
}
.tenet-viz svg { height: 72px; width: auto; overflow: visible; }
.viz-parallel svg { height: 58px; }
.viz-legible svg { height: 60px; }

/* 01 — Context is Infrastructure: data points stream in and the store fills + persists */
.viz-memory .vm-pkt { opacity: 0; }
.viz-memory .vm-l { opacity: 0; }
.tenet-list .bento-card:hover .viz-memory .vm-pkt { animation: vmPacket 1.8s ease-in infinite; }
.viz-memory .vm-pkt:nth-of-type(2) { animation-delay: 0.6s; }
.viz-memory .vm-pkt:nth-of-type(3) { animation-delay: 1.2s; }
.tenet-list .bento-card:hover .viz-memory .vm-l3 { animation: vmFill 3.6s ease infinite; animation-delay: 0.2s; }
.tenet-list .bento-card:hover .viz-memory .vm-l2 { animation: vmFill 3.6s ease infinite; animation-delay: 0.7s; }
.tenet-list .bento-card:hover .viz-memory .vm-l1 { animation: vmFill 3.6s ease infinite; animation-delay: 1.2s; }
@keyframes vmPacket {
  0%        { opacity: 0; transform: translateX(0); }
  12%       { opacity: 1; }
  78%       { opacity: 1; transform: translateX(138px); }
  90%, 100% { opacity: 0; transform: translateX(144px); }
}
@keyframes vmFill {
  0%, 6%   { opacity: 0; }
  16%, 86% { opacity: 1; }
  100%     { opacity: 0; }
}

/* 02 — Execution Over Deliberation: advice struck out, action fires, an outcome is returned */
.viz-act .va-speak { opacity: 0; }
.viz-act .va-strike { stroke-dasharray: 82; stroke-dashoffset: 82; }
.viz-act .va-bolt { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
.viz-act .va-flow { stroke-dasharray: 30; stroke-dashoffset: 30; }
.viz-act .va-out { opacity: 0; }
.viz-act .va-check { stroke-dasharray: 30; stroke-dashoffset: 30; }
.tenet-list .bento-card:hover .viz-act .va-speak { animation: vaSpeak 4.2s ease infinite; }
.tenet-list .bento-card:hover .viz-act .va-strike { animation: vaStrike 4.2s ease infinite; }
.tenet-list .bento-card:hover .viz-act .va-bolt { animation: vaBolt 4.2s ease infinite; }
.tenet-list .bento-card:hover .viz-act .va-flow { animation: vaFlow 4.2s ease infinite; }
.tenet-list .bento-card:hover .viz-act .va-out { animation: vaOut 4.2s ease infinite; }
.tenet-list .bento-card:hover .viz-act .va-check { animation: vaCheck 4.2s ease infinite; }
@keyframes vaSpeak {
  0%        { opacity: 0; } 6%, 42% { opacity: 1; } 48%, 100% { opacity: 0; }
}
@keyframes vaStrike {
  0%, 22%   { stroke-dashoffset: 82; opacity: 1; }
  38%, 44%  { stroke-dashoffset: 0; opacity: 1; }
  48%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes vaBolt {
  0%, 46%   { opacity: 0; transform: scale(0.4); }
  56%       { opacity: 1; transform: scale(1.12); }
  64%, 90%  { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes vaFlow {
  0%, 58%   { stroke-dashoffset: 30; opacity: 1; }
  72%, 90%  { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes vaOut {
  0%, 64%   { opacity: 0; } 74%, 90% { opacity: 1; } 96%, 100% { opacity: 0; }
}
@keyframes vaCheck {
  0%, 78%   { stroke-dashoffset: 30; }
  88%, 90%  { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* 03 — Bounded by Design: the permission boundary is declared, then permission points light up */
.viz-bound .vb-c { stroke-dasharray: 42; stroke-dashoffset: 42; }
.viz-bound .vb-perm { opacity: 0; transform: scale(0.2); transform-box: fill-box; transform-origin: center; }
.tenet-list .bento-card:hover .viz-bound .vb-c { animation: vbDraw 3.4s ease infinite; }
.tenet-list .bento-card:hover .viz-bound .vb-perm { animation: vbPerm 3.4s ease infinite; }
.viz-bound .vb-perm:nth-of-type(1) { animation-delay: 1.0s; }
.viz-bound .vb-perm:nth-of-type(2) { animation-delay: 1.25s; }
.viz-bound .vb-perm:nth-of-type(3) { animation-delay: 1.5s; }
@keyframes vbDraw {
  0%, 8%   { stroke-dashoffset: 42; }
  34%, 88% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 42; }
}
@keyframes vbPerm {
  0%, 28%  { opacity: 0; transform: scale(0.2); }
  40%, 88% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(0.2); }
}

/* 04 — Parallel Is the Default: three agents active simultaneously on a shared baseline */
.viz-parallel .vp-act { transform-box: fill-box; transform-origin: center; }
.tenet-list .bento-card:hover .viz-parallel .vp-act { animation: vpPulse 1.3s ease-in-out infinite; }
.viz-parallel .vp-bot:nth-of-type(2) .vp-act { animation-delay: 0.16s; }
.viz-parallel .vp-bot:nth-of-type(3) .vp-act { animation-delay: 0.32s; }
.tenet-list .bento-card:hover .viz-parallel .vp-eye { animation: vpBlink 2.4s steps(1, end) infinite; }
@keyframes vpPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.55); opacity: 1; }
}
@keyframes vpBlink {
  0%, 92%, 100% { opacity: 1; }
  95%           { opacity: 0.12; }
}

/* 05 — Nothing Is Abandoned: the memory graph grows across the space and persists */
.viz-graph .vg-n { opacity: 0; transform: scale(0.2); transform-box: fill-box; transform-origin: center; }
.viz-graph .vg-e { stroke-dasharray: 64; stroke-dashoffset: 64; }
.tenet-list .bento-card:hover .viz-graph .vg-n { animation: vgNode 3.8s ease infinite; }
.tenet-list .bento-card:hover .viz-graph .vg-e { animation: vgEdge 3.8s ease infinite; }
.viz-graph .vg-n:nth-of-type(1) { animation-delay: 0.10s; }
.viz-graph .vg-n:nth-of-type(2) { animation-delay: 0.40s; }
.viz-graph .vg-n:nth-of-type(3) { animation-delay: 0.55s; }
.viz-graph .vg-n:nth-of-type(4) { animation-delay: 0.80s; }
.viz-graph .vg-n:nth-of-type(5) { animation-delay: 1.10s; }
.viz-graph .vg-n:nth-of-type(6) { animation-delay: 1.25s; }
.viz-graph .vg-n:nth-of-type(7) { animation-delay: 1.50s; }
.viz-graph .vg-n:nth-of-type(8) { animation-delay: 1.75s; }
.viz-graph .vg-e:nth-of-type(1) { animation-delay: 0.30s; }
.viz-graph .vg-e:nth-of-type(2) { animation-delay: 0.60s; }
.viz-graph .vg-e:nth-of-type(3) { animation-delay: 0.70s; }
.viz-graph .vg-e:nth-of-type(4) { animation-delay: 0.95s; }
.viz-graph .vg-e:nth-of-type(5) { animation-delay: 1.05s; }
.viz-graph .vg-e:nth-of-type(6) { animation-delay: 1.35s; }
.viz-graph .vg-e:nth-of-type(7) { animation-delay: 1.45s; }
.viz-graph .vg-e:nth-of-type(8) { animation-delay: 1.65s; }
@keyframes vgNode {
  0%, 3%   { opacity: 0; transform: scale(0.2); }
  12%, 88% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(0.2); }
}
@keyframes vgEdge {
  0%, 6%   { stroke-dashoffset: 64; }
  22%, 88% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 64; }
}

/* 06 — Early and Legible: shipped blocks fill, missing blocks stay dashed, a scan reveals all */
.viz-legible .vl-solid { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; }
.viz-legible .vl-dash { opacity: 0.25; }
.tenet-list .bento-card:hover .viz-legible .vl-solid { animation: vlShip 3.2s ease infinite; }
.tenet-list .bento-card:hover .viz-legible .vl-dash { animation: vlMiss 3.2s ease-in-out infinite; }
.tenet-list .bento-card:hover .viz-legible .vl-scan { animation: vlScan 3.2s ease-in-out infinite; }
.viz-legible .vl-solid:nth-of-type(1) { animation-delay: 0.15s; }
.viz-legible .vl-solid:nth-of-type(2) { animation-delay: 0.50s; }
.viz-legible .vl-solid:nth-of-type(4) { animation-delay: 1.25s; }
.viz-legible .vl-solid:nth-of-type(5) { animation-delay: 1.60s; }
.viz-legible .vl-solid:nth-of-type(7) { animation-delay: 2.30s; }
@keyframes vlShip {
  0%       { opacity: 0; transform: scale(0.6); }
  12%, 88% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(0.6); }
}
@keyframes vlMiss {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.6; }
}
@keyframes vlScan {
  0%   { transform: translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(244px); opacity: 0; }
}
