/* ═══════════════════════════════════════════════════════════
   HyoukaCreativeStudio — Shared Styles
   Design System, Components, Layout
   ═══════════════════════════════════════════════════════════ */

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

/* ═══════════════ BACKGROUND LOGO WATERMARK ═══════════════ */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 200vh;
  background-image: url('../img/Logo2_transparent.png');
  background-repeat: repeat;
  background-size: 220px auto;
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-25deg) translate(-25%, -25%);
}
html.light-mode body::after {
  opacity: 0.025;
}

/* ═══════════════ DESIGN TOKENS (DARK MODE DEFAULT) ═══════════════ */
:root {
  --bg-abyss: #06060b;
  --bg-deep: #0a0a12;
  --bg-card: rgba(14, 14, 24, 0.6);
  --bg-glass: rgba(123, 47, 242, 0.06);
  --border-glass: rgba(123, 47, 242, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --purple-core: #7B2FF2;
  --purple-light: #C471F5;
  --purple-glow: rgba(123, 47, 242, 0.4);
  --cyan-accent: #00E5CC;
  --cyan-glow: rgba(0, 229, 204, 0.3);
  --text-primary: #f0eef6;
  --text-secondary: rgba(240, 238, 246, 0.6);
  --text-tertiary: rgba(240, 238, 246, 0.35);
  --gradient-brand: linear-gradient(135deg, #7B2FF2, #C471F5);
  --gradient-hero: linear-gradient(135deg, #7B2FF2 0%, #C471F5 40%, #00E5CC 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 60px rgba(123, 47, 242, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --heading-line-height: 1.5;
  --nav-height: 90px;
  --section-pad: clamp(80px, 12vh, 160px);
  --scrollbar-track: var(--bg-abyss);
  --scrollbar-thumb: var(--purple-core);
  --nav-bg-scrolled: rgba(6, 6, 11, 0.85);
  --mobile-menu-bg: rgba(6, 6, 11, 0.96);
  --cookie-bg: rgba(14, 14, 24, 0.95);
  --particle-color: rgba(196, 113, 245, 0.5);
  --particle-line: rgba(123, 47, 242, 0.08);
}

/* ═══════════════ LIGHT MODE ═══════════════ */
html.light-mode {
  --bg-abyss: #f5f5f7;
  --bg-deep: #eaeaef;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(123, 47, 242, 0.05);
  --border-glass: rgba(123, 47, 242, 0.18);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.65);
  --text-tertiary: rgba(26, 26, 46, 0.4);
  --shadow-glow: 0 0 60px rgba(123, 47, 242, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --scrollbar-track: #f0f0f0;
  --scrollbar-thumb: var(--purple-core);
  --nav-bg-scrolled: rgba(245, 245, 247, 0.9);
  --mobile-menu-bg: rgba(245, 245, 247, 0.97);
  --cookie-bg: rgba(255, 255, 255, 0.95);
  --particle-color: rgba(123, 47, 242, 0.3);
  --particle-line: rgba(123, 47, 242, 0.06);
}
html.light-mode .section-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(26,26,46,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light-mode .intro-loader { background: var(--bg-abyss); }
html.light-mode .intro-loader-text { color: var(--text-primary); }
html.light-mode .grid-overlay {
  background-image:
    linear-gradient(rgba(123, 47, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 242, 0.04) 1px, transparent 1px);
}
html.light-mode .nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}
html.light-mode .portfolio-browser-bar { background: #e8e8ef; }
html.light-mode .portfolio-browser-content { background: #f0f0f5; }
html.light-mode .portfolio-browser-url { background: rgba(0,0,0,0.06); color: var(--text-tertiary); }
html.light-mode .showcase-device-bar { background: rgba(240, 240, 245, 0.95); }
html.light-mode .showcase-device-bar .url-bar { background: rgba(0,0,0,0.05); }
html.light-mode .cookie-banner { background: var(--cookie-bg); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
html.light-mode .mobile-menu { background: var(--mobile-menu-bg); }
html.light-mode .form-input,
html.light-mode .form-select,
html.light-mode .form-textarea { background: rgba(0, 0, 0, 0.03); border-color: var(--border-subtle); }
html.light-mode .hero-cursor-blink { background: var(--purple-core); }
html.light-mode .process-dot { background: var(--bg-abyss); }
html.light-mode .page-transition .pt-slice { background: var(--bg-abyss); }
html.light-mode .tech-item { background: var(--bg-card); }
html.light-mode .stat-item { background: rgba(123, 47, 242, 0.03); }
html.light-mode .footer { border-top-color: var(--border-subtle); }
html.light-mode .footer-social a { background: rgba(0, 0, 0, 0.04); border-color: var(--border-subtle); }
html.light-mode ::-webkit-scrollbar-track { background: var(--scrollbar-track); }

/* ═══════════════ BASE ═══════════════ */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--bg-abyss);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.custom-cursor-active { cursor: none; }
body.custom-cursor-active a,
body.custom-cursor-active button { cursor: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.about-card h3, .service-card h3, .portfolio-info h3,
.testimonial-name, .footer-col h4, .contact-info-card h3,
.process-step h4, .faq-question span {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ═══════════════ CUSTOM CURSOR ═══════════════ */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed;
  top: -50px; left: -50px;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
  opacity: 0;
  will-change: left, top;
}
.cursor-dot.active { opacity: 1; }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(196, 113, 245, 0.5);
  border-radius: 50%;
  position: fixed;
  top: -50px; left: -50px;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0;
  will-change: left, top;
}
.cursor-ring.active { opacity: 1; }
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--cyan-accent);
}

/* ═══════════════ INTRO LOADER ═══════════════ */
.intro-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-abyss);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
.intro-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.intro-loader-logo {
  width: 220px;
  height: auto;
  margin-bottom: 36px;
  opacity: 0;
  transform: scale(0.7);
  animation: loaderLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: scale(1); }
}
.intro-loader-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
  color: var(--text-primary);
}
.intro-loader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: loaderCharIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loaderCharIn {
  to { opacity: 1; transform: translateY(0); }
}
.intro-loader-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--gradient-brand);
  animation: loaderBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
