/* =========================================
   CodeForge — Design System
========================================= */
:root{
  color-scheme: dark;
  --bg: #08090d;
  --bg-alt: #0d0f16;
  --surface: #12141c;
  --surface-2: #171a24;
  --border: #23273370;
  --border-solid: #232733;
  --text: #e8e9ee;
  --text-dim: #9195a5;
  --text-faint: #5b5f6e;
  --accent: #3b82f6;
  --accent-2: #7c3aed;
  --accent-3: #22d3ee;
  --gradient: linear-gradient(to right, var(--accent) 0%, var(--accent) 2%, #6366f1, var(--accent-2), #d946ef 98%, #d946ef 100%);
  --gradient-soft: linear-gradient(120deg, #3b82f622, #6366f122, #7c3aed22, #d946ef22);
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.65,0,.35,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --header-shadow: 0 12px 30px -18px #000000aa;
  --nav-active-fg: var(--accent);
}

:root[data-theme="light"]{
  color-scheme: light;
  --bg: #f7f7fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f1f5;
  --border: #e2e4eb;
  --border-solid: #e2e4eb;
  --text: #14161f;
  --text-dim: #565b6b;
  --text-faint: #8b8fa0;
  /* A black shadow reads as a smudge under a white header — fade toward
     the page bg instead, so the header edge dissolves softly into it. */
  --header-shadow: 0 14px 26px -16px #0d0f1a1f;
  /* Darkening only helps on a light bg — on dark it would kill contrast. */
  --nav-active-fg: color-mix(in srgb, var(--accent) 62%, black);
}

*,*::before,*::after{ box-sizing: border-box; }

/* =========================================
   Custom Clean Scrollbar (Chrome, Edge, Safari, Firefox)
========================================= */
html{
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) var(--bg);
}

::-webkit-scrollbar{
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track{
  background: var(--bg);
}

::-webkit-scrollbar-thumb{
  background: var(--border-solid);
  border-radius: 9999px;
  border: 2px solid var(--bg);
  transition: background .2s ease;
}

::-webkit-scrollbar-thumb:hover{
  background: var(--accent);
}

::-webkit-scrollbar-corner{
  background: var(--bg);
}

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

/* =========================================
   Theme Curtain Wipe Animation
========================================= */
.theme-wipe-curtain{
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  transform: translateY(0%);
  will-change: transform;
}
.theme-wipe-curtain.dark-bg{
  background: #08090d;
}
.theme-wipe-curtain.light-bg{
  background: #f7f7fa;
}
.theme-wipe-curtain .curtain-laser{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--gradient);
  box-shadow: 0 4px 28px #3b82f6, 0 0 14px #7c3aed;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
a, button, input, textarea, select{
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
::selection{ background: var(--accent); color:#fff; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.container{
  width:100%;
  max-width:1220px;
  margin:0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight:600;
  margin:0;
  letter-spacing:-0.02em;
}

/* Hide scrollbar during preload */
body.no-scroll{ overflow:hidden; }

/* =========================================
   Preloader
========================================= */
.preloader{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  pointer-events:all;
}
.preloader.hide{ pointer-events:none; }

.preloader-bg{
  position:absolute; inset:0;
  background: var(--bg);
  transition: transform 1.1s cubic-bezier(.76,0,.24,1);
  z-index:0;
}
.preloader.hide .preloader-bg{ transform: translateY(-100%); }

.preloader-glow{
  position:absolute; left:50%; top:50%; width:340px; height:340px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, #3b82f640, transparent 70%);
  filter: blur(30px);
  animation: preloaderPulse 2.4s ease-in-out infinite;
  z-index:1;
}
@keyframes preloaderPulse{
  0%,100%{ opacity:.5; transform: translate(-50%,-50%) scale(1); }
  50%{ opacity:1; transform: translate(-50%,-50%) scale(1.2); }
}

.preloader-inner{
  position:relative; z-index:2; text-align:center;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.preloader.exit .preloader-inner{
  opacity:0; transform: translateY(-26px) scale(.88);
}

.preloader-logo{
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight:500;
  color: var(--text);
  display:inline-flex; margin-bottom:26px;
  letter-spacing: -0.02em;
}
.pl-char{
  display:inline-block;
  opacity:0; transform: translateY(18px);
  animation: plCharIn .65s cubic-bezier(.16,1,.3,1) forwards;
}
.pl-char.pl-1{ animation-delay:.05s; color: var(--accent); font-weight:600; }
.pl-char.pl-2{ animation-delay:.18s; }
.pl-char.pl-3{
  animation-delay:.32s;
  background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.pl-char.pl-4{ animation-delay:.48s; color: var(--accent); font-weight:600; }
@keyframes plCharIn{ to{ opacity:1; transform: translateY(0); } }

.preloader-meta{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  opacity:0; animation: plCharIn .6s .68s cubic-bezier(.16,1,.3,1) forwards;
}
.preloader-bar{
  width:180px; height:2px; border-radius:2px;
  background: var(--surface-2); overflow:hidden;
}
.preloader-bar span{
  display:block; height:100%; width:0%;
  background: var(--gradient);
  transition: width .25s linear;
}
.preloader-percent{
  font-family: var(--font-mono); font-size:.75rem; letter-spacing:.12em;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}

/* =========================================
   Custom cursor
========================================= */
.cursor-dot, .cursor-ring{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9998;
  border-radius:50%;
  transform: translate(-50%,-50%);
  will-change: transform;
  display:none;
}
.cursor-dot{
  width:6px; height:6px; background: var(--accent); z-index:9999;
}
.cursor-ring{
  width:34px; height:34px; border:1.5px solid var(--text-faint);
  align-items:center; justify-content:center;
  transition: width .25s cubic-bezier(.16,1,.3,1), height .25s cubic-bezier(.16,1,.3,1), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.cursor-hover{
  width:52px; height:52px;
  border-color: var(--accent);
  background: #3b82f612;
}

/* Custom cursor only on devices with a real mouse — never on touch.
   *{cursor:none !important} is needed because buttons, links, inputs and the
   compare-slider handle all set their own native cursor (pointer/text/ew-resize)
   that would otherwise override the inherited none. */
@media (hover:hover) and (pointer:fine){
  *{ cursor:none !important; }
  .cursor-dot{ display:block; }
  .cursor-ring{ display:flex; }
}

/* =========================================
   Scroll progress
========================================= */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px;
  background: var(--gradient);
  z-index:1001; width:0%;
  box-shadow: 0 0 12px #3b82f688;
}

/* =========================================
   Header / Nav
========================================= */
.header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s cubic-bezier(.4,0,.2,1);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
  will-change: transform, opacity;
}
.header.hide-nav{
  transform: translateY(-100%);
  opacity: 0;
  box-shadow: none;
}

.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.logo{
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.logo .accent{
  background: var(--gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.logo-bracket{
  color: var(--accent);
  font-weight: 600;
}

.nav-links{ display:flex; gap: 8px; }
.nav-link{
  position:relative;
  padding: 7px 14px;
  font-size:.88rem; font-weight:500;
  color: var(--text-dim);
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  display:inline-flex;
  align-items:center;
  gap:6px;
  line-height: 1;
}
.nav-link span{
  color: var(--accent);
  font-family:var(--font-mono);
  font-size:.78rem;
  line-height: 1;
}
.nav-link:hover{ color: var(--text); background: var(--surface); }
.nav-link.active{
  color: var(--nav-active-fg);
  background: var(--bg);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.nav-actions{ display:flex; align-items:center; gap:12px; }

.header-login-btn{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--border-solid); background: var(--surface);
  display:flex; align-items:center; justify-content:center;
  transition: border-color .3s var(--ease), transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s var(--ease), background .5s var(--ease);
}
.header-login-btn svg{
  width:17px; height:17px; color: var(--accent);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.header-login-btn:hover{
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.35);
}
.header-login-btn:hover svg{ transform: scale(1.15); }
.header-login-btn:active{ transform: scale(0.92); }

.theme-toggle{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--border-solid); background: var(--surface);
  color: var(--accent);
  display:flex; align-items:center; justify-content:center;
  transition: color .3s var(--ease), transform .4s cubic-bezier(.16, 1, .3, 1), border-color .3s var(--ease), box-shadow .35s var(--ease), background .5s var(--ease);
  position:relative;
  overflow:hidden;
}
.theme-toggle svg{
  width:18px; height:18px; position:absolute;
  transition: opacity .4s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.theme-toggle .icon-moon{ opacity:1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-sun{ opacity:0; transform: rotate(-120deg) scale(0.4); }
[data-theme="light"] .theme-toggle .icon-moon{ opacity:0; transform: rotate(120deg) scale(0.4); }
[data-theme="light"] .theme-toggle .icon-sun{ opacity:1; transform: rotate(0deg) scale(1); }
.theme-toggle:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) rotate(18deg) scale(1.06);
  box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.35);
}
.theme-toggle:active{ transform: scale(0.92); }

.hamburger{
  display:none; flex-direction:column; gap:5px;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--surface);
  align-items:center; justify-content:center;
  cursor:pointer;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  z-index:1001;
}
.hamburger span{
  width:20px; height:2px; background: var(--text); border-radius:2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease), background .3s;
}
.hamburger.active{
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.hamburger.active span{
  background: var(--accent);
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; transform: scaleX(0); }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.hamburger:hover{ transform: scale(1.05); border-color: var(--accent); }
.hamburger:active{ transform: scale(0.94); }

/* =========================================
   Buttons
========================================= */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight:600; font-size:.92rem;
  border:1px solid transparent;
  overflow:hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1),
              box-shadow .35s cubic-bezier(.16, 1, .3, 1),
              border-color .3s var(--ease),
              background .5s var(--ease),
              color .3s var(--ease);
  isolation:isolate;
  white-space:nowrap;
  cursor:pointer;
}
.btn svg{ width:16px; height:16px; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.btn:active{ transform: scale(0.96) translateY(1px); }

.btn-primary{
  background: var(--gradient);
  background-repeat: no-repeat;
  background-clip: padding-box;
  color:#fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.45);
}
.btn-primary::before{
  content:''; position:absolute; inset:0; z-index:-1;
  border-radius: inherit;
  background: linear-gradient(to right, var(--accent-2), var(--accent));
  background-repeat: no-repeat;
  background-clip: padding-box;
  opacity:0; transition: opacity .4s var(--ease);
}
/* Clean light sheen animation */
.btn-primary::after{
  content:''; position:absolute; top:-50%; left:-60%; width:40%; height:200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: rotate(25deg) translateX(-100%);
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
  pointer-events:none;
  z-index:1;
}
.btn-primary:hover::before{ opacity:1; }
.btn-primary:hover::after{ transform: rotate(25deg) translateX(420%); }
.btn-primary:hover{
  box-shadow: 0 14px 32px -8px rgba(124, 58, 237, 0.55), 0 0 20px -4px rgba(59, 130, 246, 0.35);
  transform: translateY(-3px) scale(1.015);
}
.btn-primary:hover svg{ transform: translateX(4px); }

.btn-ghost{
  background: transparent;
  border-color: var(--border-solid);
  color: var(--text);
}
.btn-ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 8px 22px -6px rgba(59, 130, 246, 0.25);
}
.btn-ghost:hover svg{ transform: translateX(3px); }

.btn-sm{ padding: 9px 18px; font-size:.82rem; }
.btn-lg{ padding: 15px 30px; font-size:1rem; }

/* Magnetic ripple */
.magnetic{ will-change: transform; }
.ripple{
  position:absolute; border-radius:50%;
  background: rgba(255,255,255,.35);
  transform: scale(0); animation: rippleAnim .6s var(--ease-out) forwards;
  pointer-events:none;
}
[data-theme="light"] .btn-ghost .ripple{ background: rgba(0,0,0,.12); }
@keyframes rippleAnim{ to{ transform: scale(3); opacity:0; } }

/* Clean top header when mobile menu is open */
body.no-scroll .header-login-btn,
body.no-scroll .theme-toggle{
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.mobile-menu{
  position:fixed; inset:0; z-index:999;
  height: 100vh; height: 100dvh;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display:flex; flex-direction:column;
  padding: max(72px, calc(env(safe-area-inset-top) + 60px)) 20px max(20px, env(safe-area-inset-bottom));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateY(-12px) scale(0.98);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity .3s var(--ease), transform .3s cubic-bezier(.16, 1, .3, 1), visibility .3s;
}
.mobile-menu.open{
  opacity:1;
  visibility:visible;
  pointer-events:all;
  transform: translateY(0) scale(1);
}

.mobile-menu-inner{
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.mobile-menu-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.mobile-nav-list{
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.mobile-nav-list li{
  width: 100%;
}

.mobile-link{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px 6px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent) !important;
  font-family: var(--font-display) !important;
  font-size: 1.18rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s cubic-bezier(.16, 1, .3, 1), color .25s var(--ease);
  touch-action: manipulation;
  box-shadow: none !important;
}

.mobile-menu.open .mobile-link{
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open li:nth-child(1) .mobile-link{ transition-delay: .04s; }
.mobile-menu.open li:nth-child(2) .mobile-link{ transition-delay: .08s; }
.mobile-menu.open li:nth-child(3) .mobile-link{ transition-delay: .12s; }
.mobile-menu.open li:nth-child(4) .mobile-link{ transition-delay: .16s; }
.mobile-menu.open li:nth-child(5) .mobile-link{ transition-delay: .20s; }
.mobile-menu.open li:nth-child(6) .mobile-link{ transition-delay: .24s; }

.mobile-link-num{
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
}

.mobile-link-title{
  flex: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;
  font-size: 1.18rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  transition: color .25s var(--ease) !important;
}

.mobile-link-arrow{
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  color: var(--text-faint) !important;
  transition: transform .25s var(--ease), color .25s var(--ease) !important;
}

.mobile-link:hover,
.mobile-link:active,
.mobile-link.active{
  background: transparent !important;
  border-bottom-color: var(--accent) !important;
  box-shadow: none !important;
}

.mobile-link:hover .mobile-link-title,
.mobile-link:active .mobile-link-title,
.mobile-link.active .mobile-link-title{
  color: var(--accent) !important;
}

.mobile-link:hover .mobile-link-arrow,
.mobile-link:active .mobile-link-arrow,
.mobile-link.active .mobile-link-arrow{
  transform: translateX(4px) !important;
  color: var(--accent) !important;
}

.mobile-menu-footer{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease) .28s, transform .35s cubic-bezier(.16, 1, .3, 1) .28s;
}

.mobile-menu.open .mobile-menu-footer{
  opacity: 1;
  transform: translateY(0);
}

.mobile-cta{
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
  border-radius: 14px;
}

.mobile-menu-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.mobile-action-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}

.mobile-action-btn svg{
  width: 18px;
  height: 18px;
}

.mobile-action-btn:active{
  transform: scale(0.96);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

#themeToggleMobile .icon-sun{ display:none; }
#themeToggleMobile .icon-moon{ display:block; }
[data-theme="light"] #themeToggleMobile .icon-sun{ display:block; }
[data-theme="light"] #themeToggleMobile .icon-moon{ display:none; }

/* =========================================
   Hero
========================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  padding-top: 100px;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  /* Glows are blurred but hero clips at overflow:hidden, so without this
     the blur gets a hard, visible seam right at the container's bottom
     edge instead of dissolving into the page background. */
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.grid-overlay{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  opacity:.5;
}
.glow{
  position:absolute; border-radius:50%;
  filter: blur(90px); opacity:.35;
}
.glow-1{ width:500px; height:500px; background: var(--accent); top:-150px; left:-100px; animation: floatGlow 12s ease-in-out infinite; }
.glow-2{ width:460px; height:460px; background: var(--accent-2); bottom:-180px; right:-120px; animation: floatGlow 14s ease-in-out infinite reverse; }
@keyframes floatGlow{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(40px,30px) scale(1.1); }
}
.forge-spark{ position:absolute; inset:0; pointer-events:none; }
.spark{
  position:absolute; bottom:-10px; width:3px; height:3px; border-radius:50%;
  background: var(--accent);
  animation: sparkRise linear infinite;
  box-shadow: 0 0 6px 1px #3b82f6aa;
}
@keyframes sparkRise{
  0%{ transform: translateY(0) translateX(0); opacity:1; }
  100%{ transform: translateY(-100vh) translateX(var(--drift, 40px)); opacity:0; }
}

.hero-content{
  position:relative;
  z-index:1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 32vw, 460px);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
}
.hero-left{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}
.hero-core-container{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none !important;
  margin-left: auto;
  transform: translateX(clamp(16px, 3vw, 48px)) translateZ(0);
  will-change: transform;
}
.hero-core-container:active{
  cursor: grabbing;
}
.hero-core-glow{
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(124, 58, 237, 0.18) 45%, transparent 75%);
  filter: blur(36px);
  pointer-events: none;
  animation: coreGlowPulse 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes coreGlowPulse{
  0%{ transform: scale(0.92); opacity: 0.7; }
  100%{ transform: scale(1.1); opacity: 1; }
}
.hero-core-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none !important;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translateZ(0);
  will-change: transform;
}

.hero-title{
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height:1.18;
  margin-bottom: 22px;
}
.typing-wrap{
  position:relative;
  display:inline-block;
  background: var(--gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  white-space:nowrap;
}
.hero-title-second{ display:inline-block; }
.type-cursor{
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: blink 0.9s step-start infinite;
  font-weight:300;
}

/* The forge-bar underneath provides the striking moment without disturbing
   the text gradient or triggering mobile WebKit text-clip redraw bugs. */
.forge-bar{
  position:absolute; left:0; bottom:-4px; height:2.5px; width:0%;
  background: var(--gradient);
  opacity:0;
  border-radius:2px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.forge-bar.strike{ animation: forgeSweep .65s var(--ease-out); }
@keyframes forgeSweep{
  0%{ width:0%; opacity:1; }
  65%{ width:100%; opacity:1; }
  100%{ width:100%; opacity:0; }
}

.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-bottom:0; }

.cstat-num{
  font-family: var(--font-display); font-size: 2.2rem; font-weight:700;
  color: var(--text); display:inline;
}
.stat-plus{ font-family: var(--font-display); font-size:1.4rem; font-weight:700; color: var(--accent); }
.stat-label{ font-size:.85rem; color: var(--text-faint); margin-top:4px; }

.scroll-hint{
  position:absolute; bottom: 36px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--text-faint); font-family: var(--font-mono); font-size:.72rem;
  letter-spacing:.15em; text-transform:uppercase;
  z-index:1;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint-line{ width:1px; height:36px; background: var(--border-solid); overflow:hidden; position:relative; }
.scroll-hint-line i{
  position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{ 50%{ top:0%; } 100%{ top:100%; } }
@keyframes bob{ 50%{ transform: translate(-50%, 8px); } }

/* =========================================
   Marquee
========================================= */
.marquee{
  margin-top: 48px;
  border-top:1px solid var(--border-solid); border-bottom:1px solid var(--border-solid);
  background: var(--surface);
  padding: 18px 0;
  overflow:hidden;
  white-space:nowrap;
}
.marquee-track{
  display:inline-flex; gap: 20px;
  animation: marqueeMove 26s linear infinite;
  font-family: var(--font-mono); font-size:.95rem; color: var(--text-dim);
  will-change: transform;
}
.marquee-unit{ display:inline-flex; gap: 20px; flex-shrink:0; align-items:center; }
.marquee-unit span:nth-child(odd){ color: var(--text); font-weight: 500; }
.marquee-sep{
  color: var(--accent);
  font-weight: 600;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marqueeMove{ to{ transform: translateX(-50%); } }

/* =========================================
   Sections common
========================================= */
.section{ padding: 120px 0; position:relative; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 720px; margin-bottom: 64px; }
.section-tag{
  font-family: var(--font-mono); color: var(--accent);
  font-size:.85rem; margin-bottom:14px; letter-spacing:.05em;
}
.section-title{ font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom:14px; }
.section-desc{ color: var(--text-dim); font-size:1.05rem; }

/* Reveal on scroll — !important guards the entrance timing from being
   overridden by a component's own transition shorthand (e.g. .service-card,
   .portfolio-item), which would otherwise win on source order and desync
   the fade from the slide-up. */
.reveal-up{
  opacity:0; transform: translateY(36px);
  transition: opacity .8s var(--ease-out) !important, transform .8s var(--ease-out) !important;
  transition-delay: var(--d, 0s) !important;
}
.reveal-up.in-view{ opacity:1; transform: translateY(0); }

/* =========================================
   About
========================================= */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 68px);
  align-items: center;
}
.about-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 530px;
}
.about-text .lead{
  font-size: clamp(1.12rem, 1.35vw, 1.25rem);
  line-height: 1.68;
  color: var(--text);
  margin-bottom: 20px;
}
.about-text p:not(.lead){
  font-size: 1.02rem;
  line-height: 1.76;
  color: var(--text-dim);
  margin-bottom: 0;
}
.about-text strong{ color: var(--text); }
.about-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.tag{
  padding:8px 16px; border-radius:999px; font-size:.85rem;
  background: var(--surface); border:1px solid var(--border-solid); color: var(--text-dim);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tag:hover{ transform: translateY(-3px); border-color: var(--accent); color: var(--text); }

/* Hover-preview links — inherit the surrounding font entirely, only add a
   dotted underline affordance + color shift so they read as "hover me". */
.hover-preview-link{
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
  transition: color .25s var(--ease);
}
.hover-preview-link:hover{ color: var(--accent); }

/* Floating preview card, appended to <body> and positioned near the cursor. */
.hp-card{
  position:fixed; z-index:1300; pointer-events:none;
  opacity:0; transform: translateY(10px) scale(.95);
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  will-change: transform, opacity;
}
.hp-card.visible{ opacity:1; transform: translateY(0) scale(1); }
.hp-card-inner{
  width:260px; padding:8px; overflow:hidden;
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px #000000cc, 0 0 50px -14px var(--accent);
}
.hp-card-inner img{ width:100%; height:150px; object-fit:cover; border-radius: var(--radius-sm); display:block; background: var(--surface-2); }
.hp-card-title{ padding:10px 6px 4px; font-family: var(--font-display); font-size:.95rem; font-weight:600; color: var(--text); }
.hp-card-subtitle{ padding:0 6px 8px; font-size:.78rem; color: var(--text-faint); }

.about-card{
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.about-card::before{
  content: '';
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(124, 58, 237, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.code-window{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -20px #000000aa, 0 0 30px -15px rgba(99, 102, 241, 0.2);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.code-window:hover{
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -20px #000000cc, 0 0 40px -10px rgba(99, 102, 241, 0.35);
}
.code-window-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-solid);
}
.dot{ width: 10px; height: 10px; border-radius: 50%; }
.dot.red{ background:#ff5f57; } .dot.yellow{ background:#febc2e; } .dot.green{ background:#28c840; }
.code-window-title{ margin-left: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.code-block{
  margin: 0;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: clamp(.76rem, 0.9vw, .83rem);
  line-height: 1.6;
  color: var(--text-dim);
  overflow-x: hidden;
  scrollbar-width: none;
}
.code-block::-webkit-scrollbar{
  display: none;
}
.c-key{ color: #ff6b9d; } .c-var{ color: var(--accent-3); } .c-prop{ color:#c792ea; }
.c-str{ color:#a5e075; } .c-fn{ color:#82aaff; }

/* =========================================
   Services
========================================= */
.services-bento{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 36px);
}

.service-card{
  position:relative;
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease), background .4s var(--ease);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.service-card::before{
  content:''; position:absolute; inset:0; opacity:0;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), #3b82f618, transparent 60%);
  transition: opacity .4s var(--ease); pointer-events:none;
}
.service-card:hover::before{ opacity:1; }
.service-card:hover{ transform: translateY(-8px); border-color: #3b82f655; }
.service-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border-solid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .4s var(--ease-out), background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  flex-shrink: 0;
}
.service-card:hover .service-icon{
  transform: translateY(-2px) scale(1.05);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.4);
}
.service-icon svg{ width: 24px; height: 24px; }

.service-num{
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-faint);
  padding: 4px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-solid);
  border-radius: 8px;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.service-card:hover .service-num{
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-solid));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
}

.service-card h3{ font-size:1.22rem; margin-bottom:12px; font-weight:700; }
.service-card p{ color: var(--text-dim); font-size:.94rem; margin:0; line-height:1.65; }
.service-card p + p{ margin-top: 14px; }

/* Flagship Cards (Websites de Exibição & Google Negócios) */
.sc-flagship-web, .sc-flagship-google{
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 6%, transparent) 150%);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border-solid));
  padding: 36px 32px;
}
.sc-flagship-web h3, .sc-flagship-google h3{ font-size:1.35rem; margin-bottom:14px; }
.sc-flagship-web p, .sc-flagship-google p{ font-size:.95rem; line-height:1.68; max-width:540px; }

