/* ============================================
   CODEXX TELECOM — style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy:   #050d1a;
  --deep:   #0a1628;
  --card:   #0d1e35;
  --accent: #00d4ff;
  --accent2:#0066ff;
  --green:  #00e5a0;
  --text:   #c8d8e8;
  --white:  #f0f8ff;
  --border: rgba(0,212,255,0.12);
  --glow:   rgba(0,212,255,0.15);
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family:'Syne',sans-serif; color:var(--white); }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

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

/* ============================================
   NAV
   ============================================ */
nav {
  position:fixed; top:0; left:0; right:0;
  z-index:900;
  padding:0.8rem 5%;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(5,13,26,0.9);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:all 0.3s;
}

.nav-logo img {
  height:52px;
  width:auto;
  /* logo tem fundo branco, aplicamos mix-blend para integrar no dark bg */
  mix-blend-mode: screen;
  filter: brightness(1.1);
}

.nav-menu {
  display:flex; align-items:center; gap:2rem;
}

.nav-links {
  display:flex; gap:2rem; list-style:none;
}
.nav-links a {
  color:var(--text); font-size:0.9rem; font-weight:400;
  letter-spacing:0.02em; transition:color 0.2s;
}
.nav-links a:hover { color:var(--accent); }

.nav-cta {
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:var(--navy) !important;
  padding:0.55rem 1.4rem; border-radius:50px;
  font-weight:600 !important;
  transition:opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity:0.9; transform:translateY(-1px); }

.hamburger {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; background:none; border:none; padding:4px;
}
.hamburger span {
  display:block; width:24px; height:2px;
  background:var(--accent); border-radius:2px; transition:all 0.3s;
}

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

.hero-grid-bg {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size:60px 60px;
  animation:gridMove 20s linear infinite;
}
@keyframes gridMove {
  0%   { background-position:0 0; }
  100% { background-position:60px 60px; }
}

.hero-glow {
  position:absolute; width:600px; height:600px; border-radius:50%;
  background:radial-gradient(circle, rgba(0,102,255,0.2) 0%, transparent 70%);
  top:-100px; right:-100px; animation:pulse 6s ease-in-out infinite;
}
.hero-glow2 {
  position:absolute; width:400px; height:400px; border-radius:50%;
  background:radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  bottom:-50px; left:10%; animation:pulse 8s ease-in-out infinite 2s;
}
@keyframes pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.1); opacity:0.7; }
}

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

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(0,212,255,0.08); border:1px solid rgba(0,212,255,0.25);
  border-radius:50px; padding:0.4rem 1rem; font-size:0.8rem;
  color:var(--accent); font-weight:500; letter-spacing:0.05em;
  text-transform:uppercase; margin-bottom:1.5rem;
  animation:fadeUp 0.8s ease both;
}
.hero-badge::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background:var(--accent); animation:blink 1.5s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size:clamp(2.5rem, 5vw, 4.2rem); font-weight:800;
  line-height:1.05; letter-spacing:-0.03em; margin-bottom:1.5rem;
  animation:fadeUp 0.8s 0.15s ease both;
}
.hero-title em {
  font-style:normal;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-desc {
  font-size:1.05rem; line-height:1.7; color:var(--text);
  max-width:520px; margin-bottom:2.5rem;
  animation:fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display:flex; gap:1rem; flex-wrap:wrap;
  animation:fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:var(--navy); padding:0.9rem 2rem; border-radius:50px;
  font-family:'Syne',sans-serif; font-weight:700; font-size:0.95rem;
  display:inline-flex; align-items:center; gap:8px;
  transition:all 0.3s; box-shadow:0 0 30px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 0 50px rgba(0,212,255,0.5); }

.btn-secondary {
  background:transparent; color:var(--white); padding:0.9rem 2rem;
  border-radius:50px; border:1px solid rgba(255,255,255,0.2);
  font-family:'Syne',sans-serif; font-weight:600; font-size:0.95rem;
  display:inline-flex; align-items:center; gap:8px; transition:all 0.3s;
}
.btn-secondary:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

.hero-stats {
  display:flex; gap:2rem; margin-top:3rem; flex-wrap:wrap;
  animation:fadeUp 0.8s 0.6s ease both;
}
.stat { display:flex; flex-direction:column; }
.stat-num {
  font-family:'Syne',sans-serif; font-size:2rem;
  font-weight:800; color:var(--white); line-height:1;
}
.stat-num span { color:var(--accent); }
.stat-label {
  font-size:0.75rem; color:rgba(200,216,232,0.6);
  text-transform:uppercase; letter-spacing:0.05em; margin-top:4px;
}

/* Phone mockup */
.hero-phone {
  position:absolute; right:5%; top:50%; transform:translateY(-50%);
  z-index:2; animation:float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform:translateY(-50%) translateY(0); }
  50%      { transform:translateY(-50%) translateY(-20px); }
}

