/* Rush Play premium presentation layer. Keeps the brand palette and app behavior. */
:root {
  --background: 225 18% 4%;
  --foreground: 30 18% 95%;
  --card: 225 17% 8%;
  --card-foreground: 30 18% 95%;
  --popover: 225 17% 8%;
  --popover-foreground: 30 18% 95%;
  --primary: 14 94% 56%;
  --primary-foreground: 225 18% 4%;
  --secondary: 225 14% 12%;
  --secondary-foreground: 30 18% 92%;
  --muted: 225 14% 13%;
  --muted-foreground: 220 10% 66%;
  --accent: 22 96% 58%;
  --accent-foreground: 225 18% 4%;
  --border: 225 13% 18%;
  --input: 225 13% 14%;
  --ring: 14 94% 56%;
  --radius: 1rem;
  --neon-glow: 14 94% 56%;
  --gradient-start: 350 88% 54%;
  --gradient-end: 23 96% 58%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: hsl(var(--background));
}

body {
  min-width: 320px;
  background:
    radial-gradient(ellipse at 12% 0%, hsl(13 74% 24% / 0.18), transparent 32rem),
    radial-gradient(ellipse at 92% 34%, hsl(22 78% 20% / 0.11), transparent 34rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(hsl(0 0% 100% / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

#root {
  position: relative;
  z-index: 1;
}

header {
  background: hsl(225 18% 4% / 0.82) !important;
  border-color: hsl(0 0% 100% / 0.08) !important;
  box-shadow: 0 10px 35px hsl(0 0% 0% / 0.14);
  backdrop-filter: blur(22px) saturate(135%);
}

header .container {
  max-width: 1440px;
}

header nav a,
header nav button {
  transition: color 160ms ease, opacity 160ms ease;
}

header nav a:hover,
header nav button:hover {
  color: hsl(var(--foreground)) !important;
}

#inicio {
  min-height: min(920px, 100svh);
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  isolation: isolate;
}

#inicio > .container {
  width: min(100%, 1340px);
}

#inicio .max-w-3xl {
  width: 100%;
  max-width: 1240px !important;
}

#inicio .max-w-3xl > .text-center {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  column-gap: clamp(2rem, 6vw, 6.5rem);
  text-align: left;
}

#inicio .max-w-3xl > .text-center > div:first-child {
  grid-column: 2;
  grid-row: 1 / 6;
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 2rem;
  background:
    radial-gradient(ellipse at 50% 45%, hsl(14 94% 56% / 0.18), transparent 65%),
    linear-gradient(145deg, hsl(0 0% 100% / 0.065), hsl(0 0% 100% / 0.012));
  box-shadow: 0 35px 100px hsl(0 0% 0% / 0.3), inset 0 1px hsl(0 0% 100% / 0.08);
}

#inicio .max-w-3xl > .text-center > div:first-child img {
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 18px 42px hsl(14 94% 56% / 0.18));
}

#inicio .max-w-3xl > .text-center > h1 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 1rem;
  color: hsl(var(--foreground));
  font-size: clamp(2.2rem, 4.7vw, 4.4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

#inicio .max-w-3xl > .text-center > p {
  grid-column: 1;
  grid-row: 2;
  max-width: 38rem;
  margin: 0 0 1.8rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

#inicio .max-w-3xl > .text-center > div:nth-child(4) {
  display: none;
}

#inicio .max-w-3xl > .text-center > div:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

#inicio .max-w-3xl > .text-center > div:nth-child(6) {
  grid-column: 1;
  grid-row: 4;
  justify-content: flex-start;
}

#inicio .max-w-3xl > .text-center > div:nth-child(7) {
  grid-column: 1;
  grid-row: 5;
  margin-top: 1.5rem;
}

#inicio .max-w-3xl > .text-center > div:nth-child(7) > div {
  justify-content: flex-start;
}

#inicio button[class*="bg-primary"],
button[class*="bg-primary"] {
  box-shadow: 0 10px 28px hsl(14 94% 48% / 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

#inicio button[class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px hsl(14 94% 48% / 0.28);
  filter: saturate(1.08);
}

section:not(#inicio) {
  scroll-margin-top: 5.5rem;
}

section:not(#inicio) > .container,
main > .container {
  max-width: 1240px;
}

section h2,
main h1 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#root [class*="rounded-2xl"][class*="border"][class*="bg-card"],
#root [class*="rounded-xl"][class*="border"][class*="bg-card"],
#root [class*="rounded-2xl"][class*="border-border"] {
  border-color: hsl(0 0% 100% / 0.09) !important;
  box-shadow: 0 16px 45px hsl(0 0% 0% / 0.18), inset 0 1px hsl(0 0% 100% / 0.025);
}

#recursos [class*="grid"] > div,
#planos [class*="grid"] > div,
#revendedor [class*="rounded-2xl"][class*="bg-card"],
#faq [data-state] {
  border-color: hsl(0 0% 100% / 0.09) !important;
  box-shadow: 0 16px 45px hsl(0 0% 0% / 0.18), inset 0 1px hsl(0 0% 100% / 0.025);
}

#recursos [class*="grid"] > div,
#planos [class*="grid"] > div {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#recursos [class*="grid"] > div:hover,
#planos [class*="grid"] > div:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.38) !important;
  box-shadow: 0 22px 55px hsl(0 0% 0% / 0.27), 0 0 32px hsl(var(--primary) / 0.06);
}

#faq button {
  min-height: 3.25rem;
  text-align: left;
}

input,
select,
textarea {
  border-radius: 0.8rem !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: hsl(var(--primary) / 0.65) !important;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.13);
}

table th {
  color: hsl(var(--foreground));
  font-weight: 650;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

@media (max-width: 767px) {
  #inicio {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 3.75rem;
  }

  #inicio .max-w-3xl > .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  #inicio .max-w-3xl > .text-center > div:first-child {
    width: min(100%, 420px);
    min-height: 0;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  #inicio .max-w-3xl > .text-center > div:first-child img {
    width: min(100%, 250px);
  }

  #inicio .max-w-3xl > .text-center > h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  #inicio .max-w-3xl > .text-center > p {
    margin-bottom: 1.3rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  #inicio .max-w-3xl > .text-center > div:nth-child(5),
  #inicio .max-w-3xl > .text-center > div:nth-child(6) {
    justify-content: center;
    width: 100%;
  }

  #inicio .max-w-3xl > .text-center > div:nth-child(7) > div {
    justify-content: center;
  }
}

@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;
  }
}
