/* ================================================================
   DROP CRIATIVA – DESIGN SYSTEM (TECH BOLD EDITION)
================================================================ */

:root {
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Sora', sans-serif;

  /* Deep Dark Tech */
  --color-bg:           #050507; 
  --color-bg-secondary: #0a0a0f;
  --color-bg-card:      rgba(15,15,20,.6);
  --color-border:       rgba(255,255,255,.06);
  --color-text:         #e8e8f0;
  --color-text-muted:   rgba(232,232,240,.55);
  --color-text-heading: #ffffff;

  --color-accent-primary: #6A00F4;
  --color-accent-light:   #9D50FF;
  --color-accent-cyan:    #00DBDE;
  --color-google-green:   #34A853;

  --gradient-primary:  linear-gradient(135deg, #6A00F4, #00DBDE);
  --gradient-btn-glow: 0 0 20px rgba(106,0,244,.6), 0 0 40px rgba(106,0,244,.3);

  --glass-bg:     rgba(5, 5, 7, 0.85);
  --glass-border: rgba(255,255,255,.05);
  --glass-blur:   blur(24px);

  --space-xs:  .5rem; --space-sm:  1rem; --space-md:  2rem;
  --space-lg:  4rem; --space-xl:  6rem; --space-2xl: 9rem;
  --radius-sm: .5rem; --radius-md: 1rem; --radius-lg: 1.5rem; --radius-pill: 100px;

  --transition-fast: .15s ease;
  --transition-base: .3s ease;
  --shadow-card: 0 8px 32px rgba(0,0,0,.4);
  --shadow-glow: 0 0 30px rgba(106,0,244,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background-color: var(--color-bg); color: var(--color-text); line-height: 1.7; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-accent-primary); border-radius: 3px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-md); }
.section-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent-cyan); margin-bottom: var(--space-sm); }
.section-header { text-align: center; margin-bottom: var(--space-lg); }

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-text-heading); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em;}
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--color-text-muted); margin-bottom: .75rem; }
strong { color: var(--color-text); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; font-family: var(--font-heading); font-size: .9rem; font-weight: 600; border-radius: var(--radius-pill); transition: all var(--transition-base); cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gradient-primary); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--gradient-btn-glow); }
.btn-outline { background: transparent; color: var(--color-accent-light); border: 1px solid rgba(157, 80, 255, 0.4); }
.btn-outline:hover { background: rgba(106,0,244,.08); border-color: var(--color-accent-primary); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.5rem; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

#main-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); border-bottom: 1px solid transparent; }
#main-header.scrolled { background: var(--glass-bg); backdrop-filter: var(--glass-blur); border-bottom-color: var(--glass-border); box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 1.1rem var(--space-md); max-width: 1200px; margin-inline: auto; }
.logo-img { height: 36px; pointer-events: none; }
.nav-links { display: flex; list-style: none; gap: .5rem; }
.nav-link { padding: .45rem .85rem; font-size: .85rem; font-weight: 500; color: var(--color-text-muted); border-radius: var(--radius-pill); transition: color var(--transition-fast), background var(--transition-fast); }
.nav-link:hover, .nav-link.active { color: var(--color-text-heading); background: rgba(255,255,255,.05); }
.header-controls { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 36px; padding: 6px; border-radius: var(--radius-sm); }
.menu-toggle span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: all .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: var(--glass-bg); backdrop-filter: var(--glass-blur); border-top: 1px solid var(--glass-border); padding: var(--space-sm) var(--space-md); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu .nav-link { padding: .75rem 1rem; font-size: 1rem; }

#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orb-float 10s ease-in-out infinite; width: 700px; height: 700px; background: radial-gradient(circle, rgba(106,0,244,.15), transparent 60%); top: -20%; left: 10%; }
@keyframes orb-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-40px) scale(1.05); } }
.hero-content { position: relative; z-index: 1; max-width: 900px; padding-inline: var(--space-md); margin-inline: auto; text-align: center; }
.hero-badge { display: inline-block; padding: .4rem 1.2rem; background: rgba(106,0,244,.1); border: 1px solid rgba(106,0,244,.2); border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; color: var(--color-accent-light); letter-spacing: .1em; margin-bottom: 2rem; text-transform: uppercase; }
.hero-title { margin-bottom: 1.5rem; line-height: 1.1; }
.hero-title-fixed { display: block; white-space: nowrap; }
.hero-subtitle { font-size: 1.15rem; max-width: 600px; margin: 0 auto 3rem; color: var(--color-text-muted); line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* CORREÇÃO DE RENDERIZAÇÃO DE TEXTO GRADIENTE */
.typing-wrapper {
  background: linear-gradient(90deg, #9D50FF, #00DBDE) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #00DBDE;
  display: inline-block;
  white-space: nowrap;
}
.typing-cursor {
  color: #00DBDE !important;
  -webkit-text-fill-color: #00DBDE !important;
  font-weight: 300; 
  animation: blink .7s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

#sobre { padding-block: var(--space-xl); background: var(--color-bg-secondary); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.sobre-text h2 { margin-bottom: 1.5rem; }
.sobre-text p  { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; }

#servicos { padding-block: var(--space-2xl); }
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; backdrop-filter: blur(12px); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.service-card:hover { border-color: rgba(106,0,244,.4); box-shadow: var(--shadow-glow); }
.hero-card { grid-column: span 2; padding: 3.5rem; background: linear-gradient(135deg, rgba(106,0,244,.05), rgba(0,219,222,.02)); }
.card-icon { width: 56px; height: 56px; background: rgba(255,255,255,.05); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--color-text); margin-bottom: 1.5rem; border: 1px solid var(--color-border); }
.hero-card .card-icon { background: rgba(106,0,244,.15); color: var(--color-accent-light); border: none; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.hero-card h3 { font-size: 2rem; }
.service-card p { font-size: 1rem; margin-bottom: 1.5rem; }
.card-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--color-text-muted); background: rgba(255,255,255,.05); padding: .4rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border); }
.hero-card .card-tag { color: var(--color-accent-cyan); background: rgba(0,219,222,.08); border-color: rgba(0,219,222,.2); }