.phone-mockup {
  width:280px; height:480px;
  background:linear-gradient(160deg, #1a2a45, #0d1e35);
  border-radius:36px; border:1px solid rgba(0,212,255,0.2);
  box-shadow:0 0 60px rgba(0,102,255,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:center;
  padding:30px 20px 20px;
}
.phone-mockup::before {
  content:''; position:absolute; top:0; left:50%;
  transform:translateX(-50%); width:100px; height:26px;
  background:var(--navy); border-radius:0 0 18px 18px;
}

.phone-screen-label {
  font-size:0.65rem; color:rgba(200,216,232,0.4);
  text-transform:uppercase; letter-spacing:0.1em;
  margin-top:10px; margin-bottom:16px;
}

.phone-ui { width:100%; flex:1; display:flex; flex-direction:column; gap:10px; }

.phone-call-card {
  background:rgba(0,212,255,0.06); border:1px solid rgba(0,212,255,0.15);
  border-radius:14px; padding:12px;
  display:flex; align-items:center; gap:10px;
}
.phone-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  display:flex; align-items:center; justify-content:center;
  font-size:0.8rem; font-weight:700; color:var(--navy);
  font-family:'Syne',sans-serif; flex-shrink:0;
}
.phone-call-info { flex:1; min-width:0; }
.phone-call-name { font-size:0.8rem; color:var(--white); font-weight:600; }
.phone-call-status { font-size:0.68rem; color:var(--green); margin-top:2px; }
.phone-duration { font-size:0.72rem; color:var(--text); font-variant-numeric:tabular-nums; }

.phone-wave {
  width:100%; height:40px;
  display:flex; align-items:center; justify-content:center;
  gap:3px; margin:8px 0;
}
.wave-bar {
  width:3px; border-radius:3px;
  background:linear-gradient(to top, var(--accent2), var(--accent));
  animation:waveAnim 1.2s ease infinite;
}
.wave-bar:nth-child(1) { height:10px; animation-delay:0s; }
.wave-bar:nth-child(2) { height:20px; animation-delay:0.1s; }
.wave-bar:nth-child(3) { height:30px; animation-delay:0.2s; }
.wave-bar:nth-child(4) { height:24px; animation-delay:0.3s; }
.wave-bar:nth-child(5) { height:16px; animation-delay:0.4s; }
.wave-bar:nth-child(6) { height:28px; animation-delay:0.5s; }
.wave-bar:nth-child(7) { height:20px; animation-delay:0.6s; }
.wave-bar:nth-child(8) { height:12px; animation-delay:0.7s; }
.wave-bar:nth-child(9) { height:22px; animation-delay:0.8s; }
.wave-bar:nth-child(10){ height:8px;  animation-delay:0.9s; }
@keyframes waveAnim {
  0%,100% { transform:scaleY(1); }
  50%      { transform:scaleY(0.4); }
}

.phone-mini-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.mini-stat {
  background:rgba(0,102,255,0.1); border:1px solid rgba(0,102,255,0.2);
  border-radius:10px; padding:10px; text-align:center;
}
.mini-stat-num { font-family:'Syne',sans-serif; font-size:1rem; font-weight:700; color:var(--white); }
.mini-stat-label {
  font-size:0.6rem; color:rgba(200,216,232,0.5);
  text-transform:uppercase; letter-spacing:0.05em; margin-top:2px;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section { padding:100px 5%; }

.section-label {
  font-size:0.75rem; text-transform:uppercase; letter-spacing:0.15em;
  color:var(--accent); font-weight:600; margin-bottom:0.75rem;
  display:flex; align-items:center; gap:8px;
}
.section-label::before {
  content:''; display:block; width:24px; height:2px;
  background:var(--accent); border-radius:2px;
}
.section-label.center { justify-content:center; }
.section-label.center::before { display:none; }

.section-title {
  font-size:clamp(1.8rem, 3.5vw, 3rem); font-weight:800;
  letter-spacing:-0.02em; line-height:1.1; margin-bottom:1rem;
}
.section-subtitle { font-size:1rem; color:var(--text); max-width:560px; line-height:1.7; }
.text-center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }

/* ============================================
   BENEFÍCIOS
   ============================================ */
#beneficios {
  background:var(--deep); position:relative;
}
#beneficios::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 80% 50%, rgba(0,102,255,0.08) 0%, transparent 60%);
}

