:root {
  --bg: #05060a;
  --panel: rgba(18, 20, 28, 0.6);
  --panel-strong: rgba(22, 24, 34, 0.82);
  --ink: #f4f5f9;
  --muted: #9aa0b4;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent-a: #7c5cff;
  --accent-b: #33d1c9;
  --accent-c: #ff5f9e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* ---------- Animated aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.a-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.a-blob-1 {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -8vw;
  background: radial-gradient(circle, var(--accent-a), transparent 70%);
  animation: drift-a 22s ease-in-out infinite;
}

.a-blob-2 {
  width: 40vw;
  height: 40vw;
  bottom: -16vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent-b), transparent 70%);
  animation: drift-b 26s ease-in-out infinite;
}

.a-blob-3 {
  width: 30vw;
  height: 30vw;
  top: 30%;
  left: 55%;
  background: radial-gradient(circle, var(--accent-c), transparent 70%);
  animation: drift-c 30s ease-in-out infinite;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 8vw) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -6vw) scale(1.08); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -56%) scale(1.15); }
}

/* ---------- Shell + header ---------- */
.shell {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 2.4rem auto 3rem;
  animation: rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.brand-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-a), var(--accent-b), var(--accent-c), var(--accent-a));
  animation: spin 6s linear infinite;
}

.brand-mark-core {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
}

.brand-text {
  line-height: 1.15;
}

.brand-label {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.brand-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e0a1;
  box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: 2.6rem;
  padding: 0 0.4rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-b);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b) 55%, var(--accent-c));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s ease-in-out infinite;
}

/* ---------- Tiles ---------- */
.tile-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
}

.tile {
  --x: 50%;
  --y: 50%;
  position: relative;
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  min-height: 210px;
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.tile:nth-child(1) { animation-delay: 80ms; }
.tile:nth-child(2) { animation-delay: 160ms; }
.tile:nth-child(3) { animation-delay: 240ms; }

.tile-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--x) var(--y), rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tile:hover .tile-glow {
  opacity: 1;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.tile-icon svg {
  width: 20px;
  height: 20px;
}

.icon-crm { background: linear-gradient(140deg, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0.05)); }
.icon-flow { background: linear-gradient(140deg, rgba(51, 209, 201, 0.28), rgba(51, 209, 201, 0.05)); }
.icon-add { background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)); }

.tile-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tile-status.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35e0a1;
}

.tile h2 {
  margin: 1.1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
  font-weight: 600;
}

.tile p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.tile-primary,
.tile-secondary,
.tile-add {
  grid-column: span 4;
}

.cta {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.cta-arrow {
  transition: transform 220ms ease;
}

.tile:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-muted {
  color: var(--muted);
}

.tile-add {
  border-style: dashed;
  background: rgba(18, 20, 28, 0.35);
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(53, 224, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0); }
}

@media (max-width: 860px) {
  .tile-primary,
  .tile-secondary,
  .tile-add {
    grid-column: span 12;
  }

  .topbar {
    border-radius: 20px;
  }

  .status-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a-blob,
  .brand-mark-ring,
  .gradient-text,
  .status-dot,
  .shell,
  .tile {
    animation: none !important;
  }
}

