:root {
  --bg: #050816;
  --bg-top: #09111f;
  --surface: rgba(11, 18, 33, 0.82);
  --surface-strong: rgba(15, 24, 42, 0.94);
  --surface-soft: rgba(21, 32, 56, 0.78);
  --text: #f6f8fc;
  --muted: #9aa9c2;
  --muted-strong: #cfd9ea;
  --line: rgba(161, 176, 203, 0.18);
  --line-strong: rgba(161, 176, 203, 0.28);
  --primary: #f3ba72;
  --primary-strong: #dd842f;
  --secondary: #8bb6ff;
  --secondary-strong: #4e7fe1;
  --logo-red: #db5153;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 182, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(243, 186, 114, 0.14), transparent 20%),
    linear-gradient(180deg, #03050d 0%, var(--bg-top) 28%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.014)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 22%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 78%);
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 127, 225, 0.08), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(243, 186, 114, 0.06), transparent 22%);
  opacity: 0.9;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section-spacing {
  padding: clamp(28px, 5vw, 52px) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(240px, 31vw, 440px);
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav {
  gap: clamp(18px, 2.2vw, 34px);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 186, 114, 0.88), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.footer-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a[aria-current="page"],
.footer-nav a:hover,
.footer-nav a:focus-visible {
  transform: none;
}

.hero {
  padding-top: clamp(52px, 9vw, 112px);
}

.home-flow {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.hero-copy,
.hero-card,
.resource-card,
.support-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 24, 42, 0.94), rgba(8, 14, 27, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.support-panel {
  padding: clamp(28px, 4vw, 46px);
}

.hero-intro {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) 0 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.hero-intro::before {
  display: none;
}

.hero-copy::before,
.support-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -56px -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 127, 225, 0.22), transparent 72%);
}

.eyebrow,
.section-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139, 182, 255, 0.08);
  border: 1px solid rgba(139, 182, 255, 0.16);
  color: #d8e6ff;
  font-size: 0.94rem;
  font-weight: 700;
}

h1,
h2,
h3,
strong {
  font-family: "Sora", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
}

.hero-intro h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3.15vw, 3.15rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 10px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
}

.hero-intro .lead {
  max-width: 58rem;
  margin-inline: auto;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg);
}

.btn-primary {
  color: #201002;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 32px rgba(221, 132, 47, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #f7c98b, var(--primary));
  box-shadow: 0 18px 34px rgba(221, 132, 47, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: linear-gradient(135deg, #f7c98b, var(--primary));
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(221, 132, 47, 0.24);
}

.btn-logo-red {
  color: #ecf45e;
  background: linear-gradient(135deg, #e8736e, #c8453f);
  box-shadow: 0 16px 32px rgba(200, 69, 63, 0.32);
}

.btn-logo-red:hover,
.btn-logo-red:focus-visible {
  color: #ecf45e;
  background: linear-gradient(135deg, #f08e89, #d6534e);
  box-shadow: 0 18px 34px rgba(200, 69, 63, 0.34);
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #dbe7fb;
}

.hero-visual {
  display: flex;
  min-height: 100%;
}

.hero-card {
  width: 100%;
  padding: clamp(28px, 4vw, 38px);
}

.logo-card {
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(243, 186, 114, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 29, 51, 0.96), rgba(8, 15, 28, 0.98));
}

.hero-logo {
  width: min(100%, 300px);
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #dbe7fb;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero-shortcuts a:hover,
.hero-shortcuts a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 182, 255, 0.38);
  background: rgba(139, 182, 255, 0.08);
  color: #f3f7ff;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 28px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 34px 28px 30px;
  min-height: 100%;
  isolation: isolate;
  border-color: rgba(139, 182, 255, 0.08);
  background:
    linear-gradient(180deg, #0f182a 0%, #08101f 100%) padding-box,
    linear-gradient(transparent, transparent) border-box;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 304deg,
    rgba(255, 255, 255, 0.02) 316deg,
    rgba(255, 255, 255, 1) 328deg,
    rgba(255, 244, 210, 0.95) 336deg,
    rgba(243, 186, 114, 0.38) 344deg,
    transparent 360deg
  );
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  animation: resource-card-border-spin 6.2s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.2s ease;
}

.resource-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, #0f182a 0%, #08101f 100%);
  z-index: 1;
  pointer-events: none;
}

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

.resource-card:hover,
.resource-card:focus-within {
  border-color: rgba(243, 186, 114, 0.34);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 236, 170, 0.08);
  transform: translateY(-2px);
}