.benefits-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:1.5rem; margin-top:3rem; position:relative; z-index:1;
}

.benefit-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:20px; padding:2rem; transition:all 0.3s;
  position:relative; overflow:hidden;
}
.benefit-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:0; transition:opacity 0.3s;
}
.benefit-card:hover { transform:translateY(-6px); border-color:rgba(0,212,255,0.3); box-shadow:0 20px 60px rgba(0,0,0,0.3),0 0 30px rgba(0,212,255,0.08); }
.benefit-card:hover::before { opacity:1; }

.benefit-icon {
  width:52px; height:52px; border-radius:14px;
  background:linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,212,255,0.1));
  border:1px solid rgba(0,212,255,0.2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; margin-bottom:1.25rem;
}
.benefit-title { font-size:1.1rem; font-weight:700; margin-bottom:0.75rem; }
.benefit-desc { font-size:0.9rem; line-height:1.65; color:rgba(200,216,232,0.75); }

/* ============================================
   FUNCIONALIDADES
   ============================================ */
.features-header { text-align:center; max-width:600px; margin:0 auto 3.5rem; }

.features-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:1rem;
}

.feature-chip {
  background:var(--card); border:1px solid var(--border);
  border-radius:12px; padding:1rem 1.25rem;
  display:flex; align-items:center; gap:10px;
  transition:all 0.25s; font-size:0.88rem; color:var(--text);
}
.feature-chip:hover {
  border-color:rgba(0,212,255,0.4); color:var(--white);
  background:rgba(0,212,255,0.05); transform:translateX(4px);
}
.feature-chip-dot {
  width:8px; height:8px; border-radius:50%;
  background:var(--accent); flex-shrink:0; box-shadow:0 0 8px var(--accent);
}

/* ============================================
   COMO FUNCIONA
   ============================================ */
#como-funciona { background:var(--deep); }

.steps-container {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:2rem; margin-top:3rem;
}

.step { text-align:center; padding:2rem 1.5rem; }
.step-num {
  font-family:'Syne',sans-serif; font-size:3.5rem; font-weight:800;
  color:rgba(0,212,255,0.1); line-height:1; margin-bottom:0.5rem;
}
.step-icon { font-size:2rem; margin-bottom:1rem; }
.step-title { font-size:1rem; font-weight:700; margin-bottom:0.6rem; }
.step-desc { font-size:0.85rem; line-height:1.6; color:rgba(200,216,232,0.65); }

.requirements-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:1.5rem; margin-top:3rem;
}
.req-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:16px; padding:1.75rem;
  display:flex; gap:1rem; align-items:flex-start; transition:all 0.3s;
}
.req-card:hover { border-color:rgba(0,212,255,0.3); transform:translateY(-4px); }
.req-icon { font-size:1.6rem; flex-shrink:0; margin-top:2px; }
.req-title { font-size:0.95rem; font-weight:700; margin-bottom:0.4rem; }
.req-desc { font-size:0.83rem; color:rgba(200,216,232,0.65); line-height:1.55; }

/* ============================================
   DEPOIMENTOS
   ============================================ */
#depoimentos { background:var(--deep); text-align:center; }

.testimonials-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:1.5rem; margin-top:3rem; text-align:left;
}

.testimonial-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:20px; padding:2rem; position:relative; transition:all 0.3s;
}
.testimonial-card:hover { border-color:rgba(0,212,255,0.25); transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,0.25); }
.testimonial-quote { font-size:2.5rem; color:var(--accent); opacity:0.3; font-family:'Syne',sans-serif; font-weight:800; line-height:1; margin-bottom:0.5rem; }
.testimonial-text { font-size:0.92rem; line-height:1.7; color:var(--text); margin-bottom:1.5rem; font-style:italic; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.testimonial-avatar {
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  display:flex; align-items:center; justify-content:center;
  font-family:'Syne',sans-serif; font-weight:800; font-size:0.9rem;
  color:var(--navy); flex-shrink:0;
}
.testimonial-name { font-weight:600; font-size:0.9rem; color:var(--white); }
.testimonial-role { font-size:0.78rem; color:rgba(200,216,232,0.5); margin-top:2px; }

/* ============================================
   CTA / CONTATO
   ============================================ */
#contato { position:relative; overflow:hidden; }

.cta-wrapper {
  background:linear-gradient(135deg, var(--card) 0%, rgba(0,102,255,0.15) 100%);
  border:1px solid rgba(0,212,255,0.2); border-radius:28px;
  padding:4rem; position:relative; overflow:hidden;
}
.cta-wrapper::before {
  content:''; position:absolute; top:-50%; right:-10%;
  width:500px; height:500px;
  background:radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 65%);
  pointer-events:none;
}

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