/* SEÇÃO ECOSSISTEMA E PAINÉIS VISUAIS (GLASSMORPHISM) */
#ecossistema { padding-block: var(--space-xl); background: var(--color-bg); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.eco-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.eco-list li { display: flex; align-items: center; gap: .75rem; font-size: 1.05rem; color: var(--color-text-heading); }
.eco-list i { color: var(--color-google-green); font-size: 1.4rem; }
.eco-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.glass-panel { background: rgba(15,15,20,.8); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); width: 100%; max-width: 450px; overflow: hidden; backdrop-filter: blur(15px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.glass-header { background: rgba(255,255,255,.05); padding: .8rem 1rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.glass-title { margin-left: 1rem; font-size: .8rem; color: var(--color-text-muted); font-family: monospace; }
.glass-body { padding: 1.5rem; overflow-x: auto; }
.glass-body pre { margin: 0; font-family: 'Courier New', Courier, monospace; font-size: .85rem; color: #a5b4fc; line-height: 1.6; }

/* ESTILOS DO NOVO PAINEL DE PERFORMANCE (LIGHTHOUSE) */
.perf-stats { display: flex; gap: 1.5rem; justify-content: center; align-items: center; padding: 1rem 0; }
.perf-stat { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.perf-stat .circle { width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--color-google-green); display: flex; align-items: center; justify-content: center; color: var(--color-google-green); font-family: var(--font-heading); font-weight: 900; font-size: 1.15rem; box-shadow: 0 0 15px rgba(52, 168, 83, 0.2); }
.perf-stat span { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; text-align: center; }

/* ÍCONES FLUTUANTES GERAIS */
.floating-icon { position: absolute; width: 50px; height: 50px; border-radius: 12px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 20px rgba(0,0,0,.4); animation: float-icon 6s ease-in-out infinite; }
@keyframes float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ÍCONES FLUTUANTES - APPS SCRIPT */
.icon-sheets { top: -20px; right: -20px; color: var(--color-google-green); animation-delay: 0s; }
.icon-forms { bottom: 40px; left: -30px; color: #7248B9; animation-delay: 1.5s; }
.icon-drive { bottom: -20px; right: 20px; color: #4285F4; animation-delay: 3s; }

/* ÍCONES FLUTUANTES - LIGHTHOUSE NOVO PAINEL */
.icon-figma { top: -25px; left: -25px; color: #F24E1E; animation-delay: 0.2s; }
.icon-rocket { bottom: -20px; right: -15px; color: var(--color-accent-cyan); animation-delay: 2.5s; }
.icon-mobile { top: 40%; right: -35px; color: var(--color-accent-light); animation-delay: 4s; }

/* PORTFÓLIO E IMAGENS COM CORREÇÃO DE PROPORÇÃO */
#portfolio { padding-block: var(--space-xl); background: var(--color-bg-secondary); }
.premium-cases-grid { display: flex; flex-direction: column; gap: var(--space-xl); margin-top: var(--space-lg); }
.premium-case-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.premium-case-card:nth-child(even) { direction: rtl; }
.premium-case-card:nth-child(even) > * { direction: ltr; }

/* Correção de Corte: Aspect Ratio de Monitor Widescreen e Ancoragem Superior */
.case-image-wrapper { 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  border: 1px solid var(--color-border); 
  aspect-ratio: 16/9; 
  position: relative; 
  background: var(--color-bg);
}
.case-image-wrapper img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: top center; 
  transition: transform 0.8s ease; 
  opacity: 0.9; 
  filter: grayscale(15%); 
}
.premium-case-card:hover .case-image-wrapper img { 
  transform: scale(1.03); 
  opacity: 1; 
  filter: grayscale(0%); 
}

.case-info { padding: 1rem; }
.case-info h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.case-info p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }
.case-tags { display: flex; gap: .8rem; margin-bottom: 2rem; flex-wrap: wrap; }
.case-tags span { font-size: .75rem; font-weight: 600; text-transform: uppercase; padding: .4rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-pill); }
.case-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--color-accent-light); font-size: 1rem; border-bottom: 1px solid transparent; transition: color var(--transition-fast); }
.case-link:hover { color: #fff; border-color: #fff; }

/* Selo de Processo Interno para o Case 4 */
.case-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--color-google-green); font-size: .95rem; padding: .5rem 1rem; background: rgba(52, 168, 83, 0.1); border: 1px solid rgba(52, 168, 83, 0.2); border-radius: var(--radius-pill); }

