/* ==========================================================================
   AXION COMPANY — Landing page
   ========================================================================== */

:root {
  --bg: #06070d;
  --bg-alt: #0b0d17;
  --surface: #10131f;
  --surface-2: #161a2b;
  --border: #232840;
  --text: #e8eaf2;
  --text-dim: #9aa1b8;
  --primary: #6c5cff;
  --primary-2: #35c8fa;
  --gradient: linear-gradient(135deg, #6c5cff 0%, #35c8fa 100%);
  --radius: 16px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Glows de fundo */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { width: 560px; height: 560px; background: #6c5cff; top: -180px; right: -120px; }
.bg-glow-2 { width: 480px; height: 480px; background: #1e7ae0; bottom: -160px; left: -140px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.brand-name b { font-weight: 700; }

.page-scroll-controls { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 8px; }
.page-scroll-controls button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: rgba(24, 32, 58, .92); backdrop-filter: blur(12px); cursor: pointer; font-size: 1.2rem; transition: transform .16s ease, border-color .16s ease, opacity .16s ease; }
.page-scroll-controls button:hover { transform: translateY(-2px); border-color: var(--primary-2); }
.page-scroll-controls button:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 9px 18px;
  background: var(--gradient);
  border-radius: 99px;
  color: #fff !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 170px 0 90px;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(108, 92, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 22px;
  background: linear-gradient(180deg, #ffffff 30%, #a9b2d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 30px rgba(108, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(108, 92, 255, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.btn-full { width: 100%; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { color: var(--text-dim); font-size: 0.85rem; }

/* ============ SEÇÕES ============ */
.section {
  position: relative;
  padding: 96px 0;
  z-index: 1;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-dim);
}

/* ============ SOBRE ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  font-size: 1.12rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.about-cards { display: flex; flex-direction: column; gap: 16px; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.about-card h3 { font-size: 1rem; margin-bottom: 6px; }
.about-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ SERVIÇOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ PROCESSO ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  opacity: 0.18;
  display: block;
  margin-bottom: 8px;
}

.process-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.process-step p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ ECOSSISTEMA ============ */
.eco-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.eco-item {
  padding: 12px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}

.eco-item:hover {
  border-color: rgba(53, 200, 250, 0.6);
  transform: translateY(-3px);
}

/* ============ PORTFÓLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.project-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #161a2b 0%, #1d2340 100%);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-body h3 { font-size: 1.05rem; }

.project-body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  flex: 1;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}

.project-btn:hover { border-color: var(--primary); }

.project-btn.primary {
  background: var(--gradient);
  border: none;
  color: #fff;
}
.project-btn.primary:hover { opacity: 0.9; }

/* Modal de vídeo */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* O atributo hidden precisa continuar vencendo o display do modal. */
.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.85);
  backdrop-filter: blur(6px);
}

.video-modal-content {
  position: relative;
  width: min(900px, 100%);
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.video-modal-player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-modal-player video,
.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============ CONTATO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 10px 0 16px;
}

.contact-info p { color: var(--text-dim); margin-bottom: 26px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { color: var(--text); font-size: 0.98rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

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

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 255, 0.18);
}

.form-status {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.form-status.ok { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer p { color: var(--text-dim); font-size: 0.92rem; }
.footer-copy { font-size: 0.8rem !important; opacity: 0.7; }

/* ============ RESPONSIVO ============ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 7, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 22px 0 26px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .contact-form { padding: 24px 20px; }
}
