:root {
  --bg: #070b14;
  --surface: rgba(10, 17, 30, 0.9);
  --text: #d7e3f4;
  --muted: #86a0c3;
  --accent: #3bd4b2;
  --accent-2: #58a6ff;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 8%, rgba(31, 73, 132, 0.36) 0%, transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(36, 96, 123, 0.34) 0%, transparent 42%),
    radial-gradient(circle at 52% 120%, rgba(11, 39, 72, 0.5) 0%, transparent 52%),
    linear-gradient(165deg, #04060c 0%, #091120 52%, #050a14 100%);
  overflow-x: hidden;
  background-size: 120% 120%;
  animation: bgShift 24s ease-in-out infinite alternate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
}

body::before {
  z-index: -4;
  background: radial-gradient(circle at 18% 28%, rgba(59, 212, 178, 0.14), transparent 34%),
    radial-gradient(circle at 78% 62%, rgba(88, 166, 255, 0.17), transparent 38%),
    radial-gradient(circle at 56% 12%, rgba(255, 153, 51, 0.1), transparent 30%);
  filter: blur(44px) saturate(1.12);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background: radial-gradient(circle at center, transparent 42%, rgba(2, 4, 10, 0.72) 100%);
  animation: vignettePulse 10s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(88, 166, 255, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88, 166, 255, 0.065) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 96%);
  pointer-events: none;
  z-index: -3;
  animation: gridDrift 18s linear infinite;
}

.glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -2;
  animation: glowFloat 13s ease-in-out infinite;
}

.glow-left {
  left: -180px;
  top: 14%;
  background: rgba(59, 212, 178, 0.2);
}

.glow-right {
  right: -180px;
  top: 56%;
  background: rgba(88, 166, 255, 0.21);
  animation-delay: -6s;
}

.app {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 42px 0 72px;
  animation: contentRise 700ms ease both;
}

.hero {
  margin-bottom: 22px;
}

.hero-tag {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.06;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.hero-network {
  margin-top: 16px;
  height: 132px;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(8, 14, 25, 0.82), rgba(7, 13, 23, 0.55));
  overflow: hidden;
  position: relative;
}

.hero-network::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59, 212, 178, 0.08), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(88, 166, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.network-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.network-line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.72;
  animation: networkDash 9s linear infinite;
}

.network-line-a {
  stroke: rgba(88, 166, 255, 0.82);
}

.network-line-b {
  stroke: rgba(59, 212, 178, 0.8);
  animation-duration: 10.5s;
}

.network-line-c {
  stroke: rgba(255, 153, 51, 0.76);
  animation-duration: 12s;
}

.network-node {
  fill: #e8fff8;
  opacity: 0.92;
}

.node-2,
.node-4 {
  fill: #8adfff;
}

.network-pulse {
  fill: none;
  stroke: rgba(88, 166, 255, 0.5);
  stroke-width: 1.5;
  opacity: 0;
  animation: networkPulse 2.6s ease-out infinite;
}

.pulse-2 {
  animation-delay: -1.2s;
}

.network-dot {
  fill: #ff9933;
  filter: drop-shadow(0 0 7px rgba(255, 153, 51, 0.65));
}

.dot-b {
  fill: #7cf5dd;
  filter: drop-shadow(0 0 7px rgba(124, 245, 221, 0.65));
}

