:root {
  --color-bg: #050b18;
  --color-bg-soft: #0c1324;
  --color-bg-accent: radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), rgba(59, 130, 246, 0));
  --color-surface: rgba(12, 18, 35, 0.94);
  --color-surface-alt: rgba(20, 28, 48, 0.94);
  --color-text: #e2e8f0;
  --color-muted: #a1acc7;
  --color-primary: #9f6bff;
  --color-primary-dark: #7c3aed;
  --color-accent-pink: #c084fc;
  --color-accent-purple: #6366f1;
  --color-accent-orange: #7c3aed;
  --color-accent-emerald: #4338ca;
  --color-border: rgba(148, 163, 184, 0.24);
  --gradient-primary: linear-gradient(135deg, #9f6bff, #6366f1);
  --gradient-primary-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(147, 51, 234, 0.32));
  --gradient-ring: linear-gradient(135deg, rgba(159, 107, 255, 0.65), rgba(99, 102, 241, 0.65));
  --font-base: 'Manrope', 'Segoe UI', sans-serif;
  --shadow-sm: 0 18px 40px rgba(8, 16, 29, 0.35);
  --shadow-lg: 0 30px 80px rgba(8, 16, 29, 0.45);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image: url('../img/aurora-veil.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.2rem, 2.8vw + 1rem, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 1.6vw + 1rem, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(6, 10, 22, 0.94), rgba(6, 10, 22, 0.78));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0), rgba(168, 85, 247, 0.65), rgba(99, 102, 241, 0));
  opacity: 0.7;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(99, 102, 241, 0.2));
  color: #ede9fe;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.2);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #f8fafc;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.35);
}

.nav {
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list a {
  position: relative;
  color: rgba(226, 232, 240, 0.8);
  font-weight: 500;
  transition: color 0.2s ease;
  padding-bottom: 0.2rem;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: #f8fafc;
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.9), rgba(99, 102, 241, 0.9));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  border-radius: 999px;
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.nav__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: clamp(4rem, 6vw, 6rem) 0 clamp(5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 12, 24, 0.65), rgba(5, 12, 24, 0.9));
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--gradient-primary-soft);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-ring);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.hero__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.24);
  color: rgba(237, 242, 255, 0.95);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(8, 16, 29, 0.2);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(159, 107, 255, 0.35);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #f8fafc;
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.45);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(99, 102, 241, 0.45);
}

.btn--secondary {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(129, 140, 248, 0.55);
  color: #f4f4ff;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: #f8fafc;
  background: var(--gradient-primary);
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.35);
}

.hero__trust {
  display: grid;
  gap: 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero__trust li {
  position: relative;
  padding-left: 1.6rem;
}

.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-ring);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.18);
}

.hero__profile {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  background: rgba(12, 22, 40, 0.9);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.45), rgba(99, 102, 241, 0.32));
  opacity: 0.45;
  z-index: 0;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: rgba(8, 16, 29, 0.8);
  z-index: 1;
  box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.65);
}

.profile-card__photo {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.45));
  box-shadow: inset 0 1px 0 rgba(237, 242, 255, 0.25), 0 25px 40px rgba(99, 102, 241, 0.25);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.profile-card__photo span {
  text-transform: uppercase;
}

.profile-card__content {
  position: relative;
  z-index: 2;
}

.profile-card__content ul {
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  list-style: disc;
}