.resource-card:hover::before,
.resource-card:focus-within::before {
  opacity: 1;
  animation-duration: 4.6s;
  animation-play-state: running;
}

@keyframes resource-card-border-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.card-header {
  display: flex;
  justify-content: center;
  text-align: center;
}

.card-header h3 {
  color: var(--primary);
  margin-bottom: 0;
}

.card-kicker {
  margin-bottom: 0;
  width: fit-content;
  background: rgba(243, 186, 114, 0.08);
  border-color: rgba(243, 186, 114, 0.16);
  color: #ffe5c2;
}

.resource-links {
  display: grid;
  gap: 14px;
  margin-top: auto;
  align-content: start;
}

.resource-links a {
  width: 100%;
  min-height: 74px;
  padding: 18px 22px;
  justify-content: center;
  text-align: center;
  border-radius: 16px;
  border-color: rgba(139, 182, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(22, 31, 49, 0.98), rgba(15, 22, 36, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(6, 10, 18, 0.28),
    0 10px 20px rgba(0, 0, 0, 0.18);
  color: #f0f3f9;
  font-size: 0.98rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(243, 186, 114, 0.2);
  background:
    linear-gradient(180deg, rgba(27, 39, 61, 0.98), rgba(18, 27, 42, 1));
  color: var(--logo-red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(6, 10, 18, 0.22),
    0 16px 28px rgba(0, 0, 0, 0.24);
}

.resource-links a.fichas-link:hover,
.resource-links a.fichas-link:focus-visible {
  border-color: rgba(243, 186, 114, 0.24);
  background:
    linear-gradient(180deg, rgba(28, 40, 62, 0.98), rgba(18, 27, 42, 1));
  color: var(--logo-red);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  padding-top: 6px;
}

.home-actions .btn {
  min-width: min(100%, 320px);
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.site-footer {
  padding: 14px 0 30px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 11, 21, 0.82);
}

.footer-brand img {
  width: min(220px, 100%);
}

.site-header a:focus-visible,
.site-footer a:focus-visible,
.btn:focus-visible,
.resource-links a:focus-visible,
.hero-shortcuts a:focus-visible {
  outline: 2px solid rgba(139, 182, 255, 0.75);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .hero-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .header-shell,
  .support-panel,
  .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .main-nav,
  .footer-nav {
    justify-content: center;
  }

  .main-nav a,
  .footer-nav a {
    flex: 1 1 160px;
    text-align: center;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .hero-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card,
  .resource-card,
  .support-panel {
    border-radius: 24px;
  }

  h1 {
    max-width: 13ch;
  }

  .hero-intro h1 {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header {
    position: static;
  }

  .header-shell,
  .footer-shell {
    padding-block: 16px;
  }

  .hero-copy,
  .hero-card,
  .resource-card,
  .support-panel {
    padding: 22px;
  }

  .hero-intro {
    padding: 10px 0 0;
  }

  .hero-intro h1 {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .brand-logo,
  .footer-brand img {
    width: min(100%, 250px);
    margin-inline: auto;
  }

  .main-nav a,
  .footer-nav a,
  .resource-links a,
  .hero-shortcuts a {
    width: 100%;
  }

  .main-nav a {
    width: auto;
  }

  .hero-actions .btn,
  .support-actions .btn,
  .home-actions .btn {
    width: 100%;
  }

  .resource-card {
    padding: 24px 20px;
  }

  .resource-links a {
    min-height: 68px;
    padding: 16px 18px;
  }
}