.services-note{
  text-align:center; color: var(--text-faint); font-size:.88rem;
  margin: 36px 0 0; font-family: var(--font-mono);
}

/* =========================================
   Portfolio
========================================= */
.filter-bar{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.filter-btn{
  padding: 9px 20px; border-radius:999px; border:1px solid var(--border-solid);
  background: var(--surface); color: var(--text-dim); font-size:.85rem; font-weight:500;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1),
              color .25s var(--ease),
              border-color .25s var(--ease),
              background .45s var(--ease),
              box-shadow .35s var(--ease);
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.filter-btn:hover{
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.25);
}
.filter-btn.active{
  background: var(--gradient);
  background-repeat: no-repeat;
  background-clip: padding-box;
  color:#fff;
  border-color:transparent;
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px) scale(1.02);
}
.filter-btn:active{ transform: scale(0.96); }

.portfolio-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:28px;
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 768px){
  .portfolio-grid{ grid-template-columns: 1fr; gap: 20px; }
}
.portfolio-item{
  cursor:pointer;
  border-radius: var(--radius); overflow:hidden;
  background: var(--surface); border:1px solid var(--border-solid);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), border-color .4s var(--ease);
}
.portfolio-item.hidden-item{
  opacity:0; transform: scale(.9); position:absolute; pointer-events:none;
}
.portfolio-item:hover{ transform: translateY(-6px); border-color: var(--accent); }

