/* ============================================
   KYVERA DIGITAL — Professional Website Styles
   ============================================ */

:root {
  --bg-primary: #030508;
  --bg-secondary: #0a0f1a;
  --bg-card: rgba(10, 18, 35, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --blue-primary: #00a8ff;
  --blue-secondary: #0066ff;
  --blue-glow: #00d4ff;
  --cyan: #00e5ff;
  --text-primary: #f0f4ff;
  --text-secondary: #8b9cb8;
  --text-muted: #5a6a85;
  --gradient-main: linear-gradient(135deg, #00a8ff 0%, #0066ff 50%, #00e5ff 100%);
  --gradient-text: linear-gradient(135deg, #00d4ff 0%, #00a8ff 40%, #ffffff 100%);
  --shadow-glow: 0 0 40px rgba(0, 168, 255, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 168, 255, 0.15);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--blue-primary); }

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  width: 180px;
  margin: 0 auto 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 12px;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: 3px;
  animation: load-progress 1.8s ease forwards;
}

.loader-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes load-progress {
  to { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(0,168,255,0.3)); }
  50% { filter: drop-shadow(0 0 30px rgba(0,168,255,0.6)); }
}

/* ---- Particles Canvas ---- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-main);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 168, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 168, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 25px rgba(0, 168, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 168, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--blue-primary);
  background: rgba(0, 168, 255, 0.08);
  transform: translateY(-3px);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 102, 255, 0.15);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.1);
  bottom: -100px;
  left: -100px;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(0, 168, 255, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: orbit-spin 30s linear infinite;
}

.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(0, 168, 255, 0.05);
  border-radius: 50%;
}

@keyframes orbit-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--blue-glow);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(0, 168, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--blue-glow);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-glass);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-glow);
}

.hero-stat-suffix {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-primary);
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 255, 0.15);
}

.frame-ring-1 {
  inset: 0;
  animation: ring-pulse 4s ease-in-out infinite;
}

.frame-ring-2 {
  inset: 30px;
  border-color: rgba(0, 168, 255, 0.1);
  animation: ring-pulse 4s ease-in-out infinite 1s;
}

.frame-ring-3 {
  inset: 60px;
  border-color: rgba(0, 212, 255, 0.08);
  animation: ring-pulse 4s ease-in-out infinite 2s;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.6; }
}

.hero-logo {
  width: 280px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(0, 168, 255, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
}

.floating-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-glow);
}

.icon-chart {
  top: 20px;
  left: 0;
  animation: float-icon 5s ease-in-out infinite;
}

.icon-rocket {
  bottom: 40px;
  right: -10px;
  animation: float-icon 5s ease-in-out infinite 2s;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: fade-bounce 2s ease infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--blue-primary);
  border-radius: 3px;
  animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ---- Trust Bar ---- */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.trust-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.trust-items {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.trust-items span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
  transition: var(--transition);
}

.trust-items span:hover { color: var(--blue-primary); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Services ---- */
.services { background: var(--bg-primary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 168, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

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

.service-card.featured {
  border-color: rgba(0, 168, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 168, 255, 0.04) 100%);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--gradient-main);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-glow);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-features {
  margin-bottom: 20px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-primary);
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-glow);
}

.service-link:hover { color: #fff; }

/* ---- About ---- */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.about-card-stack {
  position: relative;
  width: 300px;
  height: 350px;
}

.about-card {
  position: absolute;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.about-card:hover { transform: translateY(-5px) !important; }

.about-card-1 {
  top: 0;
  left: 0;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.about-card-2 {
  top: 100px;
  left: 80px;
  z-index: 2;
  animation: float 6s ease-in-out infinite 2s;
}

.about-card-3 {
  top: 200px;
  left: 20px;
  z-index: 1;
  animation: float 6s ease-in-out infinite 4s;
}

.about-card-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.about-card strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--blue-glow);
  display: block;
}
.about-card small { font-size: 0.8rem; color: var(--text-muted); }

.about-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0, 102, 255, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(0, 168, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-glow);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ---- Process ---- */
.process { background: var(--bg-primary); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-secondary), var(--blue-glow), var(--blue-secondary));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border: 2px solid rgba(0, 168, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-glow);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.process-step:hover .process-number {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.process-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Portfolio ---- */
.portfolio { background: var(--bg-secondary); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.portfolio-item:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.15);
}