.cta-perks { margin-top:2rem; display:flex; flex-direction:column; gap:0.75rem; }
.cta-perk { display:flex; align-items:center; gap:10px; font-size:0.9rem; color:var(--text); }
.perk-check {
  width:20px; height:20px; border-radius:50%;
  background:rgba(0,229,160,0.15); border:1px solid rgba(0,229,160,0.4);
  display:flex; align-items:center; justify-content:center;
  font-size:0.65rem; color:var(--green); flex-shrink:0;
}

.cta-contact-info { margin-top:2.5rem; display:flex; flex-direction:column; gap:0.65rem; }
.contact-item { display:flex; align-items:center; gap:10px; font-size:0.88rem; color:var(--text); }
.contact-icon {
  width:32px; height:32px; border-radius:8px;
  background:rgba(0,212,255,0.08); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; flex-shrink:0;
}

/* ---- FORM ---- */
.contact-form { display:flex; flex-direction:column; gap:1rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group { display:flex; flex-direction:column; gap:0.4rem; }

label {
  font-size:0.8rem; color:rgba(200,216,232,0.6);
  text-transform:uppercase; letter-spacing:0.05em; font-weight:500;
}

input, textarea, select {
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1);
  border-radius:12px; padding:0.85rem 1rem; color:var(--white);
  font-family:'DM Sans',sans-serif; font-size:0.92rem;
  transition:all 0.25s; outline:none; width:100%;
}
input::placeholder, textarea::placeholder { color:rgba(200,216,232,0.3); }
input:focus, textarea:focus {
  border-color:var(--accent); background:rgba(0,212,255,0.04);
  box-shadow:0 0 0 3px rgba(0,212,255,0.1);
}
textarea { resize:vertical; min-height:100px; }

.form-submit {
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:var(--navy); padding:1rem 2rem; border-radius:12px; border:none;
  font-family:'Syne',sans-serif; font-weight:700; font-size:1rem;
  cursor:pointer; transition:all 0.3s;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 4px 20px rgba(0,212,255,0.25);
}
.form-submit:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(0,212,255,0.4); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background:var(--navy); border-top:1px solid var(--border);
  padding:3rem 5%; text-align:center;
}

.footer-logo img {
  height:48px; width:auto;
  mix-blend-mode:screen; filter:brightness(1.15);
  margin:0 auto 1.25rem;
}

.footer-links {
  display:flex; justify-content:center; gap:2rem; list-style:none;
  margin-bottom:1.5rem; flex-wrap:wrap;
}
.footer-links a {
  color:rgba(200,216,232,0.5); font-size:0.85rem; transition:color 0.2s;
}
.footer-links a:hover { color:var(--accent); }
.footer-copy { font-size:0.78rem; color:rgba(200,216,232,0.3); line-height:1.6; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:1100px) {
  .hero-phone { display:none; }
  .hero-content { max-width:100%; }
}

@media(max-width:768px) {
  nav { padding:1rem 5%; }

  .nav-menu {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background:rgba(5,13,26,0.98);
    flex-direction:column; justify-content:center; gap:2rem;
    transform:translateX(100%);
    transition:transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index:800;
  }
  .nav-menu.open { transform:translateX(0); }
  .nav-links { flex-direction:column; align-items:center; gap:1.5rem; }
  .nav-links a { font-size:1.2rem; }
  .hamburger { display:flex; z-index:900; position:relative; }

  #hero { padding:100px 5% 60px; }
  .hero-title { font-size:2.2rem; }
  .hero-stats { gap:1.5rem; }
  section { padding:70px 5%; }
  .cta-grid { grid-template-columns:1fr; gap:2.5rem; }
  .cta-wrapper { padding:2rem; }
  .form-row { grid-template-columns:1fr; }
}

@media(max-width:480px) {
  .hero-actions { flex-direction:column; }
  .btn-primary, .btn-secondary { width:100%; justify-content:center; }
}

/* ---- SPINNER (botão de envio) ---- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5,13,26,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
