/* ==========================================================================
   SKYNEX STUDIO - ESTILOS E AMBIENTAÇÃO VISUAL
   ========================================================================== */

:root {
  --bg-dark: #090a0c;
  --text-main: #fcfcfd;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Tipografia */
.font-outfit,
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-style: normal !important;
}

/* Fundo em Grade */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Esferas de Luz (Glow Orbs) */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.orb-top {
  width: 500px;
  height: 500px;
  background: #ffffff;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-bottom {
  width: 600px;
  height: 600px;
  background: #3b82f6;
  bottom: -200px;
  right: -100px;
}

/* Navegação */
.navbar {
  background: rgba(9, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}

/* Gradientes */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cartões com Suave Transição */
.obermann-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.obermann-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Skynex editorial direction */
:root {
  --bg-dark: #0b0e12;
  --text-main: #f2f5f8;
  --accent: #c7e6ff;
  --accent-dim: rgba(155, 202, 240, 0.13);
}

body {
  background:
    radial-gradient(ellipse at 78% 10%, rgba(155, 202, 240, 0.07), transparent 30rem),
    #0b0e12;
}

.bg-grid-pattern {
  background-size: 72px 72px;
  background-image:
    linear-gradient(to right, rgba(155, 202, 240, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 202, 240, 0.035) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.orb-top {
  background: var(--accent);
  opacity: 0.06;
}

.orb-bottom {
  background: #597fa2;
  opacity: 0.12;
}

.navbar {
  background: rgba(8, 10, 10, 0.86);
  border-color: rgba(155, 202, 240, 0.16);
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 205px;
  width: 205px;
  height: 54px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  top: -52px;
  left: -27px;
  width: 250px;
  max-width: none;
  height: auto;
  filter: invert(1) brightness(2);
}

.brand-mark > span:not(img) {
  position: absolute;
  inset: 0;
  align-content: center;
}

.brand-mark-footer {
  flex-basis: 164px;
  width: 164px;
  height: 44px;
}

.brand-mark-footer img {
  top: -42px;
  left: -22px;
  width: 200px;
}

.btn-primary {
  gap: 0.75rem;
  color: #10161c;
  background: var(--accent);
  border-radius: 0.35rem;
  box-shadow: 4px 4px 0 rgba(155, 202, 240, 0.18);
}

.btn-primary:hover {
  color: #10161c;
  background: #e3f3ff;
  box-shadow: 6px 6px 0 rgba(155, 202, 240, 0.22);
}

.btn-secondary {
  gap: 0.75rem;
  border-color: rgba(155, 202, 240, 0.34);
  border-radius: 0.35rem;
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.text-gradient {
  background: linear-gradient(110deg, var(--accent) 5%, #eef8ff 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skynex-hero {
  min-height: min(920px, 100vh);
  overflow: hidden;
}

.hero-eyebrow,
.hero-visual-caption,
.hero-window-top,
.hero-window-tag,
.hero-window-bottom,
.hero-index,
.hero-sticker,
.section-index {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-eyebrow > span:first-child,
.hero-visual-caption > span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(180, 220, 250, 0.9);
}

.hero-eyebrow-line {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: rgba(155, 202, 240, 0.46);
}

.hero-title {
  max-width: 12ch;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-promises span {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(155, 202, 240, 0.25);
  background: rgba(155, 202, 240, 0.045);
  color: #d7e3ee;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  min-height: 29rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(155, 202, 240, 0.24);
  border-radius: 50%;
  transform: rotate(-27deg);
}

.hero-orbit-outer {
  width: 31rem;
  height: 19rem;
}

.hero-orbit-inner {
  width: 24rem;
  height: 15rem;
  border-color: rgba(155, 202, 240, 0.14);
  transform: rotate(38deg);
}

.hero-crosshair {
  position: absolute;
  top: 3.3rem;
  right: 2.2rem;
  color: var(--accent);
  font-size: 2.2rem;
  animation: slow-spin 24s linear infinite;
}

.hero-index {
  position: absolute;
  top: 3rem;
  left: 1rem;
  color: #f4f4ed;
  font-size: 1rem;
}

.hero-index span {
  color: var(--accent);
}

.hero-sticker {
  position: absolute;
  z-index: 2;
  top: 5.5rem;
  right: 0;
  display: grid;
  place-content: center;
  width: 6.1rem;
  height: 6.1rem;
  color: #10161c;
  background: var(--accent);
  text-align: center;
  line-height: 1.25;
  transform: rotate(9deg);
}

.hero-window {
  position: relative;
  z-index: 1;
  width: min(100%, 25rem);
  padding: 0.65rem;
  border: 1px solid rgba(155, 202, 240, 0.42);
  background: rgba(11, 14, 12, 0.92);
  box-shadow: 22px 25px 0 rgba(155, 202, 240, 0.1), 0 24px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}

.hero-window-top {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(155, 202, 240, 0.24);
  color: #a4b1be;
  font-size: 0.52rem;
}

.hero-window-top span:last-child {
  color: var(--accent);
  letter-spacing: 0.25em;
}

.hero-window-content {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, transparent 44%, rgba(155, 202, 240, 0.12) 44.2%, transparent 44.5%),
    radial-gradient(ellipse at 75% 25%, rgba(155, 202, 240, 0.17), transparent 50%),
    #111820;
}

.hero-window-tag {
  color: var(--accent);
  font-size: 0.53rem;
}

.hero-window-title {
  margin-top: 1rem;
  color: #f2f7fb;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.97;
}

.hero-window-title strong {
  color: var(--accent);
  font-weight: 800;
}

.hero-window-bar {
  width: 100%;
  height: 2px;
  margin-top: 1.7rem;
  background: rgba(255, 255, 255, 0.13);
}

.hero-window-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--accent);
}

.hero-window-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #98aaba;
  font-size: 0.46rem;
}

.hero-visual-caption {
  position: absolute;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #a4b4c2;
  font-size: 0.53rem;
}

.hero-visual-caption > span {
  width: 0.38rem;
  height: 0.38rem;
}

@keyframes slow-spin {
  to { transform: rotate(333deg); }
}

#projects,
#concepts,
#solucoes,
#sobre {
  max-width: 88rem;
  scroll-margin-top: 7rem;
}

#projects,
#concepts,
#solucoes {
  border-color: rgba(155, 202, 240, 0.16);
}

