/* OneguS Bio — Glassmorphism (Kyuryo-style) */
:root {
  color-scheme: dark;
  --bg0: #060d1a;
  --bg1: #0a1628;
  --bg2: #0f1f35;
  --text: #f1f5ff;
  --muted: rgba(255, 255, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --cyan: #2daaff;
  --cyan-bright: #00d4ff;
  --cyan-glow: rgba(45, 170, 255, 0.45);
  --cyan-soft: rgba(45, 170, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell-max: 440px;
  --px: 0px;
  --py: 0px;
  --vh: 1vh;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: -webkit-fill-available;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg0);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

body.is-loading .panel {
  opacity: 0;
  transform: translateY(12px);
}

body.is-ready .panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .shell {
  visibility: hidden;
}

body.intro-active.is-ready .shell {
  visibility: visible;
}

/* Intro splash — vídeo de apresentação */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-splash__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 45%, var(--bg0) 100%);
}

.intro-splash__bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(800px 600px at 50% 30%, rgba(45, 170, 255, 0.2), transparent 60%);
  filter: blur(50px);
}

.intro-splash__panel {
  position: relative;
  width: min(var(--shell-max), 100%);
  aspect-ratio: 9 / 16;
  max-height: calc(var(--vh, 1vh) * 100 - 32px);
  max-height: min(calc(100dvh - 32px), calc(100vh - 32px));
  border-radius: var(--radius-lg);
  overflow: hidden;
  direction: ltr;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--glass);
  border: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow), 0 0 40px rgba(45, 170, 255, 0.15);
  isolation: isolate;
}

.intro-splash__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(0, 212, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(45, 170, 255, 0.35) 70%,
    rgba(0, 212, 255, 0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.75;
}

.intro-splash__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-splash.is-playing .intro-splash__video {
  opacity: 1;
  visibility: visible;
}

.intro-splash__gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding:
    48px 18px 18px
    18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(45, 170, 255, 0.12), transparent 55%),
    rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.intro-splash.is-playing .intro-splash__gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-splash__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.intro-splash__logo {
  width: 100%;
}

.intro-splash__text {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  max-width: 300px;
  line-height: 1.45;
  font-weight: 600;
  flex-shrink: 0;
}

.intro-splash__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  width: 100%;
  max-width: 300px;
  line-height: 1.4;
  text-align: center;
  flex-shrink: 0;
}

.intro-splash__hint.is-hidden,
.intro-splash__hint[hidden] {
  display: none;
}

.intro-splash__cta {
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
}

/* Seletor pill na bio (painel principal) */
.lang-switch--bio {
  margin-top: 10px;
  z-index: 15;
}

/* Seletor pill na intro — mesmo estilo da bio */
.lang-switch--intro {
  display: flex;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 16px;
  padding: 4px;
  border-radius: 999px;
  flex-shrink: 0;
  z-index: 1;
}

.lang-switch--intro .lang-switch__option {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Play — sobrescreve .cta { display: inline-block } */
.intro-splash__play.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  min-height: 50px;
  padding: 0 22px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

.intro-splash__play-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.intro-splash__play-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.intro-splash__play-label {
  line-height: 1.2;
  white-space: nowrap;
}

.intro-splash__play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 4px 16px rgba(45, 170, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: none;
}

.intro-splash__play:disabled::before {
  animation: none;
  opacity: 0;
}

.intro-splash__play.cta:hover:not(:disabled),
.intro-splash__play.cta:focus-visible:not(:disabled) {
  transform: translateY(-2px);
}

.intro-splash__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 12px 12px 0;
  pointer-events: none;
}

.intro-splash__topbar .intro-splash__skip {
  position: static;
  pointer-events: auto;
  flex-shrink: 0;
}

.intro-splash__skip {
  margin: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.intro-splash__skip-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.intro-splash__skip svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  flex-shrink: 0;
}

