:root {
  --background: #07090b;
  --card: rgba(15, 20, 25, 0.9);
  --card-deep: rgba(8, 12, 16, 0.96);
  --text: #f7f9fa;
  --muted: #929da6;
  --quiet: #5f6a73;
  --line: rgba(210, 234, 245, 0.1);
  --focus: #66effa;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  min-width: 20rem;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 34rem 26rem at 50% 7%, rgba(12, 143, 212, 0.1), transparent 72%),
    radial-gradient(ellipse 40rem 32rem at 8% 108%, rgba(7, 49, 94, 0.12), transparent 70%),
    linear-gradient(155deg, #0a0d10 0%, #07090b 42%, #050708 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.19;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

.page-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
}

.profile-card {
  position: relative;
  width: min(100%, 32.5rem);
  padding: clamp(1.3rem, 4.5vw, 2.35rem);
  overflow: hidden;
  border: 1px solid rgba(221, 244, 255, 0.085);
  border-radius: 1.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 35%),
    linear-gradient(170deg, rgba(13, 18, 22, 0.92), rgba(7, 10, 13, 0.9));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 -1px 0 rgba(26, 185, 236, 0.035) inset,
    0 2.2rem 6rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(1.6rem);
  animation: panel-enter 520ms var(--ease) both;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-mark {
  position: relative;
  display: grid;
  width: clamp(9.5rem, 38vw, 11.5rem);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.1rem;
  isolation: isolate;
}

.brand-mark::before,
.brand-mark::after,
.logo-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.brand-mark::before {
  inset: 4%;
  z-index: -2;
  content: "";
  opacity: 0.85;
  background: radial-gradient(circle, rgba(24, 196, 244, 0.13), rgba(4, 48, 91, 0.035) 54%, transparent 72%);
  filter: blur(0.3rem);
}

.brand-mark::after {
  inset: 7%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(79, 218, 245, 0.09);
  border-right-color: rgba(79, 218, 245, 0.26);
  border-bottom-color: transparent;
  transform: rotate(-24deg);
}

.logo-orbit {
  inset: 16%;
  z-index: -1;
  border: 1px solid rgba(72, 223, 247, 0.055);
  box-shadow: 0 0 2.6rem rgba(11, 154, 224, 0.13);
}

.devon-logo {
  display: block;
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0.7rem 1.3rem rgba(0, 153, 255, 0.17));
  animation: logo-float 5.8s ease-in-out infinite;
}

.particle {
  position: absolute;
  z-index: 2;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0;
  background: #b9f7ff;
  box-shadow: 0 0 0.45rem rgba(39, 230, 245, 0.9);
  animation: particle-rise 4.8s ease-out infinite;
}

.particle-1 { bottom: 34%; left: 27%; --drift: -0.65rem; animation-delay: -0.4s; }
.particle-2 { bottom: 28%; left: 46%; --drift: 0.35rem; animation-delay: -2.3s; }
.particle-3 { bottom: 37%; left: 69%; --drift: 0.75rem; animation-delay: -3.5s; }
.particle-4 { bottom: 24%; left: 58%; --drift: -0.15rem; animation-delay: -1.5s; }
.particle-5 { bottom: 40%; left: 36%; --drift: 0.5rem; animation-delay: -4.2s; }

.eyebrow {
  margin: 0;
  color: #a2adb5;
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.08rem, 4vw, 1.25rem);
  font-weight: 570;
  line-height: 1.4;
  letter-spacing: -0.028em;
}

.links {
  position: relative;
  margin-top: 1.8rem;
}

.featured-link,
.social-link {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 0.8rem 1.8rem rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms var(--ease),
    box-shadow 240ms ease;
}

.featured-link {
  grid-template-columns: 4.7rem minmax(0, 1fr) 2rem;
  gap: 1rem;
  min-height: 7rem;
  padding: 0.9rem 1rem;
  border-color: rgba(229, 239, 243, 0.16);
  border-radius: 1.3rem;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.055), transparent 42%),
    radial-gradient(circle at 0 50%, rgba(188, 15, 25, 0.075), transparent 46%),
    var(--card-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.55) inset,
    0 1.1rem 2.8rem rgba(0, 0, 0, 0.24);
}