@keyframes loaderBar {
  to { width: 100%; }
}
.intro-loader-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 242, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  animation: loaderGlow 2s ease-in-out infinite alternate;
}
@keyframes loaderGlow {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

/* ═══════════════ CANVAS PARTICLES ═══════════════ */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  opacity: 0.5;
}

/* ═══════════════ GRID OVERLAY ═══════════════ */
.grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(123, 47, 242, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 242, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════ SECTION COMMON ═══════════════ */
.section { position: relative; z-index: 2; padding: var(--section-pad) 0; overflow: hidden; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gradient-brand);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(240,238,246,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════ PAGE HEADER (sub-pages) ═══════════════ */
.page-header {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  overflow: hidden;
}
.page-header .hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  will-change: transform;
}
.page-header .hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123, 47, 242, 0.25) 0%, transparent 70%);
  top: -10%; left: -5%;
}
.page-header .hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.15) 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation-delay: -3s;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 24px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--purple-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(123, 47, 242, 0.08);
  transform: translateY(-2px);
}
.btn-arrow {
  transition: transform 0.3s;
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s;
}
.nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 70px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--purple-light); }
.nav-links a.active::after { width: 100%; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.nav-toggle-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s;
  cursor: pointer;
}
.nav-toggle-btn:hover {
  background: rgba(123, 47, 242, 0.12);
  border-color: var(--border-glass);
  color: var(--text-primary);
}
html.light-mode .nav-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.4s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--purple-light); }
.mobile-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  will-change: transform;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 47, 242, 0.35) 0%, transparent 70%);
  top: 10%; left: -5%;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.2) 0%, transparent 70%);
  bottom: 10%; right: -5%;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196, 113, 245, 0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) clamp(20px, 4vw, 48px) 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 60px;
  background: rgba(123, 47, 242, 0.1);
  border: 1px solid rgba(123, 47, 242, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-typed-wrapper {
  display: inline-block;
  position: relative;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 5.5ch;
  text-align: left;
}
.hero-cursor-blink {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--purple-light);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
  position: relative;
  top: 0.08em;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 28px auto 40px;
  line-height: 1.8;
  text-align: center;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero entrance animations (triggered by JS after intro loader) */
.hero-badge,
.hero-title,
.hero-sub,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-badge.visible { opacity: 1; transform: translateY(0); }
.hero-title.visible { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.hero-sub.visible { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hero-buttons.visible { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════ QUESTIONNAIRE ═══════════════ */
.questionnaire-section {
  position: relative;
  z-index: 2;
  padding: 80px 0 var(--section-pad);
}
.questionnaire-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.questionnaire-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-brand);
}
.questionnaire-header {
  text-align: center;
  margin-bottom: 40px;
}
.questionnaire-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.questionnaire-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.q-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.q-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  transition: background 0.4s;
}
.q-progress-step.active {
  background: var(--gradient-brand);
}
.q-progress-step.done {
  background: var(--cyan-accent);
}
.q-step {
  display: none;
  animation: qStepIn 0.4s ease forwards;
}
.q-step.active {
  display: block;
}
@keyframes qStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.q-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.q-step-num {
  font-size: 0.75rem;
  color: var(--purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  text-align: center;
}
.q-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.q-option {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.92rem;
  font-weight: 500;
}
.q-option:hover {
  border-color: var(--border-glass);
  background: var(--bg-glass);
}
.q-option.selected {
  border-color: var(--purple-core);
  background: rgba(123, 47, 242, 0.12);
  box-shadow: 0 0 20px rgba(123, 47, 242, 0.15);
}
.q-option-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}
.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.q-nav .btn { min-width: 140px; justify-content: center; }
.q-back, .q-back-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.q-back:hover {
  border-color: var(--border-glass);
  color: var(--text-primary);
}

/* Questionnaire contact step */
.q-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.q-contact-grid .form-group:first-child {
  grid-column: 1 / -1;
}
.q-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.q-success.show { display: block; }
.q-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.1);
  border: 2px solid var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.q-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.q-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ═══════════════ ABOUT ═══════════════ */