.portfolio-visual{ aspect-ratio: 16/10; padding: 22px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.grad-1{ background: linear-gradient(135deg,#3b82f633,#7c3aed22); }
.grad-2{ background: linear-gradient(135deg,#22d3ee33,#7c3aed22); }
.grad-3{ background: linear-gradient(135deg,#a5e07533,#22d3ee22); }
.grad-4{ background: linear-gradient(135deg,#ff6b9d33,#3b82f622); }
.grad-5{ background: linear-gradient(135deg,#c792ea33,#22d3ee22); }
.grad-6{ background: linear-gradient(135deg,#febc2e33,#3b82f622); }

.portfolio-visual.has-real-img{ padding:0; }
.portfolio-visual.has-real-img img{
  width:100%; height:100%; object-fit:cover; object-position: top center;
  transition: transform .5s var(--ease-out);
}
.portfolio-item:hover .portfolio-visual.has-real-img img{ transform: scale(1.04); }

.mockup-browser{
  width:100%; background: var(--bg); border-radius:10px; overflow:hidden;
  box-shadow: 0 20px 40px -20px #00000080;
  transform: perspective(800px) rotateX(4deg);
  transition: transform .5s var(--ease-out);
  border: 1px solid var(--border-solid);
}
.portfolio-item:hover .mockup-browser{ transform: perspective(800px) rotateX(0deg) scale(1.03); }
.mockup-browser.lg{ transform:none; }
.mockup-bar{ display:flex; gap:5px; padding:9px 12px; background: var(--surface-2); }
.mockup-bar span{ width:7px; height:7px; border-radius:50%; background: var(--text-faint); }
.mockup-body{ padding:16px; }
.mockup-hero{ height:44px; border-radius:6px; background: var(--gradient-soft); margin-bottom:10px; }
.mockup-line{ height:8px; border-radius:4px; background: var(--surface-2); margin-bottom:8px; }
.mockup-line.w70{ width:70%; } .mockup-line.w40{ width:40%; }

.portfolio-info{ padding: 20px 22px; display:flex; align-items:center; justify-content:space-between; }
.portfolio-info h3{ font-size:1.05rem; margin-bottom:4px; }
.portfolio-info p{ font-size:.85rem; color: var(--text-faint); margin:0; }
.portfolio-plus{
  font-size:1.4rem; color: var(--accent); transition: transform .35s var(--ease);
  flex-shrink:0; margin-left:12px;
}
.portfolio-item:hover .portfolio-plus{ transform: rotate(90deg); }

/* Portfolio modal */
.pf-modal{
  position:fixed; inset:0; z-index:1100;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  padding: 20px;
}
.pf-modal.open{ opacity:1; visibility:visible; }
.pf-modal-overlay{ position:absolute; inset:0; background:#000a; backdrop-filter: blur(6px); }
.pf-modal-content{
  position:relative; z-index:1; max-width:660px; width:100%;
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  padding: 24px 28px 28px; transform: scale(.9) translateY(20px); transition: transform .45s var(--ease-out);
  max-height: 88vh; overflow-y:auto;
  box-shadow: 0 35px 80px -25px rgba(0,0,0,0.7), 0 0 40px -15px rgba(99, 102, 241, 0.15);
}
.pf-modal.open .pf-modal-content{ transform: scale(1) translateY(0); }
.pf-modal-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  background: var(--surface-2); border:1px solid var(--border-solid); color: var(--text-dim);
  font-size:1.3rem; line-height:1; display:flex; align-items:center; justify-content:center;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
  cursor:pointer;
  z-index: 10;
}
.pf-modal-close:hover{
  transform: rotate(90deg) scale(1.08);
  background: var(--accent);
  color:#fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.4);
}
.pf-modal-close:active{ transform: rotate(90deg) scale(0.92); }

/* Browser Mockup Window inside Modal */
.pf-browser-window{
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.6);
  margin-top: 18px;
  margin-bottom: 22px;
}
.pf-browser-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-solid);
  gap: 12px;
}
.pf-browser-dots{
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-browser-dots .dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.pf-browser-url{
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 12px;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-browser-url svg{
  color: var(--accent);
  flex-shrink: 0;
}
.pf-browser-actions{
  width: 39px;
}
.pf-modal-visual{
  position: relative;
  background: #0d0e15;
  overflow: hidden;
  max-height: 380px;
}
.pf-modal-visual img{
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Modal Content Body */
.pf-modal-body{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-modal-header h3{
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.pf-modal-category{
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}
.pf-modal-summary{
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.pf-modal-footer{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--border-solid);
  margin-top: 2px;
}
.pf-modal-link{
  display: none;
}
.pf-modal-link.show{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Auth modal (login) */
.auth-modal{
  position:fixed; inset:0; z-index:1150;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  padding: 20px;
}
.auth-modal.open{ opacity:1; visibility:visible; }
.auth-modal-overlay{ position:absolute; inset:0; background:#000a; backdrop-filter: blur(6px); }
.auth-modal-content{
  position:relative; z-index:1; max-width:400px; width:100%;
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  padding: 36px 32px 32px;
  transform: scale(.85) translateY(34px); opacity:0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
}
.auth-modal.open .auth-modal-content{ transform: scale(1) translateY(0); opacity:1; }

.auth-logo{
  display:flex; justify-content:center; margin-bottom:10px; font-size:1.3rem;
}
.auth-subtitle{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .02em;
  margin: 0 0 26px;
}
.auth-subtitle svg{
  color: var(--accent);
  flex-shrink: 0;
}

.auth-form{ display:flex; flex-direction:column; gap:22px; }
.auth-form .btn-submit{ width:100%; margin-top:4px; }

/* =========================================
   Compare (Before/After)
========================================= */
.compare-wrap{ margin-bottom:56px; }
.compare-slider{
  position:relative; width:100%; aspect-ratio: 16/10; max-height:560px;
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--border-solid);
  cursor: ew-resize; user-select:none; -webkit-user-select:none;
  touch-action: none !important;
  box-shadow: 0 30px 70px -30px #00000090;
}
.compare-after, .compare-before{ position:absolute; inset:0; touch-action: none !important; }
.compare-before{ clip-path: inset(0 50% 0 0); }
.compare-panel{ position:absolute; inset:0; touch-action: none !important; }
.panel-tag{
  position:absolute; top:16px; z-index:2; font-family: var(--font-mono); font-size:.72rem;
  padding:5px 12px; border-radius:999px; letter-spacing:.08em; font-weight:600;
}
.tag-after{ right:16px; background: var(--gradient); background-repeat:no-repeat; background-clip:padding-box; color:#fff; }
.tag-before{ left:16px; background: var(--surface-2); color: var(--text-dim); border:1px solid var(--border-solid); }

.compare-img{
  width:100%; height:100%; object-fit:cover; object-position: top center;
  display:block;
  user-select:none; -webkit-user-drag:none;
}

.compare-handle{
  position:absolute; top:0; bottom:0; left:50%;
  transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center;
  z-index:3; pointer-events:none;
  touch-action: none !important;
}
.handle-line{ flex:1; width:2px; background:#fff; opacity:.8; }
.handle-circle{
  width:44px; height:44px; border-radius:50%; background:#fff; color:#111;
  display:flex; align-items:center; justify-content:center; gap:1px;
  box-shadow: 0 6px 20px -4px #0009;
  pointer-events:all; cursor:ew-resize;
  touch-action: none !important;
  user-select:none; -webkit-user-select:none;
}
.handle-circle svg:first-child{ display:none; }

/* Compare Breakdown (Antes vs Depois) */
.compare-breakdown{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-top: 48px;
}

.compare-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.compare-card:hover{
  transform: translateY(-4px);
}

.compare-card-before{
  border-color: color-mix(in srgb, #ef4444 24%, var(--border-solid));
  background: linear-gradient(165deg, var(--surface), color-mix(in srgb, #ef4444 3.5%, transparent) 140%);
}
.compare-card-before:hover{
  border-color: color-mix(in srgb, #ef4444 45%, var(--border-solid));
  box-shadow: 0 16px 36px -16px rgba(239, 68, 68, 0.15);
}

.compare-card-after{
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-solid));
  background: linear-gradient(165deg, var(--surface), color-mix(in srgb, var(--accent) 8%, transparent) 140%);
  box-shadow: 0 16px 36px -16px rgba(99, 102, 241, 0.18);
}
.compare-card-after:hover{
  border-color: var(--accent);
  box-shadow: 0 20px 40px -16px rgba(99, 102, 241, 0.32);
}

.compare-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-solid);
}

.compare-tag{
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
}
.compare-tag.before{
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #f87171;
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}
.compare-tag.after{
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.4);
}

.compare-scope{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-faint);
  font-weight: 500;
}

.compare-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.compare-icon{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.compare-icon.cross{
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #f87171;
  border: 1px solid color-mix(in srgb, #ef4444 28%, transparent);
}

.compare-icon.check{
  background: color-mix(in srgb, #10b981 16%, transparent);
  color: #34d399;
  border: 1px solid color-mix(in srgb, #10b981 32%, transparent);
}

.compare-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .89rem;
  line-height: 1.5;
}

.compare-text strong{
  color: var(--text);
  font-weight: 600;
  font-size: .92rem;
}

.compare-text span{
  color: var(--text-dim);
}

/* =========================================
   Process timeline
========================================= */
.timeline{ position:relative; padding-left: 40px; }
.timeline-line{
  position:absolute; left:14px; top:6px; bottom:6px; width:2px;
  background: var(--border-solid); border-radius:2px; overflow:hidden;
}
.timeline-fill{
  position:absolute; top:0; left:0; width:100%; height:0%;
  background: var(--gradient);
  transition: height .2s linear;
}
.timeline-item{ position:relative; padding-bottom: 54px; padding-left: 32px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-num{
  position:absolute; left: -40px; top:-4px; width:30px; height:30px;
  border-radius:50%; background: var(--bg); border:2px solid var(--border-solid);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:.72rem; font-weight:600; color: var(--text-faint);
  transition: border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline-item.in-view .timeline-num{ border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px #3b82f622; }
.timeline-content h3{ font-size:1.3rem; margin-bottom:8px; }
.timeline-content p{ color: var(--text-dim); max-width:520px; margin:0; }

.processo-grid{
  display:grid; grid-template-columns: 1.3fr 1fr; gap:60px; align-items:center;
}

/* =========================================
   Process globe — wireframe sphere, hand-rolled 3D (no external libs).
   JS rotates/projects the graticule + markers every frame; this file
   only styles the resulting SVG paths and marker chips.
========================================= */
.globe-wrap{
  position:relative;
  width:100%; max-width:380px; aspect-ratio:1/1; margin:0 0 0 auto;
  cursor:grab;
  touch-action:none;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.globe-wrap.dragging{ cursor:grabbing; }
.globe-core{
  position:absolute; inset:9%; border-radius:50%;
  background: radial-gradient(circle at 34% 28%, var(--surface-2), var(--bg) 72%);
  box-shadow: inset 0 0 40px #00000055, 0 0 70px -14px var(--accent);
  touch-action:none; pointer-events:none;
}
.globe-grid{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; touch-action:none; }
.globe-line{ fill:none; stroke-linecap:round; }
.globe-line-front{ stroke: var(--accent); stroke-opacity:.55; stroke-width:1.1; }
.globe-line-back{ stroke: var(--text-faint); stroke-opacity:.22; stroke-width:1; }

.globe-marker{
  position:absolute; top:50%; left:50%;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px 4px 6px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border-solid);
  font-family: var(--font-mono); font-size:.72rem; font-weight:600;
  color: var(--text-dim); white-space:nowrap;
  pointer-events:none; will-change: transform, opacity;
}
.gm-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }

@media (max-width: 980px){
  /* The right-aligned margin only makes sense next to the timeline in the
     desktop 2-column layout — .processo-grid collapses to 1 column here,
     so without this the globe stays glued to the right edge instead of
     centering under the timeline. */
  .globe-wrap{ max-width:280px; margin:0 auto; }
}

/* =========================================
   Contact
========================================= */
.contact-grid{ display:grid; grid-template-columns: 1.4fr 1fr; gap:50px; align-items:start; }

.contact-form{
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  padding: 36px; display:flex; flex-direction:column; gap:22px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.field{ position:relative; }
.field input{
  width:100%; padding: 14px 4px 10px; background:transparent; border:none; border-bottom: 1.5px solid var(--border-solid);
  color: var(--text); font-family:inherit; font-size:1rem;
  transition: border-color .3s var(--ease);
}
.field textarea{
  width:100%; padding: 14px 4px 10px; background:transparent; border:none; border-bottom: 1.5px solid var(--border-solid);
  color: var(--text); font-family:inherit; font-size:1rem;
  min-height: 100px;
  max-height: 240px;
  resize: vertical;
  line-height: 1.5;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus{ outline:none; }
.field label{
  position:absolute; left:4px; top:14px; color: var(--text-faint); font-size:1rem;
  pointer-events:none; transition: all .25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:autofill + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:autofill + label{
  top:-10px; font-size:.75rem; color: var(--accent);
}
.field input:-webkit-autofill + label,
.field textarea:-webkit-autofill + label{
  top:-10px; font-size:.75rem; color: var(--accent);
}

/* Chrome / Safari / Edge autofill styling: prevent white box and preserve theme colors */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus,
.field textarea:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  font-family: inherit !important;
  border-radius: 0 !important;
  transition: background-color 50000s ease-in-out 0s;
}

.field input:autofill,
.field input:autofill:hover,
.field input:autofill:focus,
.field input:autofill:active,
.field textarea:autofill,
.field textarea:autofill:hover,
.field textarea:autofill:focus,
.field textarea:autofill:active{
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  font-family: inherit !important;
  border-radius: 0 !important;
  transition: background-color 50000s ease-in-out 0s;
}
.field-line{
  position:absolute; bottom:0; left:0; height:1.5px; width:0%; background: var(--gradient);
  transition: width .35s var(--ease);
}
.field input:focus ~ .field-line, .field textarea:focus ~ .field-line{ width:100%; }
.field.field-error input, .field.field-error textarea{ border-bottom-color:#ef4444; }
.field.field-error label{ color:#ef4444; }

.btn-submit{ align-self:flex-start; margin-top:6px; min-width:200px; }
.btn-submit .btn-loader{
  display:none; width:16px; height:16px; border-radius:50%;
  border:2px solid #fff5; border-top-color:#fff; animation: spin .7s linear infinite;
}
.btn-submit .btn-check{ display:none; }
.btn-submit.loading .btn-text{ display:none; }
.btn-submit.loading .btn-loader{ display:inline-block; }
.btn-submit.success .btn-text, .btn-submit.success .btn-loader{ display:none; }
.btn-submit.success .btn-check{ display:inline-block; }
.btn-submit.success{ background: var(--success); }
@keyframes spin{ to{ transform: rotate(360deg); } }

.form-success{
  color: var(--success); font-size:.9rem; font-weight:600;
  opacity:0; height:0; overflow:hidden; transition: opacity .4s var(--ease);
  margin:0;
}
.form-success.show{ opacity:1; height:auto; margin-top:-8px; }

.contact-info-card{
  background: var(--surface); border:1px solid var(--border-solid); border-radius: var(--radius);
  padding: 30px; margin-bottom:24px;
}
.contact-info-card h3{ margin-bottom:20px; font-size:1.1rem; }
.contact-link{
  display:flex; align-items:center; gap:12px; padding:12px 0;
  color: var(--text-dim); font-size:.95rem; border-top:1px solid var(--border);
  transition: color .3s var(--ease), transform .3s var(--ease), padding-left .3s var(--ease);
}
.contact-link:first-of-type{ border-top:none; }
.contact-link svg{ width:18px; height:18px; color: var(--accent); flex-shrink:0; }
.contact-link:hover{ color: var(--text); padding-left:6px; }

.contact-social{ display:flex; gap:12px; }
.social-btn{
  width:46px; height:46px; border-radius:50%; border:1px solid var(--border-solid);
  display:flex; align-items:center; justify-content:center; color: var(--text-dim);
  transition: transform .35s var(--ease-out), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.social-btn svg{ width:19px; height:19px; }
.social-btn:hover{ color:#fff; background: var(--gradient); background-repeat:no-repeat; background-clip:padding-box; border-color:transparent; transform: translateY(-4px) rotate(-6deg); }

/* =========================================
   Footer
========================================= */
.footer{
  position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 720px 420px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg-alt);
}
.footer::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: var(--gradient); z-index:1;
}

.footer-main{
  padding: 48px 0 36px;
  display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:32px;
}
.footer-col h4{
  display:flex; align-items:center; gap:9px;
  font-family: var(--font-mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.07em;
  color: var(--text); margin-bottom:16px;
}
.footer-col h4::before{
  content:''; width:14px; height:2px; border-radius:2px; background: var(--gradient); flex-shrink:0;
}
.footer-brand .logo{ display:inline-flex; margin-bottom:14px; }
.footer-tagline{ color: var(--text-dim); font-size:.9rem; max-width:320px; margin-bottom:20px; }
.footer-social.contact-social{ gap:10px; }
.footer-social .social-btn{ width:38px; height:38px; }
.footer-social .social-btn svg{ width:16px; height:16px; }

.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-links li{ font-size:.88rem; }
.footer-links a, .footer-links span{ color: var(--text-dim); transition: color .25s var(--ease), padding-left .25s var(--ease); display:inline-block; }
.footer-links a:hover{ color: var(--accent); padding-left:5px; }
.footer-links a:hover::before{ content:'→ '; color: var(--accent); }

.footer-bottom{
  border-top:1px solid var(--border-solid);
  padding: 20px 0;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.footer-bottom p{ color: var(--text-faint); font-size:.82rem; margin:0; }
.back-to-top{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border-solid); background: var(--surface);
  color: var(--text-dim); display:flex; align-items:center; justify-content:center;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease), background .5s var(--ease);
  flex-shrink:0;
  cursor:pointer;
}
.back-to-top svg{ width:17px; height:17px; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.back-to-top:hover{
  transform: translateY(-4px) scale(1.08);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -4px rgba(59, 130, 246, 0.4);
}
.back-to-top:hover svg{ transform: translateY(-3px); }
.back-to-top:active{ transform: scale(0.92); }

@media (max-width: 980px){
  .footer-main{ grid-template-columns: 1fr 1fr; row-gap:32px; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 640px){
  .footer-main{ grid-template-columns: 1fr; text-align:center; }
  .footer-col h4{ justify-content:center; }
  .footer-brand{ align-items:center; display:flex; flex-direction:column; }
  .footer-tagline{ max-width:none; }
  .footer-bottom{ justify-content:center; text-align:center; }
}

/* =========================================
   Toast
========================================= */
.toast{
  position:fixed; bottom:28px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border:1px solid var(--border-solid); color: var(--text);
  padding: 14px 24px; border-radius:999px; font-size:.9rem; font-weight:500;
  box-shadow: 0 20px 40px -10px #0008;
  opacity:0; pointer-events:none; z-index:1200;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* Field error shake animation */
@keyframes shake{
  10%,90%{ transform: translateX(-1px); }
  20%,80%{ transform: translateX(2px); }
  30%,50%,70%{ transform: translateX(-4px); }
  40%,60%{ transform: translateX(4px); }
}

/* =========================================
   Privacy & Legal Elements
========================================= */
.footer-legal-link{
  color: var(--text-faint);
  font-size: .84rem;
  transition: color .2s var(--ease);
  text-decoration: none;
}
.footer-legal-link:hover{
  color: var(--accent);
}

.form-privacy-note{
  font-size: .78rem;
  color: var(--text-faint);
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
}
.form-privacy-note a{
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.form-privacy-note a:hover{
  color: var(--accent);
}

/* =========================================
   Privacy & Cookie Banner
========================================= */
.cookie-banner{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  max-width: 440px;
  width: calc(100vw - 48px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .45s cubic-bezier(.16, 1, .3, 1);
}
.cookie-banner.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner-head{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
}
.cookie-banner-head svg{
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}
.cookie-banner-desc{
  font-size: .86rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.cookie-banner-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.cookie-banner-actions .btn{
  padding: 7px 16px;
  font-size: .82rem;
  border-radius: 999px;
}
@media (max-width: 480px){
  .cookie-banner{
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
    width: calc(100vw - 32px);
    padding: 16px 18px;
  }
  .cookie-banner-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

[data-theme="light"] .cookie-banner{
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--border);
}

/* =========================================
   Logo easter egg — 5 rapid clicks
========================================= */
.egg-flash{
  position:fixed; inset:0; z-index:2050; pointer-events:none;
  background: radial-gradient(circle at var(--fx,50%) var(--fy,50%), #fff 0%, #3b82f6 22%, #7c3aed44 52%, transparent 75%);
  opacity:0;
  animation: eggFlash .65s ease-out forwards;
}
@keyframes eggFlash{
  0%{ opacity:0; }
  12%{ opacity:1; }
  100%{ opacity:0; }
}

.egg-overlay{
  position:fixed; inset:0; z-index:2040; pointer-events:none;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  opacity:0;
  transition: opacity .45s var(--ease);
}
.egg-overlay.show{ opacity:1; pointer-events:all; }

.egg-achievement{
  position:fixed; top:50%; left:50%; z-index:2100;
  transform: translate(-50%,-50%) scale(.55) rotate(-6deg);
  opacity:0; pointer-events:none;
  transition: opacity .4s var(--ease-out), transform .5s cubic-bezier(.34,1.56,.64,1);
  text-align:center; max-width: min(420px, 88vw);
  padding: 40px 36px; border-radius: 22px;
  background: var(--surface); border:1px solid var(--border-solid);
  box-shadow: 0 40px 100px -20px #000000cc, 0 0 0 1px #3b82f640, 0 0 90px -10px #3b82f666;
}
.egg-achievement.show{ opacity:1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
.egg-achievement-icon{
  display:block; margin-bottom:16px;
  font-family: var(--font-mono); font-weight:700;
  font-size:3rem; line-height:1; letter-spacing:-0.02em;
  background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: eggIconFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 22px #3b82f699);
}
@keyframes eggIconFloat{
  0%,100%{ transform: translateY(0) rotate(-4deg); }
  50%{ transform: translateY(-9px) rotate(4deg); }
}
.egg-achievement-title{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(1.3rem, 4vw, 1.7rem); margin-bottom:10px;
  background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.egg-achievement-sub{ color: var(--text-dim); font-size:.95rem; line-height:1.5; margin:0; }

.egg-ember{
  position:fixed; bottom:-24px; z-index:2045; border-radius:50%;
  pointer-events:none;
  animation: eggEmberRise linear forwards;
}
@keyframes eggEmberRise{
  0%{ transform: translateY(0) translateX(0) scale(1); opacity:1; }
  85%{ opacity:.9; }
  100%{ transform: translateY(-112vh) translateX(var(--drift,0px)) scale(.35); opacity:0; }
}

@keyframes logoEggPunch{
  0%{ transform: scale(1) rotate(0deg); }
  30%{ transform: scale(1.28) rotate(-5deg); }
  55%{ transform: scale(.9) rotate(4deg); }
  100%{ transform: scale(1) rotate(0deg); }
}
.logo.egg-punch{ animation: logoEggPunch .55s cubic-bezier(.34,1.56,.64,1); position:relative; z-index:2101; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  .hero-content{ grid-template-columns: 1fr; gap: 0; }
  .hero-left{
    min-height: calc(100svh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-right{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 48px;
    margin-bottom: 24px;
    opacity: 1;
    pointer-events: all;
    transform: none;
  }
  .hero-core-container{
    max-width: min(330px, 86vw);
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto !important;
    transform: none !important;
    overflow: visible !important;
  }
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .processo-grid{ grid-template-columns:1fr; gap:40px; }
  .services-bento{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portfolio-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
}

@media (max-width: 640px){
  .container{
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .section{ padding: 68px 0; }
  
  /* Touch target heights */
  .hamburger, .header-login-btn, .theme-toggle, .back-to-top{
    width: 42px; height: 42px;
  }
  .social-btn{ width: 44px; height: 44px; }
  
  /* Form iOS auto-zoom prevention */
  .field input, .field textarea{ font-size: 16px; }
  
  .services-bento{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card{ padding: 26px 20px; }
  .service-top{ margin-bottom: 20px; }
  .service-icon{ width: 44px; height: 44px; border-radius: 12px; }
  .service-icon svg{ width: 22px; height: 22px; }
  .sc-flagship-web h3, .sc-flagship-google h3{ font-size: 1.28rem; }
  
  /* Swipeable portfolio filters on mobile */
  .filter-bar{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 28px;
    gap: 8px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar{ display: none; }
  .filter-btn{ flex-shrink: 0; padding: 8px 16px; font-size: .82rem; min-height: 40px; }
  
  .portfolio-grid{ grid-template-columns: 1fr; gap: 20px; }
  
  .hero{ padding-top: max(84px, calc(env(safe-area-inset-top) + 60px)); min-height: auto; padding-bottom: 20px; }
  .hero-title{ font-size: clamp(2.3rem, 9.2vw, 3.1rem); line-height: 1.14; margin-bottom: 18px; }
  .hero-sub{ font-size: 1.02rem; line-height: 1.6; color: color-mix(in srgb, var(--text) 85%, transparent); margin-bottom: 32px; }
  .hero-actions{ flex-direction:column; align-items:stretch; gap: 12px; margin-bottom: 0; }
  .hero-actions .btn{ width:100%; min-height: 52px; padding: 14px 24px; font-size: 0.98rem; font-weight: 600; }
  .hero-actions .btn-lg{ padding: 14px 24px; font-size: 0.98rem; }
  .hero-badges{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 28px;
    width: 100%;
  }
  .hero-badge{ width: 100%; }
  
  .compare-slider{ aspect-ratio: 4/3; }
  .compare-breakdown{ grid-template-columns: 1fr; gap: 16px; }
  
  .nav-actions .btn-sm{ display:none; }
  .footer-inner{ justify-content:center; text-align:center; }
  
  /* Mobile Modals */
  .pf-modal-content, .auth-modal-content{
    padding: 24px 20px;
    max-height: 88dvh;
    border-radius: 18px;
  }
  .toast{
    width: calc(100% - 36px);
    text-align: center;
  }
}

@media (max-width: 420px){
  .container{
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .hero-title{ font-size: clamp(2.15rem, 9.5vw, 2.6rem); line-height: 1.15; }
  .hero-sub{ font-size: 0.98rem; margin-bottom: 28px; }
  .hero-left{ min-height: calc(100svh - 130px); }
  .hero-core-container{ max-width: min(310px, 82vw); }
  .service-card{ padding: 22px 18px; }
}

/* =========================================
   Landscape Mobile Optimization (e.g. Phone sideways with notch/dynamic island)
========================================= */
@media (orientation: landscape) and (max-height: 560px){
  .container{
    padding-left: max(64px, calc(env(safe-area-inset-left) + 24px));
    padding-right: max(64px, calc(env(safe-area-inset-right) + 24px));
  }
  .header{
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .hero{
    padding-top: max(74px, calc(env(safe-area-inset-top) + 46px));
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-title{
    font-size: clamp(1.6rem, 5.2vw, 2.2rem);
    line-height: 1.2;
  }
  .hero-sub{
    font-size: .92rem;
    margin-bottom: 18px;
    max-width: 580px;
  }
  .hero-actions{
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn{
    width: auto;
  }
  .hero-stats{
    margin-top: 24px;
    gap: 20px;
  }
  .section{
    padding: 50px 0;
  }
  .services-bento{
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-menu{
    padding-top: max(56px, calc(env(safe-area-inset-top) + 16px));
    padding-left: max(32px, calc(env(safe-area-inset-left) + 24px));
    padding-right: max(32px, calc(env(safe-area-inset-right) + 24px));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 12px;
  }
  .mobile-nav-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    max-width: 540px;
  }
  .mobile-link{
    font-size: 0.95rem;
    padding: 8px 12px;
  }
  .mobile-cta{
    max-width: 220px;
  }
  .pf-modal, .auth-modal{
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
  }
  .pf-modal-content, .auth-modal-content{
    max-height: 84vh;
    padding: 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior:auto !important; }
  /* Keep the header show/hide slide perceptible even with reduced motion on */
  .header{ transition-duration: .5s, .5s !important; }
  /* Keep the marquee ticker looping even with reduced motion on */
  .marquee-track{ animation-duration: 26s !important; animation-iteration-count: infinite !important; }
  /* Keep the intro (preloader) animation perceptible even with reduced motion on */
  .preloader-inner{ transition-duration: .6s !important; }
  .preloader-bg{ transition-duration: 1.1s !important; }
  .pl-char{ animation-duration: .65s !important; }
  .preloader-meta{ animation-duration: .6s !important; }
  .preloader-glow{ animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
  /* Keep modal open/close transitions perceptible even with reduced motion on */
  .pf-modal, .auth-modal{ transition-duration: .4s, .4s !important; }
  .pf-modal-content, .auth-modal-content{ transition-duration: .5s !important; }
}

/* Logo Spacing & Kerning Fix */
.logo-bracket,
.logo-bracket-end,
.logo-bracket-end span,
.bracket-gt {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.logo-bracket-end {
  display: inline-flex;
  align-items: center;
}
.bracket-gt {
  margin-left: 2px !important;
}
.pl-char.pl-5 {
  animation-delay: .54s;
  color: var(--accent) !important;
  font-weight: 600 !important;
}

