/* ═══════════════════════════════════════════════════════════════
   ORK — ork-ai.com
   Dark-first, glassmorphism, minimal. No AI clichés.
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #08080d;
  --bg-secondary:  #0e0e16;
  --bg-card:       rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Borders */
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);

  /* Text */
  --text-primary:   #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-muted:     #5a5a6e;

  /* Accents */
  --accent:        #00d4aa;
  --accent-dim:    rgba(0, 212, 170, 0.15);
  --accent-glow:   rgba(0, 212, 170, 0.3);
  --violet:        #8b7cf6;
  --violet-dim:    rgba(139, 124, 246, 0.15);

  /* Glass */
  --glass-bg:      rgba(255, 255, 255, 0.02);
  --glass-border:  rgba(255, 255, 255, 0.06);
  --glass-blur:    16px;

  /* Layout */
  --container-max:  1100px;
  --section-pad:    120px;

  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: #33e0be;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ── Reveal Animation ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 212, 170, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(139, 124, 246, 0.04) 0%, transparent 60%),
    var(--bg-primary);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 280px;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 40px rgba(0, 212, 170, 0.15));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #08080d;
}
.btn-primary:hover {
  background: #33e0be;
  color: #08080d;
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-secondary:hover {
  color: var(--accent);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS — flat, no boxes. Whitespace + typography do the work.
   ═══════════════════════════════════════════════════════════════ */
.glass {
  /* neutralized — kept as class hook for backward compat */
}

.card {
  padding: 0;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color 0.25s var(--ease);
}

.card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Grids — bigger gap, boxes are gone ───────────────────────── */
.grid {
  display: grid;
  gap: 48px 40px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CHAIN FLOW
   ═══════════════════════════════════════════════════════════════ */
.chain-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.chain-node {
  padding: 8px 16px;
  transition: color 0.3s var(--ease);
}

.chain-node:hover {
  color: var(--accent);
}

.chain-node.chain-loop .chain-label {
  color: var(--accent);
}

.chain-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.chain-arrow {
  color: var(--text-muted);
  font-size: 18px;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════
   BRAIN ARCHITECTURE
   ═══════════════════════════════════════════════════════════════ */
.brain-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.brain-layer {
  padding: 16px 0;
  text-align: center;
  transition: color 0.3s var(--ease);
}

.brain-layer:hover {
  color: var(--violet);
}

.brain-layer:hover .brain-layer-label {
  color: var(--violet);
}

.brain-layer-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.brain-layer-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.brain-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--border-hover), var(--border));
  margin: 0 auto;
}

/* ── Tag Lists — flat, no pills ────────────────────────────────── */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   PERSONAS
   ═══════════════════════════════════════════════════════════════ */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}

.persona-card {
  padding: 24px 20px;
  text-align: center;
}

.persona-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.persona-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.persona-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   AGENTS HIERARCHY
   ═══════════════════════════════════════════════════════════════ */
.agents-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.agent-tier {
  padding: 16px 24px;
  text-align: center;
  transition: color 0.3s var(--ease);
}

.agent-tier:hover {
  color: var(--accent);
}

.agent-tier:hover .agent-tier-label {
  color: var(--accent);
}

.agent-orchestrator .agent-tier-label {
  color: var(--accent);
}

.agent-tier-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.agent-tier-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.agent-tier-lines {
  display: flex;
  justify-content: center;
  gap: 160px;
  height: 32px;
  position: relative;
}

.agent-tier-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.agent-tiers-row {
  display: flex;
  gap: 20px;
}

.agent-tiers-row .agent-tier {
  min-width: 180px;
}

@media (max-width: 700px) {
  .agent-tiers-row {
    flex-direction: column;
    gap: 12px;
  }
  .agent-tier-lines {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   INSIGHTS METRICS
   ═══════════════════════════════════════════════════════════════ */
.insight-metric {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLS GRID
   ═══════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-category {
  padding: 16px 0;
  transition: color 0.3s var(--ease);
}

.tool-category:hover {
  color: var(--accent);
}

.tool-category:hover h3 {
  color: var(--accent);
}

.tool-category h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.tool-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.tool-tags span:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-item {
  padding: 16px 0;
  text-align: center;
  transition: color 0.3s var(--ease);
}

.tech-item:hover {
  color: var(--violet);
}

.tech-item:hover .tech-name {
  color: var(--violet);
}

.tech-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tech-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════════════════════════════ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}

.screenshot-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: box-shadow 0.4s var(--ease);
}

.screenshot-wrapper:hover {
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.08);
}

.screenshot-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 120px;
  opacity: 0.8;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDERS (subtle gradient lines)
   ═══════════════════════════════════════════════════════════════ */
#chain,
#brain,
#personas,
#agents,
#insights,
#tools,
#tech,
#screenshots {
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section-intro {
    font-size: 16px;
  }

  .chain-flow {
    flex-direction: column;
    gap: 8px;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

  .insight-metric {
    font-size: 28px;
  }
}