.about { background: var(--bg-deep); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.about-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.4s;
}
.about-card:hover { transform: translateY(-4px); border-color: rgba(123, 47, 242, 0.3); }
.about-card:hover::before { opacity: 1; }
.about-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(123, 47, 242, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--purple-light);
  border: 1px solid rgba(123, 47, 242, 0.15);
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(123, 47, 242, 0.03);
  transition: border-color 0.3s;
}
.stat-item:hover { border-color: var(--border-glass); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ═══════════════ SERVICES ═══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 47, 242, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.6;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  padding: 5px 14px;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(123, 47, 242, 0.08);
  border: 1px solid rgba(123, 47, 242, 0.12);
  color: var(--text-secondary);
}

/* ═══════════════ PROCESS ═══════════════ */
.process { background: var(--bg-deep); }
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(8.33%);
  right: calc(8.33%);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-core), var(--cyan-accent));
  opacity: 0.3;
}
.process-step {
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.process-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-abyss);
  border: 2px solid var(--purple-core);
  margin: 30px auto 24px;
  position: relative;
  z-index: 1;
  transition: all 0.4s;
}
.process-step:hover .process-dot {
  background: var(--purple-core);
  box-shadow: 0 0 20px var(--purple-glow);
  transform: scale(1.3);
}
.process-step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 2px;
  opacity: 0.5;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════ PORTFOLIO ═══════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-glow);
}
.portfolio-preview {
  display: block;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #0e0e18;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s;
}
.portfolio-card:hover .portfolio-preview {
  transform: scale(1.02);
}
.portfolio-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.portfolio-browser-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.portfolio-browser-bar .dot:first-child { background: #ff5f57; }
.portfolio-browser-bar .dot:nth-child(2) { background: #ffbd2e; }
.portfolio-browser-bar .dot:nth-child(3) { background: #28c940; }
.portfolio-browser-url {
  margin-left: 12px;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.05);
  padding: 4px 14px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}
.portfolio-browser-content {
  padding: 16px;
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.portfolio-browser-content::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40px;
  background: linear-gradient(to top, #0e0e18, transparent);
  pointer-events: none;
}
/* Portfolio site mockup shared styles */
.psite-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.psite-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: var(--text-primary);
}
.psite-nav-links { font-size: 0.6rem; color: var(--text-tertiary); }
.psite-hero h4 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 4px;
}
.psite-hero p { font-size: 0.65rem; color: var(--text-tertiary); }
.psite-cards {
  display: flex; gap: 8px; margin-top: auto;
}
.psite-card {
  flex: 1; height: 50px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.psite-products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto;
}
.psite-product {
  height: 45px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
/* Portfolio with real screenshot image */
.portfolio-site-img {
  padding: 0 !important;
  height: calc(100% - 38px) !important;
}
.portfolio-site-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.portfolio-info {
  padding: 28px;
}
.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(123, 47, 242, 0.12);
  color: var(--purple-light);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: gap 0.3s;
}
.portfolio-link:hover { gap: 14px; }

/* ═══════════════ TECH ═══════════════ */
.tech { background: var(--bg-deep); }
.tech-marquee-wrapper {
  overflow: hidden;
  margin-top: 48px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.tech-marquee {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.tech-marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech-item {
  padding: 20px 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.tech-item:hover {
  border-color: var(--border-glass);
  background: var(--bg-glass);
}
.tech-item-icon {
  font-size: 1.4rem;
}

/* ═══════════════ TESTIMONIALS ═══════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s;
  position: relative;
}
.testimonial-card:hover { border-color: var(--border-glass); transform: translateY(-4px); }
.testimonial-quote {
  font-size: 2rem;
  color: var(--purple-core);
  opacity: 0.4;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ═══════════════ FAQ ═══════════════ */
.faq { background: var(--bg-deep); }
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
  font-family: var(--font-body);
  cursor: pointer;
}
.faq-question:hover { color: var(--purple-light); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(123, 47, 242, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(123, 47, 242, 0.2);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══════════════ CTA BANNER ═══════════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner-inner {
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(123, 47, 242, 0.2), rgba(0, 229, 204, 0.08));
  border: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(123, 47, 242, 0.15) 0%, transparent 50%);
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(5%, 5%); }
}
.cta-banner-inner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact { background: var(--bg-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  height: fit-content;
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-info-card > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(123, 47, 242, 0.1);
  border: 1px solid rgba(123, 47, 242, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-group label .required {
  color: var(--purple-light);
}
.form-group label .optional {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.85em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-core);
  box-shadow: 0 0 0 3px rgba(123, 47, 242, 0.15);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
}
.form-error-msg {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}
.form-group.has-error .form-error-msg {
  display: block;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(240,238,246,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option {
  background: var(--bg-deep);
  color: var(--text-primary);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--purple-core);
  flex-shrink: 0;
}
.form-checkbox label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.form-checkbox a {
  color: var(--purple-light);
  text-decoration: underline;
}
.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.1);
  border: 2px solid var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: rgba(123, 47, 242, 0.15);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--purple-light); }

/* ═══════════════ COOKIE BANNER ═══════════════ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 48px);
  max-width: 520px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--cookie-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-banner a { color: var(--purple-light); text-decoration: underline; }
.cookie-buttons {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}
.cookie-accept {
  background: var(--gradient-brand);
  color: #fff;
}
.cookie-decline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.cookie-decline:hover { border-color: var(--border-glass); }

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--purple-glow);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

/* ═══════════════ SHOWCASE ═══════════════ */
.showcase { background: var(--bg-deep); overflow: hidden; }
.showcase-intro {
  text-align: center;
  margin-bottom: 64px;
}

/* Filter tabs */
.showcase-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 60px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover {
  border-color: var(--border-glass);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.showcase-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 100%;
  box-sizing: border-box;
}
.showcase-grid-3 > * {
  min-width: 0;
  max-width: 100%;
}
.showcase-device {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  cursor: pointer;
  will-change: transform;
}
.showcase-device:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-glass);
  box-shadow: 0 20px 60px rgba(123, 47, 242, 0.2);
}
.showcase-device-bar {
  height: 36px;
  background: rgba(15, 15, 25, 0.9);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.showcase-device-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.showcase-device-bar .dot:nth-child(1) { background: #ff5f57; }
.showcase-device-bar .dot:nth-child(2) { background: #febc2e; }
.showcase-device-bar .dot:nth-child(3) { background: #28c840; }
.showcase-device-bar .url-bar {
  margin-left: 16px;
  padding: 4px 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  flex: 1;
  max-width: 300px;
}
.showcase-screen {
  padding: 24px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.showcase-label {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.showcase-sublabel {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.showcase-grid-3 > * {
  position: relative;
  cursor: pointer;
}
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: color 0.3s;
  padding: 6px 0;
}
.showcase-link:hover { color: var(--cyan-accent); }

/* ═══════════════ MISC EFFECTS ═══════════════ */
.float-element { position: absolute; pointer-events: none; z-index: 0; }
.float-circle { width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(123, 47, 242, 0.08); animation: floatSpin 20s linear infinite; }
@keyframes floatSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-core), var(--cyan-accent), transparent);
  opacity: 0.3;
  margin: 0;
  position: relative;
  z-index: 2;
}

.logo-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  filter: grayscale(100%) brightness(2);
}
.logo-watermark img { width: 100%; height: auto; }
.logo-watermark.top-right { top: -40px; right: -60px; width: 300px; transform: rotate(12deg); }
.logo-watermark.bottom-left { bottom: -40px; left: -60px; width: 250px; transform: rotate(-8deg); }
.logo-watermark.center { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg); width: 400px; }

.tilt-card { transform-style: preserve-3d; perspective: 1000px; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--gradient-hero);
  z-index: 10000;
  transition: width 0.1s linear;
}