.intro-splash__skip:hover,
.intro-splash__skip:focus-visible {
  background:
    linear-gradient(145deg, rgba(45, 170, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(6, 13, 26, 0.82);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
  box-shadow:
    0 6px 22px rgba(45, 170, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.intro-splash__skip:hover svg,
.intro-splash__skip:focus-visible svg {
  opacity: 1;
}


/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 38%, var(--bg0) 100%);
  overflow: hidden;
}

.bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(900px 700px at 50% 0%, rgba(45, 170, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 60%, rgba(0, 180, 255, 0.08), transparent 55%);
  filter: blur(60px);
  transform: translate3d(calc(var(--px) * 0.3), calc(var(--py) * 0.3), 0);
  pointer-events: none;
}

.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 40% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 70% 25%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 30% 75%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 55% 55%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.35;
  animation: drift 40s linear infinite;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.shell {
  width: min(var(--shell-max), 100%);
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(32px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
}

/* Main glass panel — borda líquida animada */
.panel {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.06) 100%),
    var(--glass);
  border: 1px solid transparent;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: visible;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(0, 212, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 38%,
    rgba(45, 170, 255, 0.38) 68%,
    rgba(0, 212, 255, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%, transparent 72%, rgba(45, 170, 255, 0.06) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

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

.hero,
.link-list,
.portfolio,
.foot {
  position: relative;
  z-index: 2;
}

@keyframes glassBeamSweep {
  0%, 12% {
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
  }
  22% { opacity: 1; }
  42% {
    transform: translateX(240%) skewX(-18deg);
    opacity: 1;
  }
  52%, 100% {
    transform: translateX(240%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes glassInnerPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.02);
  }
}

@keyframes glassIconGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 12px rgba(45, 170, 255, 0.12);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 0 20px rgba(45, 170, 255, 0.28);
  }
}

@keyframes ctaGlassFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero / Logo */
.hero {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: 22px;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 0 8px;
  isolation: isolate;
}

.hero-logo__fx {
  position: absolute;
  inset: -24px -36px -16px;
  pointer-events: none;
  z-index: 0;
}

.hero-logo-aurora {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 212, 255, 0) 0deg,
    rgba(0, 212, 255, 0.55) 55deg,
    rgba(90, 120, 255, 0.4) 120deg,
    rgba(255, 255, 255, 0.28) 185deg,
    rgba(45, 170, 255, 0.5) 255deg,
    rgba(0, 212, 255, 0) 360deg
  );
  filter: blur(26px);
  opacity: 0.9;
  animation: logoAuroraSpin 14s linear infinite;
}

.hero-logo-orbit {
  position: absolute;
  inset: 14% 18%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 212, 255, 0.85) 28deg,
    transparent 56deg,
    transparent 180deg,
    rgba(140, 210, 255, 0.65) 208deg,
    transparent 236deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 63%, transparent 64%);
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 63%, transparent 64%);
  filter: blur(0.4px) drop-shadow(0 0 10px rgba(0, 212, 255, 0.55));
  opacity: 0.75;
  animation: logoOrbitSpin 9s linear infinite;
}

.hero-logo__stage {
  position: relative;
  z-index: 2;
  width: min(220px, 78vw);
  display: grid;
  place-items: center;
}

.hero-logo__stage--intro {
  width: min(200px, 70vw);
}

.hero-logo__img,
.hero-logo img,
.hero-logo-inner img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(45, 170, 255, 0.35))
    drop-shadow(0 0 36px rgba(0, 180, 255, 0.18));
  animation: logoFloat 5.5s ease-in-out infinite;
}

.hero-logo-shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-image: url("../assets/logo-onegus3.png");
  mask-image: url("../assets/logo-onegus3.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.15) 44%,
    rgba(200, 245, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.15) 56%,
    transparent 62%,
    transparent 100%
  );
  background-size: 280% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  opacity: 0;
  animation: logoShimmerSweep 6.5s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
}

.hero-logo-glow {
  display: none;
}

