/* =========================================================
   Sector3 — Identidade Visual (Dark Tech Premium)
   Paleta, tipografia e regras conforme Manual v1.0
   ========================================================= */

:root {
  /* Paleta cromática oficial */
  --s3-black: #05070A;
  --s3-navy: #021529;
  --s3-deep-blue: #001B36;
  --s3-blue: #1450FF;
  --s3-violet: #5B18FF;
  --s3-cyan: #00C2FF;
  --s3-ice: #F7F9FC;
  --s3-gray: #A4A8AF;
  --s3-steel: #7E8794;

  /* Superfícies */
  --surface: #07111F;          /* cards (conforme manual) */
  --surface-2: #0a1626;
  --border: rgba(20, 80, 255, 0.25);
  --border-soft: rgba(164, 168, 175, 0.12);

  /* Gradientes oficiais */
  --grad-main: linear-gradient(135deg, #021529 0%, #1450FF 55%, #5B18FF 100%);
  --grad-ai: linear-gradient(135deg, #1450FF 0%, #5B18FF 100%);
  --grad-dark: linear-gradient(135deg, #05070A 0%, #021529 55%, #001B36 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-title: "Rajdhani", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-detail: "Orbitron", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--s3-black);
  color: var(--s3-ice);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-detail);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s3-cyan);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lead { color: var(--s3-gray); font-size: 1.05rem; max-width: 60ch; margin-top: 1rem; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .section-lead { margin-inline: auto; }

/* =========================================================
   BACKGROUND DECOR
   ========================================================= */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--grad-dark); }

.grid-overlay {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(20, 80, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 80, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.glow--blue { width: 520px; height: 520px; background: var(--s3-blue); top: -160px; left: -120px; }
.glow--violet { width: 460px; height: 460px; background: var(--s3-violet); top: 30%; right: -160px; opacity: 0.35; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 7, 10, 0.85);
  border-bottom-color: var(--border-soft);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { height: 40px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-size: 0.92rem; font-weight: 500; color: var(--s3-ice);
  padding: 0.5rem 0.85rem; border-radius: 10px;
  position: relative; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(20, 80, 255, 0.1); }
.nav__link.is-active { color: var(--s3-cyan); }

.nav__link--cta {
  background: var(--grad-ai); color: #fff; font-weight: 600;
  margin-left: 0.4rem; box-shadow: 0 8px 24px -10px rgba(91, 24, 255, 0.8);
}
.nav__link--cta:hover { background: var(--grad-ai); filter: brightness(1.1); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--s3-ice); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 12px; cursor: pointer; border: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn--primary { background: var(--grad-ai); color: #fff; box-shadow: 0 14px 34px -14px rgba(91, 24, 255, 0.9); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--s3-ice); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--s3-blue); background: rgba(20, 80, 255, 0.1); }
.btn--block { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 500; color: var(--s3-ice);
  background: rgba(20, 80, 255, 0.08); border: 1px solid var(--border);
  padding: 0.45rem 0.95rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s3-cyan); box-shadow: 0 0 10px var(--s3-cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero__title .grad-text { display: block; }
.hero__subtitle { color: var(--s3-gray); font-size: 1.12rem; margin: 1.4rem 0 2.2rem; max-width: 54ch; }

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

.hero__stack { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border-soft); }
.hero__stack li { font-family: var(--font-detail); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--s3-gray); position: relative; padding-left: 1rem; }
.hero__stack li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--s3-blue); }

/* Hero visual */
.hero__visual { display: grid; place-items: center; }
.hero__orbit { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero__ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.hero__ring--1 { inset: 4%; border-style: dashed; animation: spin 38s linear infinite; }
.hero__ring--2 { inset: 20%; border-color: rgba(91, 24, 255, 0.3); animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__icon-wrap {
  width: 52%; aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(20,80,255,0.18), transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.hero__icon { width: 78%; filter: drop-shadow(0 18px 40px rgba(91, 24, 255, 0.55)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--s3-cyan); box-shadow: 0 0 14px var(--s3-cyan); }
.node--1 { top: 8%; left: 50%; background: var(--s3-blue); box-shadow: 0 0 14px var(--s3-blue); }
.node--2 { bottom: 14%; left: 14%; background: var(--s3-violet); box-shadow: 0 0 14px var(--s3-violet); }
.node--3 { top: 46%; right: 6%; }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 1rem 0 4rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center;
}
.stat__num { font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; display: block; }
.stat__label { color: var(--s3-gray); font-size: 0.85rem; margin-top: 0.4rem; display: block; }

/* =========================================================
   SECTION SPACING
   ========================================================= */
.pillars, .services, .feature, .process, .about, .contact { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* =========================================================
   PILLARS
   ========================================================= */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem 1.9rem; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-main); opacity: 0; transition: opacity 0.3s var(--ease); z-index: -1;
}
.pillar-card:hover { transform: translateY(-6px); border-color: var(--s3-blue); box-shadow: 0 30px 60px -30px rgba(20, 80, 255, 0.5); }
.pillar-card__num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-detail); font-size: 0.85rem; color: var(--s3-gray); opacity: 0.5; }
.pillar-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem; background: rgba(20,80,255,0.1); }
.pillar-card__icon svg { width: 28px; height: 28px; }
.icon-blue { color: var(--s3-blue); }
.icon-violet { color: var(--s3-violet); background: rgba(91,24,255,0.1); }
.icon-cyan { color: var(--s3-cyan); background: rgba(0,194,255,0.1); }
.pillar-card h3 { font-family: var(--font-detail); font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.pillar-card p { color: var(--s3-gray); font-size: 0.96rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.service-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.9rem; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--border); background: var(--surface-2); }
.service-card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 1.3rem; color: var(--s3-cyan);
  background: linear-gradient(135deg, rgba(20,80,255,0.16), rgba(91,24,255,0.16));
  border: 1px solid var(--border);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--s3-gray); font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-card__tag {
  font-family: var(--font-detail); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--s3-blue); padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 999px;
}