.section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section--accent {
  background: var(--color-bg-accent);
  color: var(--color-text);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.section--soft {
  background: var(--color-bg-soft);
}

.section--canvas {
  background: linear-gradient(160deg, rgba(67, 56, 202, 0.18), rgba(30, 27, 75, 0.76), rgba(5, 12, 24, 0.9));
}

.section--aurora::before,
.section--plasma::before,
.section--glow::before,
.section--ripple::before,
.section--ripple::after {
  content: none;
}

.section--accent p,
.section--accent li {
  color: rgba(226, 232, 240, 0.85);
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section__intro {
  max-width: 640px;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.section--accent .section__eyebrow {
  color: rgba(124, 58, 237, 0.7);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skills {
  display: grid;
  gap: 3rem;
}

.skills__lists {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skills__group {
  position: relative;
  background: rgba(11, 20, 35, 0.85);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
}

.skills__group::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(99, 102, 241, 0.28));
  opacity: 0.35;
  z-index: 0;
}

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

.skills__group h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list--wrap {
  margin: 1.5rem 0 2.5rem;
}

.pill-list li {
  background: rgba(124, 58, 237, 0.28);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: rgba(237, 242, 255, 0.96);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(8, 16, 29, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-list li:hover,
.pill-list li:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.28);
}

.checklist {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--color-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(99, 102, 241, 0.7));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.card {
  position: relative;
  background: rgba(8, 16, 29, 0.95);
  padding: 2rem;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(99, 102, 241, 0.15));
  opacity: 0.4;
  z-index: 0;
}

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

.card--compact {
  gap: 0.75rem;
}

.card--feature ul {
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
  padding-left: 1rem;
  list-style: disc;
}

.benefits .benefit {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(67, 56, 202, 0.05));
  border-radius: 18px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.benefits .benefit::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 18px;
  pointer-events: none;
}

.benefits .benefit h3 {
  color: var(--color-text);
}

.benefits .benefit p {
  color: var(--color-muted);
}

.experience {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.about {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about__facts h3 {
  margin-bottom: 1.2rem;
}

.about__list {
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.about__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-muted);
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.18);
}

.timeline {
  display: grid;
  gap: 2rem;
  padding-left: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 0.6rem;
  width: 2px;
  height: 100%;
  background: rgba(124, 58, 237, 0.4);
}

.services-list {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  position: relative;
  padding-left: 1.8rem;
  color: rgba(226, 232, 240, 0.88);
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(99, 102, 241, 0.6));
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15);
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 12px;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2);
}

.timeline__year {
  font-weight: 600;
  color: var(--color-muted);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.case {
  position: relative;
  background: rgba(10, 18, 33, 0.9);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.case::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(99, 102, 241, 0.28));
  opacity: 0.35;
  z-index: 0;
}

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

.case__result {
  font-weight: 600;
  color: rgba(241, 245, 249, 0.92);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.process {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  position: relative;
  background: rgba(8, 16, 29, 0.82);
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.step__number {
  position: absolute;
  top: -0.6rem;
  right: 1.2rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.08);
}

.step::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(99, 102, 241, 0.26));
  opacity: 0.35;
  z-index: 0;
}

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

.faq {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.faq__list {
  display: grid;
  gap: 1rem;
}

.faq details {
  position: relative;
  background: rgba(8, 16, 29, 0.82);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.faq details::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(99, 102, 241, 0.28));
  opacity: 0.35;
  z-index: 0;
}

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

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--color-primary);
}

.faq details p {
  margin-top: 0.8rem;
  color: var(--color-muted);
}

.contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact__details {
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
}

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

.contact__details a:hover,
.contact__details a:focus-visible {
  color: var(--color-primary);
}

.contact__form {
  position: relative;
  background: rgba(10, 18, 33, 0.9);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: grid;
  gap: 1.2rem;
  overflow: hidden;
}

.contact__form::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(99, 102, 241, 0.28));
  opacity: 0.4;
  z-index: 0;
}

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

.form__field {
  display: grid;
  gap: 0.5rem;
}

.form__field label {
  font-weight: 600;
}

.form__field input,
.form__field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font: inherit;
  background: var(--color-surface-alt);
  color: var(--color-text);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.form__field--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.form__field--inline input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

.form__note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

.site-footer {
  background: rgba(8, 16, 29, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p,
.site-footer a {
  color: var(--color-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: #f8fafc;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -30px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, 30px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: absolute;
    inset: 50px 0 auto auto;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    display: grid;
    gap: 1rem;
    min-width: 220px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav__list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero__inner {
    text-align: left;
  }

  .profile-card {
    justify-items: center;
    text-align: center;
  }

  .hero__tags {
    justify-content: center;
  }

  .timeline::before {
    left: 0.3rem;
  }

  .timeline li {
    padding-left: 2rem;
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    padding: 0.75rem 0;
  }

  .container {
    width: min(100% - 1.8rem, var(--max-width));
  }

  .form__field--inline {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}
