/* Additional styles for CODYTE landing page */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.nav.scrolled {
  padding: 14px 40px;
  background: rgba(5,5,5,0.92);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  color: var(--electric);
}

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

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--white);
  color: var(--black);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--electric);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(10,132,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.04) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(10,132,255,0.08);
  border: 1px solid rgba(10,132,255,0.15);
  font-size: 0.8rem;
  color: var(--electric);
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 8px var(--electric);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.hero h1 {
  margin-top: 0;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--white) 0%, var(--electric) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--silver);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--electric);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(10,132,255,0.2);
}

.btn-secondary {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-hover);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.03);
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 800px;
  z-index: 0;
  opacity: 0.9;
  animation: fadeIn 1.2s ease-out 0.5s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dashboard-mockup {
  background: var(--graphite);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8),
              0 0 60px rgba(10,132,255,0.05);
}

.dashboard-header {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.r { background: #ff5f57; }
.dash-dot.y { background: #febc2e; }
.dash-dot.g { background: #28c840; }

.dashboard-body { padding: 24px; }

.dash-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-card {
  flex: 1;
  background: var(--graphite-light);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.dash-card h4 {
  font-size: 0.7rem;
  color: var(--silver-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin: 0;
}

.dash-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.dash-card .change {
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 4px;
  margin-bottom: 0;
}

.dash-chart {
  height: 120px;
  background: linear-gradient(180deg, rgba(10,132,255,0.1) 0%, transparent 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.dash-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(90deg, transparent 0%, rgba(10,132,255,0.3) 30%, rgba(10,132,255,0.5) 60%, transparent 100%);
  filter: blur(20px);
}

section {
  padding: 120px 40px;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  margin-top: 0;
}

.section-header p {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,132,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--graphite-lighter);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.6;
  margin: 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.industry-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
}

.industry-card:hover {
  background: var(--graphite-light);
  border-color: var(--electric);
  transform: translateY(-2px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.demo-section { background: var(--graphite); }

.demo-container { max-width: 900px; margin: 0 auto; }

.phone-mockup {
  background: var(--black);
  border-radius: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(10,132,255,0.05);
  max-width: 420px;
  margin: 0 auto;
}

.phone-header {
  padding: 16px 20px;
  background: var(--graphite-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), #5e5ce6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.phone-info h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
.phone-info p { font-size: 0.75rem; color: var(--success); margin: 0; }

.chat-area { padding: 20px; height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.chat-bubble.user { align-self: flex-end; background: var(--electric); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.bot { align-self: flex-start; background: var(--graphite-lighter); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.typing { display: flex; gap: 4px; align-items: center; padding: 16px 20px; }

.typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; background: var(--graphite-light); }
.chat-input { flex: 1; background: var(--graphite); border: 1px solid var(--border); border-radius: 20px; padding: 10px 16px; color: var(--white); font-size: 0.9rem; outline: none; font-family: inherit; }
.chat-input:focus { border-color: var(--electric); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--electric); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.chat-send:hover { background: #0066cc; transform: scale(1.05); }

.demo-presets { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.preset-btn { padding: 8px 16px; border-radius: 100px; font-size: 0.8rem; background: var(--graphite-light); border: 1px solid var(--border); color: var(--silver); cursor: pointer; transition: all 0.3s; }
.preset-btn:hover { border-color: var(--electric); color: var(--white); }

.fab-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 1001; background: #25D366; color: #041b0f; font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35); border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; }
.fab-whatsapp:hover { transform: translateY(-2px); }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.benefit-item { text-align: center; padding: 40px 20px; }
.benefit-metric { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, var(--white), var(--electric)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.benefit-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; margin-top: 0; }
.benefit-item p { color: var(--silver); font-size: 0.9rem; margin: 0; }

.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; position: relative; }
.step-card { background: var(--graphite); border: 1px solid var(--border); border-radius: 20px; padding: 48px 32px; text-align: center; transition: all 0.4s; position: relative; }
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--graphite-lighter); border: 2px solid var(--electric); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: var(--electric); margin: 0 auto 24px; }
.step-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; margin-top: 0; }
.step-card p { color: var(--silver); font-size: 0.9rem; margin: 0; }
.steps-connector { position: absolute; top: 80px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--electric), var(--gold), var(--electric)); opacity: 0.2; z-index: 0; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--graphite); border: 1px solid var(--border); border-radius: 20px; padding: 40px; transition: all 0.4s; }
.testimonial-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.testimonial-quote { font-size: 1.15rem; font-weight: 500; line-height: 1.7; margin-bottom: 24px; color: var(--white); margin-top: 0; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--graphite-lighter), var(--graphite)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--silver); flex-shrink: 0; }
.author-info h4 { font-size: 0.95rem; font-weight: 600; margin: 0; }
.author-info p { font-size: 0.8rem; color: var(--silver-dim); margin: 0; }
.testimonial-metric { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--success); font-weight: 600; }

.cta-section { background: var(--graphite); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,132,255,0.06) 0%, transparent 60%); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 20px; margin-top: 0; }
.cta-section p { color: var(--silver); font-size: 1.1rem; margin-bottom: 40px; }

footer { background: var(--black); border-top: 1px solid var(--border); padding: 80px 40px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; margin-bottom: 60px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-brand .logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--silver); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--silver-dim); margin-bottom: 20px; margin-top: 0; }
.footer-col a { display: block; color: var(--silver); text-decoration: none; font-size: 0.9rem; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-bottom p { color: var(--silver-dim); font-size: 0.85rem; margin: 0; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--silver); font-size: 1.2rem; transition: color 0.3s; text-decoration: none; }
.footer-social a:hover { color: var(--white); }

.lab-section { display: none; padding: 120px 40px; background: var(--graphite); }
.lab-section.active { display: block; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.lab-card { background: var(--black); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.lab-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--electric); margin-top: 0; }
.lab-metric { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; margin-top: 0; }
.lab-chart-bar { height: 8px; background: var(--graphite-lighter); border-radius: 4px; overflow: hidden; margin-top: 16px; }
.lab-chart-fill { height: 100%; background: linear-gradient(90deg, var(--electric), var(--success)); border-radius: 4px; transition: width 1s ease; }

.lab-toggle { position: fixed; bottom: 30px; right: 30px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: var(--graphite-lighter); border: 1px solid var(--border); color: var(--electric); font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lab-toggle:hover { background: var(--electric); color: #fff; transform: scale(1.1); }
.lab-toggle.active { background: var(--electric); color: #fff; }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-visual { position: relative; width: 100%; transform: none; margin-top: 60px; }
  .hero { flex-direction: column; text-align: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  section { padding: 80px 20px; }
  .hero { padding: 120px 20px 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-connector { display: none; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--graphite-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-dim); }