.section-intro {
  position: relative;
  max-width: 68rem;
  margin-right: auto;
  margin-left: auto;
  padding: 0 0 1.5rem 1.5rem;
  text-align: left;
  border-left: 2px solid var(--accent);
}

.section-index {
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 0.68rem;
}

.section-index span {
  margin-left: 0.65rem;
  color: #8295a7;
}

.section-title {
  max-width: 18ch;
  color: #f2f5f8;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-transform: uppercase;
}

.section-intro-concepts .section-title {
  max-width: none;
  font-size: clamp(2.8rem, 5.6vw, 5.5rem);
}

.section-title-dot {
  color: var(--accent);
}

.text-emerald-400,
.text-blue-400,
.text-amber-400,
.text-amber-500,
.text-purple-400,
.text-purple-300 {
  color: var(--accent) !important;
}

.section-subtitle {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: #9da398;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

#projects .obermann-card {
  border: 1px solid rgba(155, 202, 240, 0.28);
  border-radius: 0.5rem;
  background: linear-gradient(125deg, rgba(155, 202, 240, 0.055), rgba(255, 255, 255, 0.012) 50%);
}

#projects .obermann-card > div:first-child {
  align-self: stretch;
}

#projects .obermann-card img {
  display: block;
  min-height: 18rem;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

#concepts .obermann-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background: rgba(15, 18, 16, 0.88);
}

#concepts .obermann-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

#concepts .obermann-card img {
  filter: saturate(0.68);
}

#concepts .obermann-card:hover img {
  filter: saturate(1);
}

#solucoes .obermann-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}

#solucoes .obermann-card:hover {
  border-color: rgba(155, 202, 240, 0.62);
}

#solucoes .obermann-card > div > span {
  color: var(--accent);
}

#solucoes .obermann-card h3 {
  font-size: 1.55rem;
}

#solucoes .grid.md\:grid-cols-3.gap-4.mt-10 > div {
  border-color: rgba(155, 202, 240, 0.24);
  background: rgba(155, 202, 240, 0.045);
}

#solucoes .grid.md\:grid-cols-3.gap-4.mt-10 h3 {
  color: var(--accent);
}

@media (max-width: 1023px) {
  .skynex-hero {
    min-height: unset;
  }

  .hero-visual {
    min-height: 25rem;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    flex-basis: 150px;
    width: 150px;
    height: 48px;
  }

  .brand-mark img {
    top: -32px;
    left: -20px;
    width: 184px;
  }

  .brand-mark-footer {
    flex-basis: 150px;
  }

  .skynex-hero {
    padding-top: 9rem;
  }

  .hero-title {
    max-width: 10ch;
    font-size: clamp(3.25rem, 15vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
  }

  .hero-visual {
    min-height: 22rem;
    margin: 0 -0.75rem;
  }

  .hero-orbit-outer {
    width: 23rem;
    height: 15rem;
  }

  .hero-orbit-inner {
    width: 18rem;
    height: 12rem;
  }

  .hero-window {
    width: min(88%, 22rem);
  }

  .hero-window-content {
    min-height: 13rem;
  }

  .hero-sticker {
    top: 3.4rem;
    right: 0.1rem;
    width: 5rem;
    height: 5rem;
    font-size: 0.57rem;
  }

  .hero-index {
    top: 2rem;
    left: 0.6rem;
  }

  .hero-crosshair {
    top: 1.5rem;
    right: 1rem;
  }

  .hero-visual-caption {
    bottom: 0;
    font-size: 0.45rem;
  }

  .hero-promises span {
    font-size: 0.62rem;
  }

  .section-intro {
    padding-left: 1rem;
  }

  .section-title {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .section-intro-concepts .section-title {
    font-size: clamp(2.5rem, 10.5vw, 4rem);
  }

  .section-subtitle {
    font-size: 0.85rem;
  }
}

@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;
  }
}