.portfolio-image {
  position: relative;
  height: 320px;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 200), 60%, 15%) 0%,
    hsl(var(--hue, 200), 80%, 25%) 50%,
    hsl(calc(var(--hue, 200) + 20), 70%, 20%) 100%
  );
  transition: var(--transition);
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 168, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
}

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 168, 255, 0.03) 2px,
    rgba(0, 168, 255, 0.03) 4px
  );
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(transparent 40%, rgba(3, 5, 8, 0.9));
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.02);
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(transparent 20%, rgba(3, 5, 8, 0.95));
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 168, 255, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-glow);
  margin-bottom: 8px;
  width: fit-content;
}

.portfolio-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.portfolio-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  z-index: 1;
}

.portfolio-icon svg {
  width: 100%;
  height: 100%;
}

.portfolio-item:hover .portfolio-icon {
  color: rgba(0, 212, 255, 0.35);
  transform: translate(-50%, -65%) scale(1.1);
}

.portfolio-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-glow);
  width: fit-content;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-visit {
  background: rgba(0, 168, 255, 0.3);
  border-color: var(--blue-glow);
  transform: translateX(4px);
}

/* ---- Testimonials ---- */
.testimonials { background: var(--bg-primary); }

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(0, 168, 255, 0.2);
  transform: translateY(-5px);
}

