/* =========================================================================
   CARDLIO DESIGN SYSTEM & CSS UTILITIES
   Fonts: 'DM Serif Display' & 'Manrope'
   ========================================================================= */

:root {
  /* App Theme Color Tokens */
  --bg-porcelain: #F7F4F0;
  --bg-surface: #FFFFFF;
  --header-bg: #2A1FA8;
  --accent-indigo: #4B3FEE;
  --accent-violet: #7C6FFB;
  --action-bg: #EDE9FF;
  --action-fg: #4B3FEE;
  
  --text-primary: #0D0C15;
  --text-secondary: #3D3C54;
  --text-muted: #7A798F;
  --divider-color: #EAE7E2;
  
  --card-radius: 28px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-porcelain);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Typography & Helpers ─── */
.font-serif {
  font-family: var(--font-serif);
}

.italic {
  font-style: italic;
}

.text-gradient {
  background: linear-gradient(135deg, #4B3FEE 0%, #7C6FFB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #7C6FFB 0%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-white { color: #FFFFFF !important; }
.text-muted { color: var(--text-muted) !important; }
.center { text-align: center; }

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

/* ─── Ambient Mesh Gradient Glow ─── */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.15;
}

.glow-1 {
  top: -100px;
  left: 20%;
  background: #BFB4F5;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-2 {
  top: 400px;
  right: 10%;
  background: #4B3FEE;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.2); }
}

/* =========================================================================
   HEADER NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 231, 226, 0.8);
  transition: all 0.3s ease;
}

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

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand-logo-link:hover {
  transform: scale(1.03);
}

.brand-logo-header-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.footer-logo-capsule {
  background: #FFFFFF;
  padding: 8px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo-footer-img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--text-primary);
  color: #FFFFFF;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(13, 12, 21, 0.15);
}

.btn-header-cta:hover {
  background: var(--accent-indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(75, 63, 238, 0.3);
}

/* =========================================================================
   SECTION 1: HERO SECTION
   ========================================================================= */
.hero-section {
  padding: 80px 0 100px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* Left Column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #EDE9FF;
  border: 1px solid rgba(75, 63, 238, 0.25);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-indigo);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 0 0 rgba(75, 63, 238, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(75, 63, 238, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(75, 63, 238, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(75, 63, 238, 0); }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary-3d {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3D2FD9 0%, #8A56F7 100%);
  color: #FFFFFF;
  border-radius: 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(75, 63, 238, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary-3d:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(75, 63, 238, 0.45);
}

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border-radius: 36px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* App Badges */
.app-badges-row {
  margin-bottom: 36px;
}

.app-badges-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.app-badges-group {
  display: flex;
  gap: 14px;
}

.store-pill-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #0D0C15;
  color: #FFFFFF;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(13, 12, 21, 0.2);
}

.store-pill-btn:hover {
  transform: translateY(-3px);
  background: var(--accent-indigo);
  box-shadow: 0 10px 24px rgba(75, 63, 238, 0.35);
}

.store-btn-labels {
  display: flex;
  flex-direction: column;
}

.store-btn-labels .subtext {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.store-btn-labels .maintext {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

/* Micro Metrics */
.micro-metrics {
  display: flex;
  gap: 24px;
  padding-top: 10px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EDE9FF;
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-info strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Right Column (Hero 3D Stage) */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  perspective: 1200px;
}

/* Spatial Badges orbiting */
.spatial-badge {
  position: absolute;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(42, 31, 168, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.badge-a {
  top: 20px;
  left: -35px;
  transform: translateZ(50px);
}

.badge-b {
  bottom: 80px;
  right: -35px;
  transform: translateZ(60px);
}

.badge-c {
  top: 140px;
  right: -25px;
  transform: translateZ(40px);
}

.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

/* 3D Hero Card Wrapper & Inner */
.card-3d-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  cursor: grab;
}

.card-3d-wrapper:active {
  cursor: grabbing;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--card-radius);
  box-shadow: 
    0 24px 60px -12px rgba(42, 31, 168, 0.22),
    0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

.card-3d-wrapper.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Card Front & Back */
.card-front, .card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--card-radius);
  background: var(--bg-porcelain);
  overflow-y: hidden;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-front::-webkit-scrollbar { width: 4px; }
.card-front::-webkit-scrollbar-thumb {
  background: rgba(75, 63, 238, 0.15);
  border-radius: 4px;
}

.glare-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

/* Front Card Content */
.profile-cover {
  position: relative;
  height: 130px;
  width: 100%;
  background: linear-gradient(135deg, var(--header-bg) 0%, rgba(75, 63, 238, 0.9) 100%);
}

.company-pill {
  position: absolute;
  top: 16px;
  left: 20px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.nfc-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.avatar-wrapper {
  position: absolute;
  bottom: -40px;
  left: 20px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3.5px solid var(--bg-porcelain);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--accent-indigo);
  overflow: hidden;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header {
  padding: 50px 20px 0 20px;
}

.first-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.last-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent-indigo);
  line-height: 1.05;
}

.designation {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
}

.company-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-indigo);
  margin-top: 2px;
}

.accent-line {
  width: 48px;
  height: 2px;
  background-color: var(--accent-indigo);
  opacity: 0.7;
  margin: 14px 20px;
  border-radius: 2px;
}

.quick-actions-row {
  display: flex;
  gap: 10px;
  padding: 0 20px 16px 20px;
  overflow-x: auto;
}

.action-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  background: var(--action-bg);
  color: var(--action-fg);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.action-pill:hover {
  background: var(--accent-indigo);
  color: white;
  transform: translateY(-2px);
}

.action-pill.chat {
  background: #DCFCE7;
  color: #16A34A;
}

.section-divider {
  height: 1px;
  background: var(--divider-color);
  margin: 6px 20px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 12px 20px 8px 20px;
}

.about-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 20px 6px 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  padding: 4px 20px 6px 20px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--action-bg);
  color: var(--action-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.bottom-actions {
  padding: 10px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-save-contact {
  height: 50px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(75, 63, 238, 0.3);
  transition: all 0.2s;
}

.btn-save-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(75, 63, 238, 0.4);
}

.btn-flip-card {
  height: 46px;
  border-radius: 23px;
  background: white;
  border: 1.5px solid var(--divider-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-flip-card:hover {
  background: #F0ECE7;
}

/* Card Back */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F4F0 100%);
}

.qr-box {
  background: white;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(42, 31, 168, 0.12);
  border: 1px solid var(--divider-color);
  margin-bottom: 20px;
  position: relative;
}

.qr-box img {
  width: 170px;
  height: 130px;
  display: block;
}

.pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 2px dashed rgba(75, 63, 238, 0.4);
  animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

.hero-card-hint {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================================
   SECTION 2: EXPLODED CARD ARCHITECTURE (GSAP SCROLLTRIGGER)
   ========================================================================= */
.exploded-section {
  position: relative;
  min-height: 100vh;
  background: #0D0C15;
  color: #FFFFFF;
  overflow: hidden;
  padding: 100px 0;
}

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

.section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #7C6FFB;
  margin-bottom: 12px;
}

.section-tag.dark-tag { color: #00D2FF; }

.section-title-large {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.exploded-stage {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.exploded-card-stack {
  position: relative;
  width: 320px;
  height: 480px;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.2s ease-out;
}

/* Common Layer Styles */
.exploded-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 24px;
}

.layer-badge-tag {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  text-transform: uppercase;
}

.layer-badge-tag.dark { background: rgba(75, 63, 238, 0.15); color: #4B3FEE; }
.layer-badge-tag.cyan { background: rgba(0, 210, 255, 0.15); color: #00D2FF; }
.layer-badge-tag.gold { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }

/* LAYER 1: Bottom NFC Antenna & Smart Chip */
.layer-1 {
  background: #0F0D1C;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circuit-traces-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nfc-chip-unit {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.chip-die {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
  animation: pulseChip 3s infinite alternate;
}

@keyframes pulseChip {
  0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.9); }
}

.chip-title {
  font-size: 13px;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: 0.5px;
}

.chip-sub {
  font-size: 11px;
  color: #D97706;
  font-weight: 600;
}

/* LAYER 2: Middle-Back Cloud QR & Security */
.layer-2 {
  background: #161329;
  border: 1.5px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 210, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.matrix-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 210, 255, 0.2) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.security-status-node {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.qr-outline-box {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(0, 210, 255, 0.08);
  border: 1.5px dashed rgba(0, 210, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
}

.security-text-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #00D2FF;
  max-width: 220px;
  line-height: 1.4;
}

/* LAYER 3: Core Profile Card */
.layer-3 {
  background: #F7F4F0;
  color: #0D0C15;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px;
}

.layer-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.mini-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #4B3FEE;
  background: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80') center/cover;
}

.mini-name {
  font-size: 20px;
  font-weight: 800;
  color: #0D0C15;
  line-height: 1.1;
}

.mini-title {
  font-size: 12.5px;
  color: #4B3FEE;
  font-weight: 700;
  margin-top: 2px;
}

.mini-company {
  font-size: 11px;
  color: #7A798F;
  font-weight: 600;
}

.mini-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.mini-pill.primary {
  padding: 8px 16px;
  background: #EDE9FF;
  color: #4B3FEE;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* LAYER 4: Crystal Glass Coating (No blur!) */
.layer-4 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.glass-glare-sweep {
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: glareSweep 5s infinite;
}

.glass-watermark-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 40px;
}

.coating-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

/* Callout Annotations & Connector Lines */
.callout-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.annotation-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 320px;
  z-index: 50;
}

.item-4 { top: 120px; left: calc(50% - 540px); }
.item-3 { top: 300px; left: calc(50% - 540px); }
.item-2 { top: 120px; right: calc(50% - 540px); }
.item-1 { top: 300px; right: calc(50% - 540px); }

.annotation-card {
  background: rgba(18, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 20px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  flex: 1;
}

.annotation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #7C6FFB;
  margin-bottom: 6px;
}

.annotation-text {
  font-size: 12.5px;
  color: #ADABBF;
  line-height: 1.45;
}

/* Connector Lines & Dots */
.connector-line {
  position: relative;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #7C6FFB, rgba(124, 111, 251, 0.2));
}

.dot-target {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7C6FFB;
  box-shadow: 0 0 12px #7C6FFB;
}

.line-4 .dot-target, .line-2 .dot-target { left: -5px; }
.line-3 .dot-target, .line-1 .dot-target { right: -5px; }
  font-size: 12px;
  color: #ADABBF;
  line-height: 1.4;
}

/* =========================================================================
   SECTION 3: 3D TEMPLATE SHOWCASE
   ========================================================================= */
.templates-section {
  padding: 100px 0;
  background: #F7F4F0;
  position: relative;
}

.carousel-3d-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  margin: 40px 0;
  perspective: 1200px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--divider-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.carousel-nav-btn:hover {
  background: var(--accent-indigo);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(75, 63, 238, 0.3);
}

.carousel-nav-btn.prev { left: 40px; }
.carousel-nav-btn.next { right: 40px; }

.carousel-3d-track {
  position: relative;
  width: 320px;
  height: 480px;
  transform-style: preserve-3d;
}

/* Template Cards inside Carousel */
.template-card-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.card-inner-box {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: background 0.4s ease, color 0.4s ease;
}

/* 8 Template Specific Styling */
.style-signature { background: #F7F4F0; color: #0D0C15; }
.style-executive { background: #12111A; color: #FFFFFF; border-color: #D97706; }
.style-aura { background: linear-gradient(135deg, #2E1065 0%, #0369A1 100%); color: #FFFFFF; }
.style-grid { background: #FFFFFF; color: #000000; border: 2px solid #000000; }
.style-kinetic { background: #0F172A; color: #A3E635; }
.style-editorial { background: #FFFDF9; color: #292524; }
.style-orbit { background: #0B0F19; color: #38BDF8; }
.style-monogram { background: #1C1917; color: #F59E0B; }

.tmpl-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.tmpl-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(124, 111, 251, 0.3) url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80') center/cover;
}

.tmpl-name {
  font-size: 24px;
  font-weight: 800;
  margin-top: 12px;
}

.tmpl-role {
  font-size: 13px;
  opacity: 0.8;
}

.tmpl-divider {
  height: 2px;
  width: 40px;
  background: currentColor;
  opacity: 0.4;
  margin: 12px 0;
}

.tmpl-actions {
  display: flex;
  gap: 8px;
}

.tmpl-actions span {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
}

/* Controls Bar */
.template-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--divider-color);
}

.palette-switcher-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.switcher-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.swatch-bubbles-group {
  display: flex;
  gap: 10px;
}

.swatch-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.swatch-bubble.active {
  border-color: var(--accent-indigo);
  transform: scale(1.15);
}

.swatch-color {
  flex: 1;
  height: 100%;
}

.btn-flip-tmpl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--action-bg);
  color: var(--action-fg);
  border: none;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flip-tmpl:hover {
  background: var(--accent-indigo);
  color: #FFFFFF;
}

/* =========================================================================
   SECTION 4: ANALYTICS SECTION (DARK LUXURY SLAB)
   ========================================================================= */
.analytics-section {
  padding: 120px 0;
  background: #09080F;
  position: relative;
}

.dark-analytics-slab {
  position: relative;
  background: #0D0C15;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 48px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.slab-ambient-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 111, 251, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.metric-counters-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.counter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 20px;
}

.counter-number, .counter-number-pct {
  font-size: 36px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 13px;
  color: #7A798F;
  font-weight: 600;
}

.badge-up {
  display: inline-block;
  font-size: 11px;
  color: #10B981;
  font-weight: 700;
  margin-left: 4px;
}

.sub-label {
  display: block;
  font-size: 11px;
  color: #525166;
}

/* 3D Chart */
.chart-3d-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

.chart-legend {
  font-size: 12px;
  color: #7A798F;
  display: flex;
  gap: 16px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.views { background: #7C6FFB; }
.legend-dot.saves { background: #00D2FF; }

.chart-svg {
  width: 100%;
  height: auto;
}

/* Live Simulation Stage */
.simulation-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.ripple-wave {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(124, 111, 251, 0.25);
  animation: ripplePulse 4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.wave-2 { animation-delay: 1.3s; }
.wave-3 { animation-delay: 2.6s; }

@keyframes ripplePulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.sim-phone {
  position: relative;
  z-index: 5;
  width: 250px;
  height: 440px;
  background: #000000;
  border-radius: 36px;
  border: 4px solid #222030;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  padding: 12px;
}

.sim-phone-screen {
  background: #121020;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  padding: 16px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sim-notch {
  width: 60px;
  height: 12px;
  background: #000000;
  border-radius: 10px;
  margin: 0 auto 14px auto;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #7A798F;
  margin-bottom: 16px;
}

.live-dot { color: #10B981; }

.sim-notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-notif-card {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(10px);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.sim-notif-card.active {
  transform: translateY(0);
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.notif-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.notif-icon-box.green { background: #10B981; }
.notif-icon-box.purple { background: #7C6FFB; }
.notif-icon-box.cyan { background: #00D2FF; }

.notif-content { flex: 1; }

.notif-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
}

.notif-desc {
  font-size: 9.5px;
  color: #ADABBF;
  line-height: 1.3;
}

.notif-time {
  font-size: 8px;
  color: #7A798F;
  margin-top: 2px;
}

/* Section Scroll Margins for Sticky Header */
section[id] {
  scroll-margin-top: 100px;
}

/* =========================================================================
   SECTION 5: 3D PRICING SECTION
   ========================================================================= */
.pricing-section {
  padding: 100px 0 120px 0;
  background: #F7F4F0;
  position: relative;
  scroll-margin-top: 100px;
}

.pricing-grid-3d {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 980px;
  width: 100%;
  margin: 40px auto 0 auto;
  align-items: stretch;
  perspective: 1200px;
}

/* Free Plan */
.pricing-card-3d.free-plan {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 44px 36px;
  border: 1px solid var(--divider-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.plan-tier.vip { color: #7C6FFB; }

.plan-price-block {
  margin: 12px 0 8px 0;
  display: flex;
  align-items: baseline;
}

.plan-price-block .currency {
  font-size: 24px;
  font-weight: 800;
}

.plan-price-block .amount {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.plan-price-block .period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 6px;
}

.plan-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.plan-divider {
  height: 1px;
  background: var(--divider-color);
  margin: 24px 0;
}

.plan-divider.pro { background: rgba(255, 255, 255, 0.12); }

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-icon { color: var(--accent-indigo); }

.btn-free-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 26px;
  background: var(--bg-porcelain);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--divider-color);
  transition: all 0.25s ease;
}

.btn-free-plan:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

/* PRO PLAN 3D VIP CARD */
.pricing-card-3d.pro-plan {
  position: relative;
  background: #121026;
  color: #FFFFFF;
  border-radius: 32px;
  padding: 3px; /* Border gap */
  box-shadow: 0 24px 70px rgba(75, 63, 238, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  cursor: pointer;
  display: flex;
}

.border-glow-beam {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: conic-gradient(
    from 0deg,
    #4B3FEE,
    #7C6FFB,
    #00D2FF,
    #4B3FEE
  );
  animation: spinBeam 6s linear infinite;
}

@keyframes spinBeam {
  to { transform: rotate(360deg); }
}

.pro-card-content {
  position: relative;
  z-index: 2;
  background: #121026;
  border-radius: 30px;
  padding: 44px 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 16px;
}

.plan-features-list.pro li {
  color: #E2E8F0;
}

.check-icon-pro {
  color: #00D2FF;
}

.btn-pro-liquid {
  position: relative;
  width: 100%;
  height: 54px;
  border-radius: 27px;
  border: none;
  background: linear-gradient(135deg, #3D2FD9 0%, #8A56F7 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(75, 63, 238, 0.4);
  transition: transform 0.25s ease;
}

.btn-pro-liquid:hover {
  transform: translateY(-2px);
}

.liquid-bg {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00D2FF;
  border-radius: 50% 50% 0 0;
  transition: all 0.5s ease;
}

.btn-pro-liquid:hover .liquid-bg {
  top: 0;
  border-radius: 0;
}

.btn-pro-text {
  position: relative;
  z-index: 2;
}

.metallic-sheen {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

/* =========================================================================
   CTA BANNER & FOOTER
   ========================================================================= */
.cta-banner-section {
  padding: 80px 0;
  background: #F7F4F0;
}

.cta-banner-box {
  background: linear-gradient(135deg, #121026 0%, #2A1FA8 100%);
  border-radius: 36px;
  padding: 60px 40px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 60px rgba(42, 31, 168, 0.25);
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 16px;
  color: #ADABBF;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #0D0C15;
  color: #FFFFFF;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-desc {
  font-size: 13.5px;
  color: #7A798F;
  line-height: 1.6;
  margin: 16px 0;
  max-width: 320px;
}

.operator-tag {
  font-size: 12px;
  color: #525166;
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #7A798F;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #7C6FFB;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #525166;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
}

.footer-bottom-links a {
  color: #7A798F;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid-3d {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .metric-counters-row { grid-template-columns: 1fr; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .spatial-badge { display: none; }
  .callout-annotations { display: none; }
}

/* =========================================================================
   LEGAL PAGES & STATIC CONTENT STYLING (Privacy, Terms, Refund)
   ========================================================================= */
.page-header-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(135deg, #121026 0%, #2A1FA8 100%);
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.last-updated {
  font-size: 14px;
  color: #ADABBF;
}

.legal-content-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 16px 48px rgba(13, 12, 21, 0.06);
  border: 1px solid var(--divider-color);
  margin-bottom: 80px;
}

.legal-content-card h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 32px 0 14px 0;
}

.legal-content-card p, .legal-content-card ul, .legal-content-card ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content-card ul, .legal-content-card ol {
  padding-left: 24px;
}

.legal-content-card li {
  margin-bottom: 8px;
}

.contact-box, .highlight-box {
  background: #F7F4F0;
  border-left: 4px solid var(--accent-indigo);
  padding: 24px;
  border-radius: 0 16px 16px 0;
  margin: 24px 0;
}

.contact-box p, .highlight-box p {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7C6FFB;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}

.nav-back:hover {
  color: #4B3FEE;
}
