:root {
  --bg-color: #030305;
  --primary-color: #6c63ff; /* Beppe core purple */
  --secondary-color: #00e0ff; /* Vibrant Cyan */
  --text-main: #f0f0ff;
  --text-muted: #9494a8;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; position: relative; }

/* Wrapper Container */
.container { max-width: 1400px; width: 100%; margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; max-width: 100%; letter-spacing: -0.02em;}
p { line-height: 1.7; font-size: 16px; color: var(--text-muted); }

/* Beppe OS Authentic Background Grid & Blobs */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(108,99,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(108,99,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.blob { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; pointer-events: none; animation: blobF 12s ease-in-out infinite; opacity: 0.7;}
.blob1 { width: 500px; height: 500px; background: rgba(108,99,255,.15); top: -100px; left: -100px; }
.blob2 { width: 450px; height: 450px; background: rgba(24,119,242,.1); bottom: -100px; right: -50px; animation-delay: 3s; }
.blob3 { width: 400px; height: 400px; background: rgba(0,224,255,.1); top: 50%; left: 50%; transform: translate(-50%,-50%); animation: blobF3 15s ease-in-out 5s infinite; }
@keyframes blobF { 0%, 100% { transform: translateY(0) scale(1) } 50% { transform: translateY(-40px) scale(1.05) } }
@keyframes blobF3 { 0%, 100% { transform: translate(-50%,-50%) scale(1) } 50% { transform: translate(-50%,-55%) scale(1.05) } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: var(--font-heading);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1877f2 100%); color: #fff;
  border: 1px solid rgba(255,255,255,0.1); 
  box-shadow: 0 4px 15px rgba(108,99,255,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108,99,255,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-outline {
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  padding: 24px 5%; 
  transition: all 0.4s ease; border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(3, 3, 5, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
  padding: 16px 5%; border-bottom: 1px solid var(--glass-border);
}

.logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;}
.logo span { background: linear-gradient(135deg, var(--text-main), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* Hero Section */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 140px 5% 60px;
  position: relative; z-index: 1;
}
.hero-content { flex: 1.1; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start;}

.hero-badge { 
  display: inline-flex; align-items: center; gap: 8px; background: rgba(34, 197, 94, 0.08); 
  border: 1px solid rgba(34, 197, 94, 0.2); padding: 6px 14px; border-radius: 20px; 
  font-size: 11px; font-weight: 700; color: #4ade80; letter-spacing: 0.05em; margin-bottom: 30px; 
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

.hero-content h1 { font-size: 68px; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px;}
.hero-content h1 span {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 18px; margin-bottom: 40px; }

.hero-buttons { display: flex; gap: 16px; width: 100%;}

.hero-image { flex: 1.3; display: flex; justify-content: flex-end; position: relative;}
.hero-mockup-wrapper {
  position: relative; width: 100%; max-width: 780px;
  border-radius: 24px; padding: 8px; background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,99,255,0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-mockup-wrapper:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.hero-mockup-wrapper::before {
    content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 25px;
    background: linear-gradient(135deg, rgba(108,99,255,0.5), transparent 40%, rgba(0,224,255,0.3));
    mask-image: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-mockup-wrapper img { width: 100%; height: auto; border-radius: 16px; display: block; }

/* Sections */
.features { padding: 120px 5%; position: relative; z-index: 1;}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 70px; }
.section-header h2 { font-size: 42px; margin-bottom: 16px; letter-spacing: -1px;}
.section-header h2 span { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}

/* Grid Layouts */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid.layout-3 { grid-template-columns: repeat(3, 1fr); }

/* Premium Cards */
.card {
  --brand-color: var(--primary-color);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--glass-border); padding: 40px 32px;
  border-radius: 20px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default; position: relative; overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card-glow {
    position: absolute; width: 120px; height: 120px; background: var(--brand-color);
    top: -40px; right: -40px; filter: blur(60px); opacity: 0; transition: opacity 0.4s; border-radius: 50%;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}
.card:hover .card-glow { opacity: 0.15; }

.card-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 24px; color: var(--brand-color);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.card h3 { font-size: 22px; margin-bottom: 12px; color: #fff;}
.card p { font-size: 14.5px; margin-bottom: 0; }

/* In-Card Feature List */
.feature-list { list-style: none; margin-top: 24px; border-top: 1px solid var(--glass-border); padding-top: 20px;}
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--text-main); font-weight: 500;}
.feature-list li::before { 
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; 
    background: var(--brand-color); box-shadow: 0 0 8px var(--brand-color);
}

/* Gallery Showcase */
.gallery-section { padding: 120px 0; position: relative; z-index: 1;}
.gallery-wrapper { width: 100%; overflow-x: auto; padding: 20px 5% 40px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.gallery-track { display: flex; gap: 32px; width: max-content; }
.gallery-track img {
    height: 480px; width: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); object-fit: contain; transition: transform 0.4s ease, border-color 0.4s;
    background: #000;
}
.gallery-track img:hover { transform: scale(1.02); border-color: rgba(108,99,255,0.4); box-shadow: 0 30px 60px rgba(108,99,255,0.25);}

.gallery-wrapper::-webkit-scrollbar { height: 8px; }
.gallery-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); margin: 0 5%; border-radius: 4px; }
.gallery-wrapper::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); border-radius: 4px; }
.gallery-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,0.6); }

/* Call to Action */
.cta-section { padding: 100px 5%; text-align: center; position: relative; z-index: 1;}
.cta-box { 
    background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,224,255,0.05)); 
    border: 1px solid rgba(255,255,255,0.08); padding: 80px 40px; border-radius: 32px; 
    max-width: 900px; margin: 0 auto; backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.cta-box h2 { font-size: 40px; margin-bottom: 16px; letter-spacing: -1px;}
.cta-box p { font-size: 18px; margin-bottom: 36px; max-width: 600px; margin-inline: auto;}

.register-form {
    display: flex; gap: 12px; max-width: 520px; margin: 0 auto; justify-content: center; align-items: center;
}
.register-input {
    flex: 1; padding: 15px 24px; border-radius: 14px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: var(--font-body);
    font-size: 15px; outline: none; transition: border-color 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.register-input::placeholder { color: rgba(255,255,255,0.3); }
.register-input:focus { border-color: var(--primary-color); background: rgba(108,99,255,0.05); }

/* Footer */
footer { padding: 40px 5%; border-top: 1px solid var(--glass-border); position: relative; z-index: 1; }
footer .copyright { color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.3s; font-weight: 500;}
.footer-links a:hover { color: #fff; }

/* Scroll Anim */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Base */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero { padding-top: 160px; }
  .hero-content { align-items: center; margin-bottom: 60px; max-width: 100%;}
  .hero-content h1 { font-size: 56px; }
  .hero-buttons { justify-content: center; }
  .grid.layout-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .hero-mockup-wrapper { transform: none; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 42px; }
  .nav-links { display: none; }
  header .header-actions .btn-outline { display: none; }
  .register-form { flex-direction: column; }
  .register-input { width: 100%; }
  .register-form .btn { width: 100%; justify-content: center; }
  .cta-box { padding: 50px 24px; }
  .cta-box h2 { font-size: 32px; }
  footer .container { flex-direction: column; gap: 16px; text-align: center; }
}