.featured-link::before,
.social-link::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  width: 1px;
  content: "";
  opacity: 0.5;
  background: linear-gradient(180deg, transparent, rgba(117, 229, 247, 0.65), transparent);
  transition: opacity 220ms ease, box-shadow 220ms ease;
}

.featured-link::before {
  opacity: 0.75;
  background: linear-gradient(180deg, transparent, rgba(255, 63, 71, 0.9), transparent);
  box-shadow: 0 0 0.9rem rgba(255, 43, 51, 0.22);
}

.featured-logo-wrap {
  display: grid;
  width: 4.7rem;
  height: 4.7rem;
  place-items: center;
  padding: 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 55% 48%, rgba(255, 29, 40, 0.1), transparent 70%),
    #0a0d10;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0.85rem 1.6rem rgba(0, 0, 0, 0.26);
}

.avante-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.26rem;
}

.featured-copy strong {
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 660;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-copy > span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.social-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.social-link {
  grid-template-columns: 2.6rem 1fr 2rem;
  gap: 0.9rem;
  min-height: 4.2rem;
  padding: 0.65rem 0.9rem 0.65rem 0.72rem;
  border-radius: 1.05rem;
  font-size: 0.95rem;
  font-weight: 590;
  letter-spacing: -0.01em;
}

.social-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(231, 245, 251, 0.09);
  border-radius: 0.82rem;
  color: #dce5e9;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 45%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.social-icon svg {
  width: 1.12rem;
  height: 1.12rem;
  overflow: visible;
  fill: currentColor;
}

.link-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 50%;
  color: #66727b;
  background: rgba(255, 255, 255, 0.018);
  transition: color 200ms ease, border-color 200ms ease, transform 220ms var(--ease);
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-link:hover,
.social-link:hover {
  border-color: rgba(104, 225, 244, 0.27);
  background-color: rgba(18, 25, 30, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 1.2rem 2.6rem rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

.featured-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 1.4rem 3.2rem rgba(0, 0, 0, 0.35),
    0 0 2.5rem rgba(222, 20, 31, 0.045) inset;
}

.featured-link:hover::before,
.social-link:hover::before {
  opacity: 1;
  box-shadow: 0 0 0.9rem rgba(39, 230, 245, 0.28);
}

.social-link:hover .social-icon {
  color: #f2fcff;
  border-color: rgba(114, 229, 246, 0.19);
  background-color: rgba(48, 127, 150, 0.07);
}

.featured-link:hover .link-arrow,
.social-link:hover .link-arrow {
  color: #e8f9fc;
  border-color: rgba(109, 226, 244, 0.18);
  transform: translate(1px, -1px);
}

.featured-link:active,
.social-link:active {
  transform: scale(0.985);
}

.featured-link:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

footer {
  position: relative;
  margin-top: 1.7rem;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

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

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes particle-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.65); }
  18% { opacity: 0.65; }
  64% { opacity: 0.28; }
  100% { opacity: 0; transform: translate3d(var(--drift), -3.2rem, 0) scale(0.2); }
}

@media (max-width: 22rem) {
  .page-shell { padding-inline: 0.7rem; }

  .profile-card {
    padding: 1.1rem;
    border-radius: 1.4rem;
  }

  .brand-mark {
    width: 8.9rem;
    margin-bottom: 0.8rem;
  }

  .links { margin-top: 1.45rem; }

  .featured-link {
    grid-template-columns: 4rem minmax(0, 1fr) 1.8rem;
    gap: 0.72rem;
    min-height: 6.15rem;
    padding: 0.75rem;
  }

  .featured-logo-wrap {
    width: 4rem;
    height: 4rem;
  }

  .featured-copy > span { font-size: 0.78rem; }

  .social-link {
    grid-template-columns: 2.4rem 1fr 1.8rem;
    gap: 0.72rem;
    min-height: 3.8rem;
    padding-inline: 0.65rem;
  }

  .social-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .link-arrow {
    width: 1.8rem;
    height: 1.8rem;
  }
}

@media (min-width: 48rem) {
  .profile-card { padding: 2.45rem; }
}

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