:root {
  --ink: #12324a;
  --muted: #52708a;
  --line: rgba(122, 173, 213, 0.36);
  --paper: #eef8ff;
  --white: #ffffff;
  --blue: #2f8ee8;
  --blue-deep: #17639f;
  --green: #27b58f;
  --amber: #ffc86b;
  --peach: #ffd0b6;
  --shadow: 0 24px 70px rgba(44, 120, 176, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 208, 182, 0.85), transparent 22rem),
    radial-gradient(circle at 88% 16%, rgba(144, 212, 255, 0.9), transparent 28rem),
    linear-gradient(180deg, #d9f2ff 0%, #f7fcff 48%, #eef8ff 100%);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  animation: sky-shift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.cloud {
  position: absolute;
  width: 220px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(102, 164, 214, 0.16);
  animation: drift 22s ease-in-out infinite alternate, float-soft 7s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 92px;
  height: 92px;
  left: 34px;
  bottom: 20px;
}

.cloud::after {
  width: 124px;
  height: 124px;
  right: 28px;
  bottom: 12px;
}

.cloud-one {
  top: 130px;
  left: -80px;
}

.cloud-two {
  width: 280px;
  top: 44%;
  right: -110px;
  animation-duration: 28s;
}

.cloud-three {
  width: 180px;
  bottom: 120px;
  left: 58%;
  opacity: 0.58;
  animation-duration: 32s;
}

@keyframes drift {
  from {
    translate: -12px 0;
  }

  to {
    translate: 54px 0;
  }
}

@keyframes float-soft {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.04;
  }
}

@keyframes sky-shift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 18px -24px, -28px 18px, 0 0;
  }
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(47, 142, 232, 0.28);
  animation: badge-glow 3.8s ease-in-out infinite;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 54px;
  align-items: center;
  padding: 42px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: #0f3148;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(23, 99, 159, 0.22);
  box-shadow: 0 12px 28px rgba(47, 142, 232, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(47, 142, 232, 0.24);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
}

.quick-stats div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.quick-stats div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.quick-stats strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.7rem;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
}

.workspace-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: card-hover 5.5s ease-in-out infinite;
}

.visual-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.visual-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  animation: status-pop 2.8s ease-in-out infinite;
}

.visual-toolbar span:nth-child(2) {
  background: var(--green);
  animation-delay: 180ms;
}

.visual-toolbar span:nth-child(3) {
  background: var(--blue);
  animation-delay: 360ms;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
}

.visual-panel {
  min-height: 126px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.visual-panel:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(44, 120, 176, 0.14);
}

.visual-panel.large,
.visual-panel.wide {
  grid-column: 1 / -1;
}

.visual-panel.accent {
  background: rgba(232, 251, 246, 0.9);
  border-color: rgba(39, 181, 143, 0.24);
}

.visual-panel small {
  color: var(--muted);
  font-weight: 700;
}

.visual-panel strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #d7ecfb;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  animation: pulse-width 2.8s ease-in-out infinite alternate;
}

.code-panel code {
  color: var(--blue-deep);
  font-weight: 800;
  white-space: normal;
}

@keyframes pulse-width {
  from {
    width: 58%;
  }

  to {
    width: 88%;
  }
}

.capabilities {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: end;
  padding: 0 0 28px;
}

.capabilities h2 {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.capability-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-deep);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

.link-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.link-card:hover h2 {
  color: var(--blue-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease var(--delay, 0ms),
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

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

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(47, 142, 232, 0.28);
  }

  50% {
    box-shadow: 0 12px 34px rgba(47, 142, 232, 0.46);
  }
}

@keyframes card-hover {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes status-pop {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.link-card span {
  color: var(--blue-deep);
  font-weight: 900;
}

.link-card h2 {
  margin: 24px 0 8px;
  font-size: 1.5rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  font-size: 1.05rem;
}

.site-footer span {
  color: var(--muted);
  font-weight: 700;
}

.site-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 900;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-footer a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 120, 176, 0.14);
}

@media (max-width: 860px) {
  .hero,
  .links,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .workspace-visual {
    transform: none;
    animation: none;
  }

  .capability-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar,
  main {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    gap: 34px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel.large,
  .visual-panel.wide {
    grid-column: auto;
  }
}