.cursor-trail {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  pointer-events: none;
  z-index: 99997;
  opacity: 0.6;
  will-change: transform, opacity;
  transition: opacity 0.5s ease;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: flex;
}
.page-transition .pt-slice {
  flex: 1;
  background: var(--bg-abyss);
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-transition.active .pt-slice {
  animation: ptSliceUp 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes ptSliceUp {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* Easter Egg */
.easter-egg-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(6, 6, 11, 0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.5s ease; cursor: pointer;
}
.easter-egg-overlay.active { opacity: 1; visibility: visible; }
.easter-egg-text {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800;
  text-align: center; background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: easterPulse 2s ease-in-out infinite;
}
.easter-egg-sub { margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); }
@keyframes easterPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.ee-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ee-particle { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: eeFloat 3s ease-in-out infinite; }
@keyframes eeFloat { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-20vh) scale(1.5); opacity: 0; } }

/* ═══════════════ PAGE HEADER ELEMENTS ═══════════════ */
.page-header-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 60px;
  background: rgba(123, 47, 242, 0.1);
  border: 1px solid rgba(123, 47, 242, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--heading-line-height);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(240, 238, 246, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light-mode .page-header-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(26, 26, 46, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 2;
}
.cta-card {
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(123, 47, 242, 0.2), rgba(0, 229, 204, 0.08));
  border: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(123, 47, 242, 0.15) 0%, transparent 50%);
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════ SECTION HELPERS ═══════════════ */
.section-alt { background: var(--bg-deep); }
.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ═══════════════ ABOUT CARD ICON ═══════════════ */
.about-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(123, 47, 242, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--purple-light);
  border: 1px solid rgba(123, 47, 242, 0.15);
}

