:root {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --bg-deep: #050508;
  --bg-elevated: rgba(12, 12, 18, 0.72);
  --text: #e8e6f2;
  --text-muted: rgba(232, 230, 242, 0.62);
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --blue: #38bdf8;
  --border: rgba(167, 139, 250, 0.18);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  --glow-violet: rgba(167, 139, 250, 0.3);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora,
  .ring,
  .project-card::before {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--glow-violet), transparent 55%),
    radial-gradient(ellipse 70% 45% at 80% 30%, var(--glow-cyan), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232, 121, 249, 0.2), transparent 45%);
  filter: blur(80px);
  opacity: 0.85;
  animation: aurora-shift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-shift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translate(4%, -3%) scale(1.05);
    opacity: 0.9;
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.logo-ai {
  margin-left: 0.15em;
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px var(--glow-cyan);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 7rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 6rem);
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translate(
    calc(var(--parallax-x) * 0.35),
    calc(-50% + var(--parallax-y) * 0.3)
  );
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  pointer-events: none;
  opacity: 0.55;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 50%;
  animation: ring-pulse 6s ease-in-out infinite;
}

.ring-1 {
  inset: 8%;
  animation-delay: 0s;
}

.ring-2 {
  inset: 22%;
  border-color: rgba(34, 211, 238, 0.2);
  animation-delay: -2s;
}

.ring-3 {
  inset: 38%;
  border-color: rgba(232, 121, 249, 0.18);
  animation-delay: -4s;
}

@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 12ch;
}

.gradient-text {
  background: linear-gradient(105deg, var(--cyan) 0%, var(--violet) 45%, var(--magenta) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(167, 139, 250, 0.4);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.btn-wide {
  width: 100%;
  max-width: 320px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.project-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent,
    rgba(34, 211, 238, 0.08),
    transparent 40%,
    rgba(167, 139, 250, 0.1),
    transparent 70%
  );
  animation: card-sheen 10s linear infinite;
  pointer-events: none;
}

@keyframes card-sheen {
  to {
    transform: rotate(360deg);
  }
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

.project-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.9;
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.project-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.footer-tag {
  font-style: italic;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-orbit {
    right: -20%;
    opacity: 0.35;
  }
}
