/* ===================================================================
   LogiSynapse — Coming Soon
   Design tokens
   =================================================================== */
:root {
  --bg:            #070a14;
  --bg-elev:       #0d1222;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #f5f7ff;
  --text-muted:    #9aa3bd;
  --text-faint:    #6b7392;

  --brand-indigo:  #6366f1;
  --brand-violet:  #a855f7;
  --brand-cyan:    #22d3ee;
  --gradient:      linear-gradient(120deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);

  --radius:        16px;
  --radius-sm:     11px;
  --maxw:          720px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   Reset & base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Sora", "Inter", system-ui, sans-serif; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================================================================
   Background atmosphere
   =================================================================== */
#synapse-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.4;
}
.glow--one {
  top: -180px; left: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 70%);
}
.glow--two {
  bottom: -220px; right: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.40), transparent 70%);
}

/* ===================================================================
   Layout shell
   =================================================================== */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 clamp(20px, 5vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}
.brand__name {
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.header-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.header-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 90px) 0 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  animation: rise 0.7s var(--ease) both;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 14ch;
  animation: rise 0.7s var(--ease) 0.05s both;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: var(--maxw);
  margin: 0 auto 38px;
  animation: rise 0.7s var(--ease) 0.12s both;
}

/* Notify form */
.notify {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  animation: rise 0.7s var(--ease) 0.18s both;
}
.hidden-field { display: none; }

.notify__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.notify__input::placeholder { color: var(--text-faint); }
.notify__input:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.notify__button {
  font: inherit;
  font-weight: 600;
  color: #0a0a14;
  white-space: nowrap;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  background-size: 150% 150%;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.32);
}
.notify__button:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}
.notify__button:active { transform: translateY(0); }
.notify__button:disabled { opacity: 0.6; cursor: default; transform: none; }

.notify__note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 14px 0 0;
  animation: rise 0.7s var(--ease) 0.22s both;
}
.notify__note.is-success { color: var(--brand-cyan); font-weight: 500; }
.notify__note.is-error { color: #f87171; }

/* ===================================================================
   Feature trio
   =================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin-top: 72px;
  animation: rise 0.7s var(--ease) 0.28s both;
}

.feature {
  text-align: left;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--brand-violet);
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.feature__title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-faint);
}
.site-footer__links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-footer__links a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.site-footer__links a:hover { color: var(--text); }

/* ===================================================================
   Animations
   =================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; max-width: 480px; margin-top: 56px; }
  .notify { flex-direction: column; }
  .notify__button { width: 100%; }
  .header-link { display: none; }
  .hero { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #synapse-canvas { display: none; }
}
