:root {
    /* Premium Pink & Attractive Theme - Rose/Pink focus */
    --primary-color: #f43f5e;
    /* Rose 500 */
    --primary-hover: #e11d48;
    /* Rose 600 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --accent-color: #fb7185;
    /* Rose 400 */

    --text-color: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --bg-white: #ffffff;

    --border-color: #e2e8f0;
    --success-color: #10b981;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;

    --font-main: 'Outfit', 'Inter', -apple-system, sans-serif;
}

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo span {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links>a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links>a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top right, #fff1f2 0%, transparent 40%),
        radial-gradient(circle at top left, #fdf2f8 0%, transparent 40%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 0.625rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Tool Redesign (Split Pane) */
.tool-redesign-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.tool-visual-side {
    flex: 1.2;
    position: relative;
}

.visual-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #000;
}

.visual-wrapper .base-image {
    width: 100%;
    display: block;
    opacity: 0.85;
}

/* Scanning Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.8), transparent);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
    z-index: 5;
    animation: scanning 3s linear infinite;
}

@keyframes scanning {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Markers */
.marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 6;
    opacity: 0.6;
}

.marker.m1 {
    top: 35%;
    left: 35%;
    border-radius: 4px 0 0 0;
    border-right: none;
    border-bottom: none;
}

.marker.m2 {
    top: 35%;
    right: 35%;
    border-radius: 0 4px 0 0;
    border-left: none;
    border-bottom: none;
}

.marker.m3 {
    bottom: 35%;
    left: 35%;
    border-radius: 0 0 0 4px;
    border-right: none;
    border-top: none;
}

.marker.m4 {
    bottom: 35%;
    right: 35%;
    border-radius: 0 0 4px 0;
    border-left: none;
    border-top: none;
}

/* Floating Bar */
.floating-shapes-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.shape-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.shape-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.shape-item span {
    font-size: 8px;
    color: white;
    font-weight: 600;
}

/* Upload Side */
.tool-upload-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-card-new {
    background: white;
    border: 2px dashed #facc15;
    /* Yellow-Golden Dash */
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.upload-card-new:hover {
    border-color: var(--primary-color);
    background: #fffdf0;
}

.upload-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fefce8;
    color: #facc15;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.upload-card-new h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-card-new p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Golden Buttons */
.btn-golden {
    background: #facc15;
    color: #1e293b;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(250, 204, 21, 0.2);
}

.btn-golden:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(250, 204, 21, 0.3);
}

.btn-outline-golden {
    background: transparent;
    border: 2px solid #facc15;
    color: #854d0e;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-golden:hover {
    background: #fefce8;
}

.or-separator {
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    margin: 0.5rem 0;
}

.privacy-note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 992px) {
    .tool-redesign-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Camera Container */
#camera-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    padding: 1rem;
    border-radius: var(--radius);
    z-index: 2000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 90%;
    max-width: 600px;
}

#camera-container.hidden {
    display: none;
}

#input-video {
    width: 100%;
    border-radius: calc(var(--radius) - 4px);
    background: #000;
    max-height: 70vh;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: #f1f5f9;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.step-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: left;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Results Section */
.hidden {
    display: none !important;
}

.results-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.face-analysis {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-preview-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

#uploaded-image {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

#output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.shape-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
}

.shape-badge .label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.shape-badge .value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.shape-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Modern Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rec-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.rec-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.75rem;
}

.rec-category {
    margin-bottom: 2.5rem;
}

.rec-category h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #0f172a;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.rec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.rec-list li {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-color);
    list-style: none;
    border-left: 3px solid var(--primary-color);
}

/* Monetization Placeholders */
.ad-placeholder {
    background: var(--bg-light);
    border: 1px dashed var(--text-light);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.affiliate-section {
    margin-top: 2rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.affiliate-item {
    background: white;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.affiliate-item:hover {
    box-shadow: var(--shadow);
}

/* SEO Content */
.seo-content h2,
.seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.75rem;
        padding: 0 0.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .tool-selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 2rem;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .shape-badge .value {
        font-size: 2.5rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .rec-list {
        grid-template-columns: 1fr;
    }
}

/* 4K and Large Monitors */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }

    body {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 5.5rem;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 2rem;
}

.dropdown>a {
    margin-left: 0;
    /* Override default nav link margin */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown>a::after {
    content: "▼";
    font-size: 0.7em;
    margin-top: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1001;
    border-radius: var(--radius);
    padding: 0.5rem 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .dropdown {
        margin-left: 0;
        margin: 0 1rem;
        display: block;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Image Gallery Section */
.image-gallery {
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3/4;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    text-align: center;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Measurements UI */
.measurements-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.measurements-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.measurement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.measurement-item:last-child {
    border-bottom: none;
}

.measurement-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.measurement-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
}