/* ═══════════════════════════════════════════
   H-Ai.ai — Temporary Site
   "The future is being architected."
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
  --void: #04040a;
  --void-mid: #080812;
  --void-light: #0e0e1a;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --text-1: #f0f0f8;
  --text-2: #9898b0;
  --text-3: #5a5a72;
  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #a855f7;
  --glow-violet: rgba(139, 92, 246, 0.15);
  --glow-cyan: rgba(6, 182, 212, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--void);
  color: var(--text-1);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--accent-1);
  color: white;
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Canvas (constellation) ── */
#constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

/* Radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-violet) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
}

.hero-inner {
  position: relative;
  max-width: 700px;
}

/* Animated Orb */
.orb-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 3rem;
}

.orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  animation: orb-spin 10s linear infinite;
  filter: blur(0.5px);
}

.orb-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-violet), transparent 65%);
  animation: breathe 6s ease-in-out infinite;
  z-index: -1;
}

.orb-ring {
  position: absolute;
  inset: -15px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 50%;
  animation: orb-spin 20s linear infinite reverse;
}

.orb-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-2);
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

.hero-pre {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Email Signup ── */
.signup {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
  transition: border-color 0.4s var(--ease);
}

.signup:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 1px var(--accent-1), 0 8px 40px rgba(139, 92, 246, 0.1);
}

.signup input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-1);
}

.signup input::placeholder {
  color: var(--text-3);
}

.signup button {
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  border: none;
  color: white;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.signup button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.signup-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-3);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
}

/* ── Divider ── */
.divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Pillars Section ── */
.pillars {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pillars-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.pillar {
  padding: 2.5rem 2rem;
  background: var(--void-mid);
  transition: background 0.5s var(--ease);
  position: relative;
}

.pillar:hover {
  background: var(--void-light);
}

.pillar-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.pillar-icon--1 { background: rgba(139, 92, 246, 0.1); color: var(--accent-1); }
.pillar-icon--2 { background: rgba(6, 182, 212, 0.1); color: var(--accent-2); }
.pillar-icon--3 { background: rgba(168, 85, 247, 0.1); color: var(--accent-3); }

.pillar h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Manifesto ── */
.manifesto {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
  text-align: center;
}

.manifesto-inner {
  max-width: 620px;
  margin: 0 auto;
}

.manifesto blockquote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.01em;
  font-style: normal;
  position: relative;
}

.manifesto blockquote em {
  font-style: normal;
  color: var(--text-1);
  font-weight: 500;
}

.manifesto-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  margin: 2rem auto 1.5rem;
  border-radius: 1px;
}

.manifesto cite {
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ── Signal Section (what we're building) ── */
.signals {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 7rem;
  max-width: 1100px;
  margin: 0 auto;
}

.signals-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.signals-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.signals-header p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.signal-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.signal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.signal-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.signal-card:hover::after {
  opacity: 1;
}

.signal-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.signal-tag--research { background: rgba(139, 92, 246, 0.1); color: var(--accent-1); }
.signal-tag--product  { background: rgba(6, 182, 212, 0.1); color: var(--accent-2); }
.signal-tag--infra    { background: rgba(168, 85, 247, 0.1); color: var(--accent-3); }
.signal-tag--platform { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.signal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.signal-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--text-1);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav-status { display: none; }

  .hero { padding: 6rem 1.5rem 4rem; }
  .orb-wrap { width: 90px; height: 90px; margin-bottom: 2.5rem; }

  .pillars-grid { grid-template-columns: 1fr; }
  .signal-row { grid-template-columns: 1fr; }

  .footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .signup { flex-direction: column; border-radius: 12px; }
  .signup button { border-radius: 0; }
}
