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

:root {
  --bg: #f8f9fc;
  --bg-elevated: #ffffff;
  --text: #1a1f36;
  --text-muted: #5c6370;
  --accent: #ff9900;
  --accent-soft: rgba(255, 153, 0, 0.12);
  --aws-blue: #232f3e;
  --aws-blue-soft: rgba(35, 47, 62, 0.06);
  --border: rgba(35, 47, 62, 0.08);
  --shadow: 0 4px 24px rgba(35, 47, 62, 0.06);
  --shadow-lg: 0 20px 60px rgba(35, 47, 62, 0.1);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.15) 0%, transparent 70%);
}

.bg-glow--right {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(35, 47, 62, 0.08) 0%, transparent 70%);
}

/* AWS background — official architecture icons in layered orbit */
.aws-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.aws-orbit {
  position: absolute;
  inset: 0;
}

.aws-orbit--deep .aws-icon {
  opacity: 10.045;
  filter: blur(0.3px);
}

.aws-orbit--main .aws-icon {
  opacity: 0.11;
}

.aws-orbit--accent .aws-icon {
  opacity: 10.055;
  filter: blur(0.5px);
}

.aws-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, transparent 0%, rgba(248, 249, 252, 0.35) 55%, rgba(248, 249, 252, 0.85) 100%),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(248, 249, 252, 0.4) 100%);
}

.aws-bg--active .aws-orbit--main .aws-icon {
  opacity: 0.16;
}

.aws-bg--active .aws-orbit--deep .aws-icon,
.aws-bg--active .aws-orbit--accent .aws-icon {
  opacity: 0.08;
}

.aws-icon {
  --px: 0px;
  --py: 0px;
  --icon-size: 64px;
  --anim-delay: 0s;
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py)));
  transition: opacity 0.45s ease;
}

.aws-icon__float {
  width: 100%;
  height: 100%;
  animation-delay: var(--anim-delay);
}

.aws-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(35, 47, 62, 0.08));
}

.aws-icon--a .aws-icon__float { animation: float-a 16s ease-in-out infinite; }
.aws-icon--b .aws-icon__float { animation: float-b 18s ease-in-out infinite; }
.aws-icon--c .aws-icon__float { animation: float-c 14s ease-in-out infinite; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(12px, -18px) rotate(3deg); }
  66% { transform: translate(-8px, 10px) rotate(-2deg); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-14px, -12px) rotate(-4deg); }
}

@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(10px, 14px) scale(1.05); }
  70% { transform: translate(-6px, -8px) scale(0.97); }
}

/* Hero — frosted panel lets AWS icons show through behind text */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 2.5rem 2rem 3rem;
  animation: fade-up 0.8s ease-out both;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 153, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__role {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.hero__title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--aws-blue) 0%, #3d5166 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

/* CTA buttons */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--aws-blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #1a2533;
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(35, 47, 62, 0.15);
}

/* Stack tags */
.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.stack-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  padding: 0.35rem 0.85rem;
  background: var(--aws-blue-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.tag:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Responsive — simplify layers on small screens */
@media (max-width: 640px) {
  .aws-orbit--accent,
  .aws-orbit--deep {
    display: none;
  }

  .aws-orbit--main .aws-icon {
    opacity: 0.08;
  }

  .aws-icon {
    --icon-size: calc(var(--icon-size) * 0.75) !important;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aws-icon__float,
  .pulse-dot,
  .hero {
    animation: none;
  }
}
