/* ─────────────────────────────────────────────────────────────
   Thux Tech — Folha de estilos principal
   ───────────────────────────────────────────────────────────── */

/* ── VARIÁVEIS ── */
:root {
  --black:   #080808;
  --dark:    #111111;
  --darker:  #0d0d0d;
  --gray:    #b8b8b8;
  --silver:  #d0d0d0;
  --purple:  #8a35c8;
  --green:   #28b856;
  --orange:  #e84d1c;
  --border:  rgba(180,180,180,0.12);
  --glow-p:  rgba(138,53,200,0.25);
  --glow-g:  rgba(40,184,86,0.25);
  --glow-o:  rgba(232,77,28,0.25);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--gray);
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEX PATTERN BACKGROUND ── */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpolygon points='40,2 78,22 78,70 40,90 2,70 2,22' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 92px;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { width: 38px; height: 38px; }

.nav-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--silver);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--silver); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange) !important;
  padding: 6px 18px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover { background: var(--orange); color: var(--black) !important; }
.nav-cta::after { display: none !important; }

/* ── HERO ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--glow-p);
  top: -100px; right: -100px;
  animation: pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--glow-g);
  bottom: -50px; left: 30%;
  animation: pulse 8s ease-in-out infinite reverse;
}

.hero-glow-3 {
  width: 300px; height: 300px;
  background: var(--glow-o);
  top: 40%; left: -50px;
  animation: pulse 7s ease-in-out infinite 2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-content { max-width: 680px; position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(40,184,86,0.35);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--silver);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(184,184,184,0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BOTÕES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #ff5a28;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,77,28,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--silver);
  color: #fff;
  transform: translateY(-2px);
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--silver);
  line-height: 1;
}

.stat-num .accent-o { color: var(--orange); }
.stat-num .accent-g { color: var(--green); }
.stat-num .accent-p { color: var(--purple); }

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.5);
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }

.section-inner { padding: 100px 5%; }

.section-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--silver);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: rgba(184,184,184,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ── SERVICES ── */
#servicos { background: var(--darker); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--border);
}

.service-card {
  background: var(--dark);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: rgba(255,255,255,0.025); }

.service-card.ac-o { --card-accent: var(--orange); }
.service-card.ac-g { --card-accent: var(--green); }
.service-card.ac-p { --card-accent: var(--purple); }
.service-card.ac-s { --card-accent: var(--silver); }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(184,184,184,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 0.55;
}

.tag-o { color: var(--orange); }
.tag-g { color: var(--green); }
.tag-p { color: var(--purple); }
.tag-s { color: var(--silver); }

/* ── DESTAQUE ÂNCORA ── */
.anchor-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
  border: 1.5px solid var(--border);
  border-bottom: none;
}

.anchor-card {
  background: var(--dark);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.anchor-card.main {
  grid-column: 1;
  background: linear-gradient(135deg, #0f0f0f 60%, rgba(232,77,28,0.06));
  border-right: 1.5px solid var(--border);
}

.anchor-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 1px;
  margin-bottom: 1.5rem;
}

.anchor-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--silver);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.anchor-card p {
  font-size: 0.92rem;
  color: rgba(184,184,184,0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(184,184,184,0.7);
}

.check-list li::before {
  content: '▸';
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── SOBRE ── */
#sobre { background: var(--black); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sobre-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-cluster {
  position: relative;
  width: 280px;
  height: 280px;
}

.hex-ring {
  position: absolute;
  border: 1.5px solid var(--ring-color, var(--border));
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotate-hex var(--dur, 20s) linear infinite var(--dir, normal);
}

.hex-ring-1 {
  inset: 0;
  --ring-color: rgba(138,53,200,0.4);
  --dur: 25s;
}

.hex-ring-2 {
  inset: 20px;
  --ring-color: rgba(40,184,86,0.35);
  --dur: 18s;
  --dir: reverse;
}

.hex-ring-3 {
  inset: 50px;
  --ring-color: rgba(232,77,28,0.4);
  --dur: 30s;
}

@keyframes rotate-hex {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hex-center {
  position: absolute;
  inset: 90px;
  background: var(--dark);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.1em;
  flex-direction: column;
  gap: 4px;
}

.sobre-text .values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}

.value-item {
  padding: 1.25rem 1.5rem;
  background: var(--dark);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-item:nth-child(2n) { border-right: none; }
.value-item:nth-last-child(-n+2) { border-bottom: none; }

.value-item strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--silver);
  margin-bottom: 4px;
}

.value-item span {
  font-size: 0.82rem;
  color: rgba(184,184,184,0.5);
}

/* ── CONTATO ── */
#contato { background: var(--darker); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contato-channels {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}

.channel:last-child { border-bottom: none; }
.channel:hover { background: rgba(255,255,255,0.03); }

.channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.channel-dot.o { background: var(--orange); }
.channel-dot.g { background: var(--green); }
.channel-dot.p { background: var(--purple); }

.channel-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.4);
  display: block;
}

.channel-val {
  font-size: 0.95rem;
  color: var(--silver);
}

/* ── FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(184,184,184,0.45);
}

.field input,
.field select,
.field textarea {
  background: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--silver);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.field select option { background: var(--dark); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(184,184,184,0.25);
}

.field textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(184,184,184,0.3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(184,184,184,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--silver); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sobre-grid,
  .contato-grid,
  .anchor-block { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .sobre-visual { display: none; }
  .nav-links { display: none; }
}