.dot-c {
  fill: #8ac5ff;
  filter: drop-shadow(0 0 7px rgba(138, 197, 255, 0.65));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.composer,
.timeline-panel {
  background: linear-gradient(145deg, rgba(10, 17, 30, 0.9), rgba(7, 11, 20, 0.9));
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  height: 100%;
  backdrop-filter: blur(6px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.composer:hover,
.timeline-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.36);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.composer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  background: rgba(8, 13, 24, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

input {
  min-height: 40px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 212, 178, 0.16);
}

button {
  justify-self: start;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "JetBrains Mono", monospace;
  color: #04121a;
  background: linear-gradient(110deg, var(--accent), #6ce8cb);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 24px;
  height: 300%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  transition: left 520ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(59, 212, 178, 0.32);
}

button:hover::before {
  left: 120%;
}

.project-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  background: rgba(8, 13, 24, 0.72);
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.project-brand-logo {
  width: 170px;
  height: auto;
  max-height: 76px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(1.25) contrast(1.15) drop-shadow(0 6px 16px rgba(88, 166, 255, 0.32));
}

.project-brand-info {
  display: grid;
  gap: 2px;
  margin-left: auto;
  text-align: right;
}

.project-brand-text {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  color: #9eb6d5;
}

.project-brand-name {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e8fff8;
  background: linear-gradient(110deg, rgba(59, 212, 178, 0.22), rgba(88, 166, 255, 0.2));
  border: 1px solid rgba(59, 212, 178, 0.32);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.timeline-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.timeline-capture {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(7, 13, 24, 0.78), rgba(8, 15, 27, 0.62));
  border: 1px solid rgba(88, 166, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.timeline-wrap {
  position: relative;
  padding-left: 62px;
}

.timeline-line {
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.95), rgba(59, 212, 178, 0.9));
  opacity: 0.85;
  background-size: 100% 200%;
  animation: lineFlow 3.8s linear infinite;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 360ms ease, opacity 360ms ease;
}

.timeline-item:nth-child(1) {
  transition-delay: 40ms;
}

.timeline-item:nth-child(2) {
  transition-delay: 110ms;
}

.timeline-item:nth-child(3) {
  transition-delay: 180ms;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.dot {
  position: absolute;
  left: -50px;
  top: 42px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ddfff6, var(--accent));
  border: 2px solid rgba(7, 13, 24, 0.85);
  box-shadow: 0 0 0 7px rgba(59, 212, 178, 0.14);
  animation: dotPulse 2.6s ease-in-out infinite;
}

.timeline-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.timeline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  background: linear-gradient(160deg, rgba(10, 18, 32, 0.94), rgba(9, 16, 29, 0.84));
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 153, 51, 0.98),
    rgba(88, 166, 255, 0.96),
    rgba(59, 212, 178, 0.96),
    rgba(255, 153, 51, 0.98)
  );
  animation: cardBorderSpin 7.2s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.98;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: linear-gradient(160deg, rgba(10, 18, 32, 0.94), rgba(9, 16, 29, 0.84));
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.timeline-item:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.timeline-item:hover .card::before {
  animation-duration: 5.2s;
  opacity: 0.95;
}

.timeline-item:nth-child(1) .card::before {
  background: conic-gradient(
    from 0deg,
    rgba(255, 153, 51, 0.98),
    rgba(88, 166, 255, 0.96),
    rgba(59, 212, 178, 0.96),
    rgba(255, 153, 51, 0.98)
  );
  animation-delay: -0.4s;
  animation-duration: 6.8s;
}

.timeline-item:nth-child(2) .card::before {
  background: conic-gradient(
    from 0deg,
    rgba(88, 166, 255, 0.98),
    rgba(59, 212, 178, 0.96),
    rgba(255, 153, 51, 0.98),
    rgba(88, 166, 255, 0.98)
  );
  animation-delay: -2.4s;
  animation-duration: 7.9s;
}

.timeline-item:nth-child(3) .card::before {
  background: conic-gradient(
    from 0deg,
    rgba(59, 212, 178, 0.98),
    rgba(255, 153, 51, 0.98),
    rgba(88, 166, 255, 0.96),
    rgba(59, 212, 178, 0.98)
  );
  animation-delay: -4.1s;
  animation-duration: 8.6s;
}

.card-content {
  min-width: 0;
}

.meta {
  margin: 0 0 7px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9dc7ff;
  font-family: "JetBrains Mono", monospace;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(88, 166, 255, 0.8);
}

.card h3 {
  margin: 0 0 7px;
  font-size: 1.15rem;
  line-height: 1.28;
}

.card p {
  margin: 0;
  color: #bcd0ea;
  line-height: 1.62;
  font-size: 0.98rem;
}

@keyframes cardBorderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bgShift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 0%;
  }
  to {
    background-position: 8% 10%, 88% 18%, 50% 100%;
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 22px, 0);
  }
}

@keyframes glowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.06);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0%, -2%, 0) scale(1.02);
  }
}

@keyframes vignettePulse {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes lineFlow {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 0% 200%;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(59, 212, 178, 0.14);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 212, 178, 0.1);
  }
}

@keyframes networkDash {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes networkPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after,
  .bg-grid,
  .glow,
  .app,
  .timeline-line,
  .dot {
    animation: none;
  }

  .composer,
  .timeline-panel,
  button,
  .timeline-item,
  .card,
  .network-line,
  .network-pulse {
    transition: none;
  }

  button::before {
    content: none;
  }

  .card::before {
    animation: none;
  }

  .network-line,
  .network-pulse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .timeline-wrap {
    padding-left: 46px;
  }

  .dot {
    left: -38px;
    top: 34px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 5px rgba(59, 212, 178, 0.14);
  }

  .timeline-line {
    left: 12px;
    width: 2px;
  }

  .card {
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 12px 14px;
  }

  .timeline-media {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 12px;
  }

  .project-brand-logo {
    width: 120px;
    max-height: 60px;
  }

  .project-brand-name {
    font-size: 1rem;
    padding: 6px 12px;
    white-space: normal;
  }

  .hero-network {
    height: 106px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(215, 227, 244, 0.1);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}