@keyframes logoAuroraSpin {
  to { transform: rotate(360deg); }
}

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

@keyframes logoShimmerSweep {
  0%, 18% {
    background-position: 130% 0;
    opacity: 0;
  }
  28% { opacity: 1; }
  46% {
    background-position: -30% 0;
    opacity: 1;
  }
  58%, 100% {
    background-position: -30% 0;
    opacity: 0;
  }
}

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

/* Legacy hero (orcamento / planos) */
.hero-logo-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px 0 4px;
}

.hero-logo-halo {
  display: none;
}

.hero-logo-orb {
  position: relative;
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  overflow: visible;
}

.hero-logo-orb::before,
.hero-logo-particles,
.hero-orb-decorative {
  display: none;
}

.hero-logo-inner {
  display: grid;
  place-items: center;
}

.hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-subtitle strong {
  color: #fff;
}

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

/* Link cards — glass tiles */
.link-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(45, 170, 255, 0.05) 100%),
    var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120px 80px at 10% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(100px 70px at 90% 100%, rgba(45, 170, 255, 0.12), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: glassInnerPulse 5s ease-in-out infinite;
}

.link-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -55%;
  width: 42%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(200, 245, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  animation: glassBeamSweep 8s ease-in-out infinite;
}

.link-list .link-card:nth-child(1)::after { animation-delay: 0s; }
.link-list .link-card:nth-child(2)::after { animation-delay: -2s; }
.link-list .link-card:nth-child(3)::after { animation-delay: -4s; }
.link-list .link-card:nth-child(4)::after { animation-delay: -6s; }

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

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(45, 170, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 24px rgba(45, 170, 255, 0.08);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 0.9;
}

.link-card.glow-tap {
  box-shadow:
    0 0 24px rgba(45, 170, 255, 0.35),
    inset 0 0 20px rgba(45, 170, 255, 0.12);
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: glassIconGlow 4s ease-in-out infinite;
}

.link-list .link-card:nth-child(1) .link-icon { animation-delay: 0s; }
.link-list .link-card:nth-child(2) .link-icon { animation-delay: -1s; }
.link-list .link-card:nth-child(3) .link-icon { animation-delay: -2s; }
.link-list .link-card:nth-child(4) .link-icon { animation-delay: -3s; }

.link-icon img,
.link-icon svg {
  width: 22px;
  height: 22px;
  max-width: none;
}

.link-icon svg {
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 1.6;
  display: block;
}

.link-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.link-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.link-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px rgba(45, 170, 255, 0.25);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.8;
}

/* Portfolio — banner com margem interna no painel */
.portfolio {
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--glass-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 28px rgba(0, 0, 0, 0.3);
}

.portfolio__frame {
  position: relative;
  width: 100%;
  min-height: 168px;
  aspect-ratio: 1672 / 941;
  max-height: min(42vw, 240px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background: var(--bg1);
}

.portfolio__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 26, 0.08) 0%,
    rgba(6, 13, 26, 0.4) 45%,
    rgba(6, 13, 26, 0.9) 100%
  );
  pointer-events: none;
}

