:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #05010b;
  --bg-alt: #0d0418;
  --surface: #120825;
  --surface-raised: #1c0f30;
  --ink: #f7f4ff;
  --muted: #baafcc;
  --line: rgba(247, 244, 255, 0.15);
  --accent: #ad59ff;
  --accent-pop: #74f0b9;
  --accent-soft: linear-gradient(135deg, rgba(173, 89, 255, 0.45), rgba(116, 240, 185, 0.3));
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glow-green: 0 0 40px rgba(116, 240, 185, 0.35);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(173, 89, 255, 0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(116, 240, 185, 0.2), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-alt));
  background-attachment: fixed;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 15% 20%, rgba(173, 89, 255, 0.3), transparent 50%);
  animation: gradientMove 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 80% 10%, rgba(116, 240, 185, 0.25), transparent 45%);
  animation: gradientMoveReverse 30s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(5%, 10%) scale(1.1);
    opacity: 0.9;
  }
  66% {
    transform: translate(-5%, -5%) scale(0.95);
    opacity: 0.85;
  }
}

@keyframes gradientMoveReverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(-8%, 5%) scale(1.05);
    opacity: 0.9;
  }
  66% {
    transform: translate(8%, -8%) scale(0.98);
    opacity: 0.85;
  }
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 5rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  animation: fadeInUp 0.8s ease-out;
}

.logo img {
  height: 1.5rem;
  width: auto;
  display: block;
}

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

.header-pill {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* Intro Section */
.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  padding: 2rem 0 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.intro-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.intro-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.intro-description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 650px;
  margin: 0;
}

.intro-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.intro-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 8, 37, 0.6);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out both;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.intro-badge:nth-child(1) {
  animation-delay: 0.4s;
}

.intro-badge:nth-child(2) {
  animation-delay: 0.5s;
}

.intro-badge:nth-child(3) {
  animation-delay: 0.6s;
}

.intro-badge:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(173, 89, 255, 0.2);
}

/* Capabilities Section */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  margin: 2rem 0;
}

.capability-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  background: rgba(18, 8, 37, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(5, 1, 11, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  animation: fadeInUp 0.8s ease-out both;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(173, 89, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
  transition: opacity 400ms ease, transform 200ms ease-out;
}

.capability-card:nth-child(1) {
  animation-delay: 0.2s;
}

.capability-card:nth-child(2) {
  animation-delay: 0.3s;
}

.capability-card:nth-child(3) {
  animation-delay: 0.4s;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(5, 1, 11, 0.8), 0 0 40px rgba(173, 89, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-header {
  margin-bottom: 0.5rem;
}

.capability-icon {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(173, 89, 255, 0.1);
  border: 1px solid rgba(173, 89, 255, 0.2);
  transition: all 300ms ease;
  position: relative;
}

.capability-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(173, 89, 255, 0.2);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 300ms ease;
}

.capability-card:hover .capability-icon {
  background: rgba(173, 89, 255, 0.15);
  border-color: rgba(173, 89, 255, 0.4);
  box-shadow: 0 0 20px rgba(173, 89, 255, 0.2);
}

.capability-card:hover .capability-icon::after {
  opacity: 1;
}

.capability-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.capability-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.capability-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.capability-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-pop);
  opacity: 0.7;
  font-weight: bold;
  transition: transform 200ms ease, opacity 200ms ease;
}

.capability-card:hover .capability-list li::before {
  opacity: 1;
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(116, 240, 185, 0.5);
}

/* Philosophy Section */
.philosophy {
  padding: 8rem 0 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.philosophy-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.philosophy-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out both;
  transition: transform 200ms ease;
}

.philosophy-item:nth-child(1) {
  animation-delay: 0.5s;
}

.philosophy-item:nth-child(2) {
  animation-delay: 0.6s;
}

.philosophy-item:nth-child(3) {
  animation-delay: 0.7s;
}

.philosophy-item:hover {
  transform: translateX(4px);
}

.philosophy-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.philosophy-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.site-footer {
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-pop), transparent);
  opacity: 0.3;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    width: 100px;
  }
  50% {
    opacity: 0.6;
    width: 200px;
  }
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-badges {
    flex-direction: row;
    align-items: flex-start;
  }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 3rem;
    margin-bottom: 1rem;
  }

  .intro {
    padding: 1.5rem 0 2rem;
    margin-bottom: 2rem;
  }

  .intro-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro-description {
    font-size: 1rem;
  }

  .intro-badges {
    flex-wrap: wrap;
  }

  .capabilities {
    padding: 2rem 0;
    margin: 3rem 0;
  }

  .capability-card {
    padding: 2rem;
  }

  .philosophy {
    padding: 4rem 0 3rem;
  }

  .philosophy-content {
    gap: 2rem;
  }
}
