/* ============================================================
   Taranex — Coming Soon
   Enterprise intelligence ecosystem. Dark, calm, precise.
   ============================================================ */

:root {
  /* Darks */
  --black: #030508;
  --navy: #0b0f19;
  --slate: #111827;
  --graphite: #1f2937;

  /* Accents */
  --cyan: #06b6d4;
  --indigo: #4f46e5;
  --indigo-soft: #818cf8;
  --emerald: #10b981;

  /* Text */
  --text: #e5e7eb;
  --muted: #9ca3af;
  --dim: #6b7280;

  /* Surfaces */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.035);

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(6, 182, 212, 0.1), transparent 55%),
    var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-cyan {
  width: 44vw;
  height: 44vw;
  top: -14vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
}

.glow-indigo {
  width: 40vw;
  height: 40vw;
  bottom: -16vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, black, transparent 78%);
}

/* Connected-node constellation (reflects the ecosystem mark) */
.system-field {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 460px;
  height: 460px;
  max-width: 46vw;
  will-change: transform;
}

.system-field .paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.system-field .path {
  stroke: rgba(6, 182, 212, 0.28);
  stroke-width: 0.4;
  stroke-dasharray: 3 3;
  animation: dash 22s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -60;
  }
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12), 0 0 16px rgba(6, 182, 212, 0.6);
  will-change: transform;
  transition: translate 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.node-a { top: 24%; left: 18%; }
.node-b { top: 16%; left: 72%; background: var(--indigo-soft); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12), 0 0 16px rgba(79, 70, 229, 0.6); }
.node-c { top: 62%; left: 86%; }
.node-d { top: 80%; left: 34%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 0 16px rgba(16, 185, 129, 0.55); }
.node-e { top: 46%; left: 50%; width: 7px; height: 7px; }

/* ---------- Layout shell ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 28px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(6px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- Mono labels & text ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 56px;
  max-width: 760px;
}

.kicker {
  margin: 0 0 22px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f8fafc;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.accent-text {
  display: block;
  background: linear-gradient(100deg, var(--cyan), var(--indigo-soft) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0 0 36px;
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

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

/* ---------- Notify form ---------- */
.notify-form {
  max-width: 520px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.notify-row {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.notify-row:focus-within {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.notify-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}

.notify-row input[type="email"]::placeholder {
  color: var(--dim);
}

.notify-row input[type="email"]:focus {
  outline: none;
}

.primary-button {
  flex-shrink: 0;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #0ac1e0, var(--cyan));
  color: #041014;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.28);
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.38);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: default;
  filter: saturate(0.5) brightness(0.9);
  box-shadow: none;
}

.form-note {
  margin: 14px 2px 0;
  transition: color 200ms ease;
}

.form-note.is-success {
  color: var(--emerald);
}

.form-note.is-error {
  color: #f87171;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Pillars ---------- */
.pillars {
  list-style: none;
  margin: 64px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 100%;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.pillar-index {
  display: block;
  margin-bottom: 12px;
  color: var(--dim);
}

.pillar h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(6, 182, 212, 0.5);
}

.footer-sep {
  color: var(--dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .system-field { opacity: 0.5; }
  .hero { padding: 48px 0 40px; }
  .pillars {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
  }
  .notify-row { flex-direction: column; }
  .primary-button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .page-shell { padding: 24px 20px 32px; }
  .status-pill .mono-label { display: none; }
  .status-pill { padding: 8px; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .kicker,
  .hero-title,
  .hero-copy,
  .notify-form,
  .pillars {
    opacity: 1;
  }
}
