:root {
    --bg-light: #fcfcfc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --accent-main: #e2b4bd; /* Soft Rose Gold */
    --accent-secondary: #4f46e5;
    --text-main: #1a1a1a;
    --text-dim: #64748b;
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.04);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.7);
}

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

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-main);
    background: linear-gradient(to right, var(--accent-main), #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 2px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-item {
    position: static; /* Required for Mega Menu to span full width */
    padding: 1.5rem 0;
}

/* 🚀 Mega Menu System */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    padding: 4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.mega-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-main);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mega-links a {
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: block;
}

.mega-links a:hover {
    color: var(--accent-main) !important;
    transform: translateX(5px);
}

.mega-links span {
    font-size: 0.65rem;
    color: #94a3b8;
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.cta-btn {
    background: var(--text-main);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(226, 180, 189, 0.1) 0%, transparent 40%);
}

.hero-content {
    width: 45%;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: var(--accent-main);
}

.hero p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 450px;
    line-height: 1.8;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 58%;
    height: 85vh;
    border-radius: 60px 0 0 60px;
    overflow: hidden;
    box-shadow: -20px 40px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(1.05);
}

/* Scanning Animation Overlay */
.scanner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.2) 100%);
}

.scan-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-main), transparent);
    box-shadow: 0 0 30px var(--accent-main);
    animation: scan 4s infinite linear;
}

/* Image Preview Panel */
.preview-panel {
    width: 250px;
    height: 250px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--text-main);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    z-index: 10;
    letter-spacing: 1px;
}

.preview-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-panel .scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-main);
    box-shadow: 0 0 15px var(--accent-main);
    animation: scan-preview 3s infinite linear;
    z-index: 5;
}

@keyframes scan-preview {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Features */
.features {
    padding: 10rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-20px);
    background: white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-main);
}

.feature-card i {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    display: block;
    color: var(--accent-main);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

/* Results Overlay */
.results-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 50px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
}

.score-main {
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-main);
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Face Markers */
.face-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent-main);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-main);
    cursor: pointer;
    border: 3px solid white;
}

.face-marker::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 2px solid var(--accent-main);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.8rem; }
    .hero-visual { width: 50%; right: 0; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 10rem; }
    .hero-content { width: 100%; }
    .hero-visual { position: relative; width: 100%; height: 50vh; transform: none; right: 0; margin-top: 4rem; border-radius: 30px; }
    .feature-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