.portfolio::before {
  z-index: 3;
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(45, 170, 255, 0.3) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.portfolio__frame .portfolio-text {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  padding: 16px 12px 14px;
  text-align: center;
}

.portfolio-text h2 {
  margin: 0 0 12px;
  font-size: clamp(17px, 4.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.portfolio-text .cta {
  font-size: clamp(12px, 3.4vw, 14px);
  padding: 12px 18px;
}

/* CTA — glass líquido animado */
.cta {
  position: relative;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(45, 170, 255, 0.95) 0%, rgba(0, 153, 204, 0.9) 50%, rgba(0, 212, 255, 0.85) 100%);
  background-size: 200% 200%;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 8px 28px rgba(45, 170, 255, 0.4),
    0 0 24px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  animation: ctaGlassFlow 6s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  display: inline-block;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: glassBeamSweep 5s ease-in-out infinite;
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.cta svg,
.cta span {
  position: relative;
  z-index: 1;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 12px 36px rgba(45, 170, 255, 0.5),
    0 0 32px rgba(0, 212, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta.glow-tap {
  box-shadow: 0 0 28px rgba(45, 170, 255, 0.55);
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan-bright);
}

.foot-badge {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

/* Ripple */
.ripple-target {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-60px); }
}

/* Image modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(45, 170, 255, 0.2);
  border: 1px solid var(--glass-border);
  background: rgba(6, 13, 26, 0.95);
  animation: modalFadeIn 0.3s ease;
}

.image-modal-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Language switch */
.lang-switch {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 15;
  margin-top: 4px;
}

.lang-switch__option {
  padding: 8px 14px;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 40px;
  text-align: center;
}

.lang-switch__option:hover {
  color: #fff;
}

.lang-switch__option.active {
  background: linear-gradient(135deg, rgba(45, 170, 255, 0.4), rgba(0, 180, 255, 0.28));
  color: #fff;
  box-shadow:
    0 0 16px rgba(45, 170, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: glassInnerPulse 3s ease-in-out infinite;
}

/* Shared card styles for sub-pages */
.link-card,
.service-card,
.plan-card,
.feature-card {
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}

.cta,
.plan-cta,
.service-cta {
  position: relative;
  overflow: hidden;
}

/* Fallback: navegadores sem backdrop-filter (ex. Firefox antigo, IE) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel,
  .link-card,
  .portfolio,
  .intro-splash__panel,
  .intro-splash__gate,
  .lang-switch,
  .lang-switch--intro,
  .lang-switch--bio,
  .foot-badge,
  .image-modal-content,
  .image-modal-close {
    background: rgba(10, 22, 40, 0.94);
  }
}

/* Fallback: navegadores sem aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .intro-splash__panel {
    height: min(75vh, 680px);
  }
}

/* Fallback: navegadores sem conic-gradient */
@supports not (background: conic-gradient(red, blue)) {
  .hero-logo-aurora {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.45), transparent 70%);
  }

  .hero-logo-orbit {
    background: radial-gradient(circle, transparent 58%, rgba(0, 212, 255, 0.35) 62%, transparent 66%);
  }
}

/* Telas pequenas */
@media (max-width: 380px) {
  :root {
    --radius-lg: 22px;
    --radius-md: 16px;
  }

  .panel {
    padding: 20px 14px 16px;
  }

  .link-card {
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .link-title {
    font-size: 14px;
  }

  .link-subtitle {
    font-size: 11px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
  }

  .link-icon img,
  .link-icon svg {
    width: 20px;
    height: 20px;
  }

  .intro-splash__play.cta {
    min-height: 48px;
    padding: 0 16px;
    font-size: 13px;
  }

  .intro-splash__play-label {
    white-space: normal;
    text-align: center;
  }

  .lang-switch--intro {
    max-width: 100%;
  }

  .lang-switch--intro .lang-switch__option {
    font-size: 12px;
    padding: 9px 6px;
  }

  .intro-splash__text {
    font-size: 14px;
  }

  .portfolio {
    padding: 12px 12px;
  }

  .portfolio__frame {
    min-height: 140px;
    max-height: none;
    aspect-ratio: 16 / 11;
  }

  .portfolio__bg {
    object-fit: contain;
    object-position: center center;
  }

  .portfolio__frame .portfolio-text {
    padding: 12px 10px 12px;
  }

  .portfolio-text h2 {
    margin-bottom: 10px;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-logo__stage {
    width: min(190px, 82vw);
  }

  .lang-switch__option {
    padding: 8px 10px;
    font-size: 11px;
    min-width: 36px;
  }
}

@media (max-width: 360px) {
  .link-card {
    min-height: 60px;
  }

  .portfolio {
    padding: 10px 10px;
  }

  .portfolio__frame {
    min-height: 128px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .portfolio-text .cta {
    width: 100%;
    max-width: 220px;
  }
}

/* Tablets e telas médias */
@media (min-width: 481px) {
  :root {
    --shell-max: 480px;
  }

  .shell {
    padding-top: 24px;
  }
}

@media (min-width: 768px) {
  :root {
    --shell-max: 520px;
  }

  .shell {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .panel {
    padding: 28px 24px 24px;
  }

  .hero-logo__stage {
    width: min(260px, 55vw);
  }

  .link-title {
    font-size: 16px;
  }

  .portfolio {
    padding: 16px 18px;
  }

  .portfolio__frame {
    max-height: 260px;
  }

  .portfolio-text h2 {
    font-size: 22px;
  }

  .intro-splash__panel {
    width: min(720px, 88vw);
    aspect-ratio: 16 / 10;
    max-height: min(520px, calc(100dvh - 48px));
  }

  .intro-splash__gate {
    overflow: hidden;
    padding: 56px 36px 32px;
  }

  .intro-splash__logo-wrap {
    margin-bottom: 6px;
  }

  .hero-logo__stage--intro {
    width: min(120px, 22vw);
  }

  .intro-splash__text {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .lang-switch--intro,
  .intro-splash__cta {
    max-width: 320px;
  }

  .lang-switch--intro {
    margin-bottom: 20px;
    padding: 5px;
  }

  .lang-switch--intro .lang-switch__option {
    padding: 11px 14px;
    font-size: 14px;
  }

  .intro-splash__play.cta {
    min-height: 54px;
    padding: 0 32px;
    font-size: 15px;
    border-radius: 14px;
  }

  .intro-splash__play-icon {
    width: 22px;
    height: 22px;
  }

  .intro-splash__topbar {
    padding: 16px 16px 0;
  }

  .intro-splash__skip {
    padding: 0 18px;
    min-height: 44px;
    font-size: 14px;
  }

  .intro-splash__skip-inner {
    min-height: 44px;
    gap: 10px;
  }

  .intro-splash__skip svg {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 1024px) {
  :root {
    --shell-max: 560px;
  }
}

/* Landscape em celulares */
@media (max-height: 520px) and (orientation: landscape) {
  .intro-splash__panel {
    aspect-ratio: auto;
    width: min(72vw, 720px);
    height: calc(100dvh - 24px);
    height: calc(var(--vh, 1vh) * 100 - 24px);
    max-height: none;
  }

  .intro-splash__gate {
    gap: 10px;
    padding: 16px 20px;
  }

  .intro-splash__logo-wrap {
    transform: scale(0.85);
  }

  .hero {
    margin-bottom: 14px;
  }

  .hero-logo {
    padding: 4px 0;
  }

  .shell {
    padding-top: 12px;
    padding-bottom: 16px;
  }
}

/* Touch: área mínima de toque (44px — Apple HIG / WCAG) */
@media (pointer: coarse) {
  .link-card {
    min-height: 48px;
  }

  .lang-switch__option {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .intro-splash__skip,
  .intro-splash__play,
  .lang-switch--intro .lang-switch__option,
  .cta,
  .image-modal-close {
    min-height: 44px;
  }

  .link-arrow {
    width: 36px;
    height: 36px;
  }
}

/* Telas muito largas */
@media (min-width: 1400px) {
  .shell {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-splash__gate,
  .intro-splash__video {
    transition: none;
  }

  .panel::before,
  .intro-splash__panel::before,
  .portfolio::before,
  .link-card::before,
  .link-card::after,
  .link-icon,
  .cta,
  .cta::before,
  .lang-switch__option.active {
    animation: none;
  }

  .bg-stars,
  .hero-logo-aurora,
  .hero-logo-orbit,
  .hero-logo__img,
  .hero-logo img,
  .hero-logo-shimmer {
    animation: none;
  }

  .hero-logo-shimmer {
    opacity: 0;
  }

  body.is-ready .panel {
    transition: none;
  }

  .image-modal-content {
    animation: none;
  }
}