.testimonial-stars {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  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: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- FAQ ---- */
.faq { background: var(--bg-secondary); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(0, 168, 255, 0.25);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item p a {
  color: var(--blue-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item p a:hover { color: #fff; }

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.cta-banner-inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-banner-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.15);
  border-radius: 50%;
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-banner-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner-inner .btn {
  position: relative;
  z-index: 1;
}

/* ---- Contact ---- */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-detail:hover {
  border-color: rgba(0, 168, 255, 0.2);
  background: rgba(0, 168, 255, 0.05);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0, 168, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-glow);
}

.contact-detail span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-detail strong {
  font-size: 0.95rem;
}

.contact-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.social-link:hover {
  background: var(--gradient-main);
  border-color: transparent;
  transform: translateY(-3px);
}

.social-link:hover svg { color: #fff; }

/* ---- WhatsApp CTA ---- */
.whatsapp-cta {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.whatsapp-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.whatsapp-cta-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.whatsapp-cta-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.whatsapp-cta-header h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.whatsapp-cta-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.whatsapp-message-preview {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.whatsapp-message-preview::before {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(37, 211, 102, 0.08);
  border-right: 1px solid rgba(37, 211, 102, 0.15);
  border-bottom: 1px solid rgba(37, 211, 102, 0.15);
  transform: rotate(45deg);
}

.whatsapp-preview-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #25d366;
  margin-bottom: 10px;
}

.whatsapp-message-preview p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.whatsapp-benefits {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.whatsapp-benefits li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.whatsapp-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.social-link-whatsapp:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

/* ---- Form ---- */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9cb8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--blue-glow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a:hover { color: var(--blue-glow); }

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .hero-logo-frame { width: 280px; height: 280px; }
  .hero-logo { width: 200px; }
  .hero-orbit { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { min-height: auto; }
  .about-card-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 500px;
    height: auto;
  }
  .about-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    animation: none !important;
  }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-timeline::before { display: none; }
  .testimonials-slider { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .container { padding: 0 20px; }

  .nav-logo span {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .nav-logo img {
    width: 36px;
    height: 36px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100dvh;
    height: 100vh;
    background: rgba(3, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 24px) 24px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-glass);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open { right: 0; }
  .nav-link {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-cta { text-align: center; justify-content: center; margin-top: 8px; }
  .nav-toggle {
    display: flex;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 32px) 0 60px;
  }

  .hero-glow-1 { width: 300px; height: 300px; }
  .hero-glow-2 { width: 200px; height: 200px; }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-title { font-size: clamp(1.65rem, 7vw, 2rem); }
  .hero-description { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
  }
  .hero-stat { text-align: center; min-width: 90px; }
  .hero-stat-divider { display: none; }

  .scroll-indicator { display: none; }

  .trust-bar { padding: 28px 0; }
  .trust-label { font-size: 0.7rem; letter-spacing: 2px; }
  .trust-items { gap: 32px; }
  .trust-items span { font-size: 0.8rem; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section-subtitle { font-size: 0.95rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }

  .about-card-stack {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-image { height: 260px; }
  .portfolio-overlay { padding: 24px; }

  .process-timeline { grid-template-columns: 1fr; gap: 32px; }
  .process-number { width: 64px; height: 64px; font-size: 1.1rem; }

  .testimonial-card { padding: 28px 22px; }

  .faq-item summary { padding: 16px 18px; font-size: 0.9rem; }
  .faq-item p { padding: 0 18px 16px; font-size: 0.9rem; }

  .cta-banner { padding: 48px 0; }
  .cta-banner-inner { padding: 40px 20px; }
  .cta-banner-inner .btn { width: 100%; justify-content: center; }

  .contact-detail { padding: 14px; }
  .contact-detail strong { font-size: 0.88rem; word-break: break-word; }

  .whatsapp-cta { padding: 24px 18px; }
  .whatsapp-cta-header { flex-direction: column; align-items: center; text-align: center; }
  .whatsapp-cta-header h3 { font-size: 1.15rem; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }

  .btn {
    min-height: 48px;
    padding: 14px 28px;
  }

  .btn-lg { padding: 16px 32px; font-size: 1rem; }

  .floating-icon { width: 40px; height: 40px; }
  .floating-icon svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav-logo span { display: none; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-logo-frame { width: 200px; height: 200px; }
  .hero-logo { width: 140px; }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stat-divider {
    display: block;
    width: 48px;
    height: 1px;
  }

  .service-badge { font-size: 0.65rem; padding: 3px 10px; }

  .portfolio-image { height: 220px; }
  .portfolio-overlay h3 { font-size: 1.1rem; }
  .portfolio-visit { font-size: 0.8rem; padding: 6px 14px; }

  .cta-banner-inner h2 { font-size: 1.35rem; }
  .cta-banner-inner p { font-size: 0.95rem; }

  .loader-logo { width: 140px; }
  .loader-bar { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .trust-items { animation: none; }
  #particles-canvas { display: none; }
}

/* ---- Blog ---- */
.blog-preview-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  height: 100%;
}

.blog-card:hover {
  border-color: rgba(0, 168, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.blog-card-image {
  position: relative;
  height: 180px;
  background: linear-gradient(
    135deg,
    hsla(var(--blog-hue, 200), 80%, 45%, 0.25) 0%,
    hsla(var(--blog-hue, 200), 60%, 25%, 0.15) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, hsla(var(--blog-hue, 200), 100%, 60%, 0.2), transparent 60%);
}

.blog-card-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 255, 0.12);
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--blue-primary);
}

.blog-card-icon svg {
  width: 28px;
  height: 28px;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-category {
  padding: 4px 10px;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 20px;
  color: var(--blue-primary);
  font-weight: 500;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: var(--transition);
}

.blog-card:hover .blog-card-title {
  color: var(--blue-primary);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.blog-card-link svg {
  transition: var(--transition);
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(4px);
}

.blog-cta {
  text-align: center;
  margin-top: 48px;
}

.blog-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
  background: var(--bg-primary);
}

.blog-page-header {
  text-align: center;
  margin-bottom: 56px;
}

.blog-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.blog-page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-article-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
  background: var(--bg-primary);
}

.blog-article-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-article-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.blog-article-cover {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 168, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.blog-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-article-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
}

.blog-article-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-primary);
  margin: 36px 0 14px;
}

.blog-article-content h2:first-child {
  margin-top: 0;
}

.blog-article-intro {
  font-size: 1.08rem;
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.blog-article-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.blog-article-content p,
.blog-article-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.blog-article-content ul { list-style: disc; }
.blog-article-content ol { list-style: decimal; }

.blog-article-content a {
  color: var(--blue-primary);
}

.blog-article-content a:hover {
  color: var(--cyan);
}

.blog-article-content strong {
  color: var(--text-primary);
}

.blog-article-cta {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 168, 255, 0.08));
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: var(--radius-lg);
}

.blog-article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.blog-article-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-related {
  max-width: 760px;
  margin: 48px auto 0;
}

.blog-related h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.blog-related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-related-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.blog-related-links a:hover {
  border-color: rgba(0, 168, 255, 0.3);
  color: var(--blue-primary);
}

@media (max-width: 1024px) {
  .blog-preview-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-preview-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-image { height: 150px; }
  .blog-card-body { padding: 20px; }

  .blog-article-content {
    padding: 28px 20px;
  }

  .blog-article-cta {
    padding: 24px 18px;
  }
}

/* ---- Legal Pages ---- */
.legal-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
  background: var(--bg-primary);
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-glass);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-primary);
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--blue-primary);
}

.legal-content a:hover {
  color: var(--cyan);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: var(--transition);
}

.legal-back:hover {
  color: var(--blue-primary);
}

.legal-nav-simple .nav-link.active {
  color: var(--blue-primary);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 28px 20px;
  }
}