/* ═══════════════ FOOTER LINKS ═══════════════ */
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--purple-light); }

/* ═══════════════ MOBILE CONTROLS ═══════════════ */
.mobile-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

/* ═══════════════ NAV CONTROLS ═══════════════ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-toggle-btn:hover {
  background: rgba(123, 47, 242, 0.15);
  border-color: var(--border-glass);
  color: var(--text-primary);
}
.nav-cta {
  margin-left: 8px;
}

/* ═══════════════ BUTTON SIZES ═══════════════ */
.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ═══════════════ EASTER EGG ALIASES ═══════════════ */
.ee-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800;
  text-align: center; background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: easterPulse 2s ease-in-out infinite;
}
.ee-sub { margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); }
.ee-content { position: relative; z-index: 1; }

/* ═══════════════ SHOWCASE IMAGE PREVIEWS ═══════════════ */
.showcase-img-screen {
  padding: 0 !important;
  min-height: 0 !important;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}
.showcase-img-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* ═══════════════ WHATSAPP FLOATING BUTTON ═══════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ═══════════════ SHOWCASE FILTER ANIMATION ═══════════════ */
.showcase-grid-3 > [data-category] {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.showcase-grid-3 > [data-category].filter-hide {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
.showcase-grid-3 > [data-category].filter-show {
  animation: filterFadeIn 0.4s ease forwards;
}
@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-controls { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-title-line { white-space: normal; }
  .hero-typed-wrapper { min-width: 4ch; }
  .hero-sub { font-size: 0.95rem; padding: 0 8px; }
  .hero-content { padding: calc(var(--nav-height) + 20px) 16px 30px; }
  .section { padding: 60px 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-subtitle { font-size: 0.95rem; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .back-to-top { right: 16px; bottom: 20px; width: 40px; height: 40px; font-size: 0.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 20px; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .cta-banner-inner { padding: 40px 20px; }
  .cta-card { padding: 40px 20px; }
  .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .logo-watermark { display: none; }
  .whatsapp-float { bottom: 16px; left: 16px; width: 48px; height: 48px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .showcase-grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .showcase-device { margin-bottom: 8px; }
  .showcase-screen { padding: 16px; min-height: 260px; }
  .nav-logo img { height: 50px; }
  .intro-loader-logo { width: 160px; }
  .intro-loader-text { font-size: 1.1rem; }
  .container { padding: 0 16px; }
  .questionnaire-card { padding: 32px 20px; }
  .q-options { grid-template-columns: 1fr 1fr; }
  .q-contact-grid { grid-template-columns: 1fr; }
  .page-header { padding: calc(var(--nav-height) + 40px) 0 40px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .cookie-banner { padding: 16px; }
  .cookie-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
  .showcase-screen { padding: 12px; min-height: 240px; }
  .contact-info-card { padding: 24px 16px; }
  .q-options { grid-template-columns: 1fr; }
  .q-nav { flex-direction: column; }
  .q-nav .btn { width: 100%; }
}