/* =========================================================
   FEATURE (IA & Automação)
   ========================================================= */
.feature__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }

.feature__panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: 0 40px 80px -40px rgba(20, 80, 255, 0.55);
}
.panel-bar { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; }
.panel-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.panel-bar span:first-child { background: var(--s3-violet); }
.panel-bar span:nth-child(2) { background: var(--s3-blue); }
.panel-bar span:nth-child(3) { background: var(--s3-cyan); }
.panel-line {
  display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-body); font-size: 0.9rem;
  color: var(--s3-ice); padding: 0.7rem 0.9rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft); border-radius: 10px; margin-bottom: 0.6rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--violet { background: var(--s3-violet); box-shadow: 0 0 10px var(--s3-violet); }
.dot--blue { background: var(--s3-blue); box-shadow: 0 0 10px var(--s3-blue); }
.dot--cyan { background: var(--s3-cyan); box-shadow: 0 0 10px var(--s3-cyan); }
.panel-bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 90px; margin-top: 1.1rem; padding: 0 0.3rem; }
.panel-bars span { flex: 1; height: var(--h); background: var(--grad-ai); border-radius: 6px 6px 0 0; opacity: 0.85; animation: rise 1.4s var(--ease) both; }
@keyframes rise { from { height: 0; } }

.feature__list { margin: 1.6rem 0 2rem; display: grid; gap: 0.85rem; }
.feature__list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--s3-ice); font-size: 0.98rem; }
.feature__list svg { width: 20px; height: 20px; color: var(--s3-cyan); flex: none; margin-top: 2px; }

/* =========================================================
   PROCESS
   ========================================================= */
.process__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 2rem 1.6rem; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--border); transform: translateY(-4px); }
.step__index { font-family: var(--font-detail); font-size: 1.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--s3-blue); display: block; margin-bottom: 0.9rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--s3-gray); font-size: 0.92rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.about__content p { color: var(--s3-gray); margin-top: 1.1rem; max-width: 60ch; }
.about__content strong { color: var(--s3-ice); }
.about__attrs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.about__attrs li {
  font-size: 0.8rem; font-weight: 500; color: var(--s3-ice);
  background: rgba(20,80,255,0.08); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}

.quote-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; position: relative; overflow: hidden;
}
.quote-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; background: var(--grad-ai); filter: blur(80px); opacity: 0.3; }
.quote-card__mark { font-family: var(--font-title); font-size: 4rem; line-height: 0.6; color: var(--s3-blue); }
.quote-card p { font-family: var(--font-title); font-size: 1.4rem; font-weight: 600; margin: 0.6rem 0 1.6rem; }
.quote-card__sign { display: flex; align-items: center; gap: 0.9rem; }
.quote-card__sign img { width: 40px; height: 40px; }
.quote-card__sign strong { display: block; }
.quote-card__sign span { font-size: 0.82rem; color: var(--s3-gray); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__channels { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__channels li { display: flex; align-items: center; gap: 0.8rem; color: var(--s3-ice); }
.contact__channels svg { width: 22px; height: 22px; color: var(--s3-cyan); }

.contact__form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--s3-gray); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--s3-ice);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 0.8rem 1rem; resize: vertical; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(164,168,175,0.5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--s3-blue); background: rgba(20,80,255,0.06); }
.form-status { font-size: 0.88rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--s3-cyan); }
.form-status.is-error { color: #ff6b6b; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: 3.5rem; background: rgba(5,7,10,0.6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 28px; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--s3-gray); font-size: 0.9rem; }
.footer__col h4 { font-family: var(--font-detail); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s3-ice); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--s3-gray); font-size: 0.92rem; padding: 0.3rem 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--s3-cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding: 1.5rem 0; border-top: 1px solid var(--border-soft); color: var(--s3-gray); font-size: 0.85rem; }
.footer__tag { font-family: var(--font-detail); letter-spacing: 0.12em; color: var(--s3-blue); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__orbit { width: min(320px, 70vw); }
  .feature__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid, .services__grid, .process__track { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: rgba(5, 7, 10, 0.97); backdrop-filter: blur(14px);
    padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%); transition: transform 0.35s var(--ease); visibility: hidden;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__link { padding: 0.9rem 1rem; }
  .nav__link--cta { margin: 0.5rem 0 0; text-align: center; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .stats__grid, .pillars__grid, .services__grid, .process__track, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