/* ============================================
   AGENTE IA — Chat Groq
   ============================================ */

.kyvera-ai-agent {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  z-index: 9999;
  font-family: var(--font-body);
}

.kyvera-ai-toggle {
  position: relative;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 168, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kyvera-ai-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.55);
}

.kyvera-ai-toggle-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.kyvera-ai-toggle-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.kyvera-ai-toggle.active .kyvera-ai-toggle-icon--open {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.kyvera-ai-toggle.active .kyvera-ai-toggle-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.kyvera-ai-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: kyvera-ai-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

.kyvera-ai-toggle.active .kyvera-ai-toggle-pulse {
  animation: none;
  opacity: 0;
}

@keyframes kyvera-ai-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.kyvera-ai-panel {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: min(400px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  background: rgba(8, 14, 28, 0.97);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 168, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.kyvera-ai-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kyvera-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.12) 0%, transparent 100%);
}

.kyvera-ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kyvera-ai-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.kyvera-ai-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.kyvera-ai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.kyvera-ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: kyvera-ai-blink 2s ease-in-out infinite;
}

@keyframes kyvera-ai-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.kyvera-ai-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.kyvera-ai-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.kyvera-ai-close svg {
  width: 18px;
  height: 18px;
}

.kyvera-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 360px;
  scroll-behavior: smooth;
}

.kyvera-ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: kyvera-ai-msg-in 0.3s ease;
}

@keyframes kyvera-ai-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kyvera-ai-msg--user {
  flex-direction: row-reverse;
}

.kyvera-ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
}

.kyvera-ai-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.kyvera-ai-msg--bot .kyvera-ai-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

.kyvera-ai-msg--user .kyvera-ai-msg-bubble {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.25) 0%, rgba(0, 102, 255, 0.2) 100%);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-bottom-right-radius: 4px;
  color: var(--text-primary);
}

.kyvera-ai-msg-bubble--typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
}

.kyvera-ai-msg-bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
  animation: kyvera-ai-typing 1.2s ease-in-out infinite;
}

.kyvera-ai-msg-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.kyvera-ai-msg-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes kyvera-ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.kyvera-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.kyvera-ai-chip {
  border: 1px solid rgba(0, 168, 255, 0.25);
  background: rgba(0, 168, 255, 0.08);
  color: var(--cyan);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.kyvera-ai-chip:hover {
  background: rgba(0, 168, 255, 0.18);
  border-color: rgba(0, 168, 255, 0.45);
}

.kyvera-ai-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
}

.kyvera-ai-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 10px 14px;
  line-height: 1.4;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s ease;
}

.kyvera-ai-form textarea:focus {
  border-color: rgba(0, 168, 255, 0.5);
}

.kyvera-ai-form textarea::placeholder {
  color: var(--text-muted);
}

.kyvera-ai-send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.kyvera-ai-send:hover {
  transform: scale(1.05);
}

.kyvera-ai-send svg {
  width: 18px;
  height: 18px;
}

.kyvera-ai-footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0 16px 12px;
}

.kyvera-ai-footer-note a {
  color: var(--blue-primary);
}

.kyvera-ai-footer-note a:hover {
  color: var(--cyan);
}

@media (max-width: 480px) {
  .kyvera-ai-agent {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }

  .kyvera-ai-toggle {
    width: 56px;
    height: 56px;
  }

  .kyvera-ai-panel {
    width: calc(100vw - 32px);
    bottom: 72px;
    max-height: calc(100vh - 100px);
  }

  .kyvera-ai-messages {
    min-height: 220px;
    max-height: calc(100vh - 340px);
  }

  .kyvera-ai-chip {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* ============================================
   COOKIE CONSENT BANNER (RGPD + Analytics)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 8, 0.85) 30%);
  pointer-events: none;
}

.cookie-banner-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(10, 16, 28, 0.96);
  border: 1px solid rgba(0, 168, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-banner-inner p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary, #a0aec0);
}

.cookie-banner-inner a {
  color: var(--accent, #00a8ff);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}