#contato { padding-block: var(--space-2xl); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.contato-info h2 { margin-bottom: 1rem; }
.contato-info p  { margin-bottom: 2rem; font-size: 1.05rem; }
.contato-list { display: flex; flex-direction: column; gap: 1.2rem; list-style: none; }
.contato-list li { display: flex; align-items: center; gap: 1rem; font-size: .95rem; }
.contato-list i { font-size: 1.4rem; background: rgba(255,255,255,.05); padding: .5rem; border-radius: .5rem; }
/* Estilos para os links de contato */
.contact-link { color: var(--color-text-muted); transition: color var(--transition-fast); }
.contact-link:hover { color: var(--color-text-heading); }

.contato-form { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }
.form-group input, .form-group textarea { width: 100%; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1.5rem 1rem .7rem; font-size: 1rem; color: var(--color-text); outline: none; }
.form-group textarea { padding-top: 1.7rem; min-height: 120px; }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(255,255,255,.2); }
.form-group label { position: absolute; top: 50%; left: 1.2rem; transform: translateY(-50%); font-size: 1rem; color: var(--color-text-muted); pointer-events: none; transition: all var(--transition-base); }
.form-group textarea + label { top: 1.2rem; transform: none; }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label { top: .6rem; transform: none; font-size: .75rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; }
.form-error { display: block; font-size: .75rem; color: #ff4f4f; margin-top: .4rem; }

#main-footer { background: var(--color-bg-secondary); border-top: 1px solid var(--color-border); padding-block: var(--space-xl) var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand p { font-size: .95rem; margin-bottom: 1.5rem; }
.instagram-pill { display: inline-flex; align-items: center; gap: .75rem; padding: .65rem 1.2rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text-muted); transition: all var(--transition-base); }
.instagram-pill:hover { border-color: #E1306C; color: #fff; background: rgba(225,48,108,.1); }
.instagram-pill i { font-size: 1.4rem; }
.instagram-pill__text { display: flex; flex-direction: column; line-height: 1.2; }
.instagram-pill__label { font-size: .65rem; text-transform: uppercase; opacity: .7; }
.instagram-pill__handle { font-size: .85rem; font-weight: 600; font-family: var(--font-heading); }
.footer-links-col h3 { font-size: .85rem; margin-bottom: 1.5rem; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-links-col a { color: var(--color-text-muted); transition: color var(--transition-fast); }
.footer-links-col a:hover { color: #fff; }
.footer-bottom { padding-top: var(--space-md); border-top: 1px solid var(--color-border); text-align: center; font-size: .85rem; color: rgba(255,255,255,.3); }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg-card); border: 1px solid var(--color-border); color: var(--color-text); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition-base); opacity: 0; transform: translateY(12px); backdrop-filter: blur(10px); }
.back-to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.back-to-top:hover { border-color: rgba(255,255,255,.2); color: #fff; }

.animate-on-scroll { opacity: 0; transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.animate-on-scroll[data-animation="fade-up"]    { transform: translateY(30px); }
.animate-on-scroll[data-animation="fade-right"] { transform: translateX(-30px); }
.animate-on-scroll[data-animation="fade-left"]  { transform: translateX(30px); }
.animate-on-scroll.in-view { opacity: 1; transform: none !important; }
.animate-on-scroll[data-delay="100"]  { transition-delay: .1s; }
.animate-on-scroll[data-delay="150"]  { transition-delay: .15s; }
.animate-on-scroll[data-delay="200"]  { transition-delay: .2s; }
.animate-on-scroll[data-delay="300"]  { transition-delay: .3s; }
.animate-on-scroll[data-delay="450"]  { transition-delay: .45s; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr; }
  .hero-card { grid-column: span 1; }
  .eco-grid { grid-template-columns: 1fr; }
  .premium-case-card { grid-template-columns: 1fr; gap: 2rem; }
  .premium-case-card:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 768px) {
  :root { --space-2xl: 6rem; --space-xl: 4rem; --space-lg: 3rem; }
  .nav-links, .btn-sm { display: none; }
  .menu-toggle { display: flex; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title-fixed, .typing-wrapper { white-space: normal; }
  .contato-form { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .perf-stats { gap: 0.5rem; }
  .perf-stat .circle { width: 50px; height: 50px; font-size: 0.85rem; border-width: 3px; }
  .perf-stat span { font-size: 0.6rem; }
  .floating-icon { width: 40px; height: 40px; font-size: 1.4rem; }
}