/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00b8db;
    --primary-blue: #2b7fff;
    --primary-pink: #f6339a;
    --primary-red: #fb2c36;
    --primary-purple: #ad46ff;
    --dark: #1e2939;
    --text-secondary: #4a5565;
    --text-light: #364153;
    --white: #ffffff;
    --gray-light: #f9fafb;
    --gradient-pink-cyan: linear-gradient(90deg, #f6339a 0%, #fb2c36 50%, #00b8db 100%);
    --gradient-cyan-blue: linear-gradient(90deg, #00b8db 0%, #2b7fff 100%);
    --gradient-purple-pink: linear-gradient(135deg, #ad46ff 0%, #f6339a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-cyan-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary-cyan);
}

.btn-primary {
    background: var(--gradient-cyan-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 28px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 184, 219, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(143.957deg, #fce7f3 0%, #faf5ff 50%, #cefafe 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.bg-circle.pink {
    width: 80px;
    height: 80px;
    background: rgba(253, 165, 213, 0.3);
    top: 80px;
    left: 40px;
}

.bg-circle.cyan {
    width: 128px;
    height: 128px;
    background: rgba(83, 234, 253, 0.3);
    top: 160px;
    right: 100px;
}

.bg-circle.purple {
    width: 96px;
    height: 96px;
    background: rgba(218, 178, 255, 0.3);
    bottom: 200px;
    left: 448px;
}

.bg-circle.white {
    width: 128px;
    height: 128px;
    background: rgba(255, 255, 255, 0.1);
    top: 40px;
    left: 40px;
}

.bg-circle.white.large {
    width: 160px;
    height: 160px;
    top: auto;
    bottom: 80px;
    left: auto;
    right: 100px;
}

.decor-icon {
    position: absolute;
    color: var(--primary-cyan);
    opacity: 0.6;
    font-size: 24px;
}

.decor-icon.icon-1 { top: 128px; right: 300px; font-size: 32px; }
.decor-icon.icon-2 { top: 652px; left: 80px; font-size: 24px; }
.decor-icon.icon-3 { top: 400px; right: 100px; font-size: 28px; }
.decor-icon.icon-4 { top: 326px; left: 40%; font-size: 40px; }
.decor-icon.icon-5 { bottom: 200px; right: 25%; font-size: 32px; }

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-cyan);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.badge.blue {
    background: var(--gradient-cyan-blue);
    color: white;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

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

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

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

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.625;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #f6339a 0%, #fb2c36 50%, #f6339a 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 22px 40px;
    border-radius: 50px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px rgba(0,0,0,0.15);
}

.btn-gradient-blue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-cyan-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 20px 36px;
    border-radius: 50px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gradient-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px rgba(0,0,0,0.15);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 20px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    background: white;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 30px;
    font-weight: 900;
}

.stat-number.cyan { color: var(--primary-cyan); }
.stat-number.pink { color: #e60076; }
.stat-number.purple { color: #9810fa; }

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Hero Image */
.hero-image {
    flex: 1;
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-blur-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(253, 165, 213, 0.4) 0%, rgba(255, 162, 162, 0.4) 50%, rgba(83, 234, 253, 0.4) 100%);
    filter: blur(64px);
}

.image-white-bg {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.main-image {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 600px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    z-index: 3;
}

.floating-card.premium {
    top: 80px;
    left: 0;
    opacity: 0.9;
}

.floating-card.fast {
    bottom: 120px;
    right: 0;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.pink-gradient {
    background: linear-gradient(135deg, #fb64b6 0%, #ff6467 100%);
}

.card-icon.blue-gradient {
    background: linear-gradient(135deg, #00d3f3 0%, #51a2ff 100%);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 900;
    font-size: 16px;
    color: var(--dark);
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* Technology Section */
.technology {
    background: white;
    padding: 128px 0;
    position: relative;
    overflow: hidden;
}

.tech-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.3;
}

.bg-blur.cyan {
    width: 256px;
    height: 256px;
    background: rgba(162, 244, 253, 0.4);
    top: 80px;
    right: 100px;
}

.bg-blur.purple {
    width: 384px;
    height: 384px;
    background: rgba(233, 212, 255, 0.4);
    bottom: 80px;
    left: 40px;
}

.tech-container {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.tech-content {
    flex: 1;
}

.section-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 24px;
}

.section-title.centered {
    text-align: center;
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.625;
    margin-bottom: 32px;
}

.section-description.centered {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.feature-card.cyan {
    background: linear-gradient(90deg, #ecfeff 0%, #eff6ff 100%);
}

.feature-card.purple {
    background: linear-gradient(90deg, #faf5ff 0%, #fdf2f8 100%);
}

.feature-card.pink {
    background: linear-gradient(90deg, #fdf2f8 0%, #fef2f2 100%);
}

.feature-card:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-card.cyan .feature-icon {
    background: linear-gradient(135deg, #00b8db 0%, #155dfc 100%);
}

.feature-card.purple .feature-icon {
    background: linear-gradient(135deg, #ad46ff 0%, #f6339a 100%);
}

.feature-card.pink .feature-icon {
    background: linear-gradient(135deg, #f6339a 0%, #e70007 100%);
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.tech-image {
    flex: 1;
    position: relative;
}

.tech-image-blur {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 211, 243, 0.2) 0%, rgba(81, 162, 255, 0.2) 50%, rgba(194, 122, 255, 0.2) 100%);
    filter: blur(64px);
    top: -30px;
    left: -30px;
}

.printer-image {
    position: relative;
    z-index: 1;
    background: linear-gradient(142deg, #f9fafb 0%, #ecfeff 100%);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.printer-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tech-stats {
    display: flex;
    gap: 16px;
}

.tech-stat {
    flex: 1;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.tech-stat.cyan {
    background: linear-gradient(160deg, #00b8db 0%, #2b7fff 100%);
    color: white;
}

.tech-stat.purple {
    background: linear-gradient(160deg, #ad46ff 0%, #f6339a 100%);
    color: white;
}

.tech-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 4px;
}

.tech-stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(136deg, #f9fafb 0%, #ecfeff 100%);
    padding: 128px 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.gallery-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 416px;
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image.original {
    background: #f3f4f6;
}

.gallery-image.figurine {
    background: linear-gradient(127deg, #fdf2f8 0%, #ecfeff 100%);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(30, 41, 57, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.image-label.gradient {
    background: var(--gradient-pink-cyan);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.gallery-info {
    padding: 24px;
    text-align: center;
}

.gallery-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.gallery-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-small {
    display: inline-block;
    background: var(--gradient-cyan-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 184, 219, 0.3);
}

/* Discovery Section */
.discovery {
    background: white;
    padding: 128px 0;
}

.discovery .container {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.discovery-content {
    flex: 1;
}

.discovery-content .section-title {
    font-size: 48px;
}

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

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

.discovery-feature .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.discovery-feature .feature-icon.cyan {
    background: linear-gradient(135deg, #00d3f3 0%, #2b7fff 100%);
}

.discovery-feature .feature-icon.pink {
    background: linear-gradient(135deg, #fb64b6 0%, #fb2c36 100%);
}

.discovery-feature h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.discovery-feature p {
    font-size: 16px;
    color: var(--text-secondary);
}

.discovery-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.discovery-img {
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.discovery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* CTA Section */
.cta {
    background: var(--gradient-pink-cyan);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cta-title {
    font-size: 60px;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 24px;
    color: white;
    opacity: 0.95;
    max-width: 860px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.btn-outline-white {
    display: inline-block;
    background: transparent;
    border: 4px solid white;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    padding: 24px 48px;
    border-radius: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transition: transform 0.3s, background 0.3s;
}

.btn-outline-white:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fade-left {
    opacity: 0;
    transform: translateX(-60px);
}

.animate-on-scroll.fade-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.fade-right {
    opacity: 0;
    transform: translateX(60px);
}

.animate-on-scroll.fade-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.scale-up {
    opacity: 0;
    transform: scale(0.85);
}

.animate-on-scroll.scale-up.animate-in {
    opacity: 1;
    transform: scale(1);
}

.gallery-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.gallery-card.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.gallery-card.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.gallery-card.animate-on-scroll:nth-child(4) { transition-delay: 0.45s; }

html {
    scroll-behavior: smooth;
}

/* Email Input Section */
.email-section {
    display: flex;
    justify-content: center;
}

.email-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.email-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00b8db, #2b7fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.email-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.email-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.5;
}

.email-input-wrap {
    display: flex;
    gap: 10px;
}

.email-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 14px 20px;
    color: white;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.email-btn {
    background: white;
    color: #0092b8;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.email-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;
}

/* Upload Section */
.upload-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.upload-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 16px;
}

.upload-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-top: 10px;
}

.upload-loading {
    text-align: center;
    padding: 40px 0;
}

/* Loading Spinner */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

/* Generation Loading — fixed overlay popup */
.gen-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gen-loading-popup {
    background: #1a2035;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Legacy alias kept for backward compat */
.gen-loading-inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.gen-loading-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.progress-bar-wrap {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00b8db, #2b7fff);
    border-radius: 50px;
    transition: width 0.5s ease;
}

.gen-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 32px;
}

.result-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 24px;
}

.result-images {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.result-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn-gradient-blue {
    text-decoration: none;
    padding: 16px 32px;
}

/* Style grid on style page */
.style-main .style-grid .style-item {
    flex: 1 1 calc(25% - 12px);
}

@media (max-width: 768px) {
    .email-input-wrap {
        flex-direction: column;
    }

    .style-main .style-grid .style-item {
        flex: 1 1 calc(50% - 12px);
    }

    .result-images {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Auth Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
    animation: modal-in .2s ease;
}

@keyframes modal-in {
    from { opacity:0; transform: scale(.95) translateY(10px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 22px; color: #94a3b8;
    cursor: pointer; line-height: 1;
    transition: color .2s;
}
.modal-close:hover { color: #1e293b; }

.modal-title {
    font-size: 24px; font-weight: 800;
    color: var(--dark); margin-bottom: 6px;
}

.modal-sub {
    font-size: 15px; color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-err {
    background: #fee2e2; border: 1px solid #fca5a5;
    color: #dc2626; border-radius: 10px;
    padding: 10px 14px; font-size: 14px;
    margin-bottom: 16px;
}

.modal-field {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
}
.modal-field label {
    font-size: 14px; font-weight: 600; color: #374151;
}
.modal-field input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s;
}
.modal-field input:focus { border-color: var(--primary-cyan); }

.modal-btn {
    width: 100%; padding: 14px;
    background: var(--gradient-cyan-blue);
    color: #fff; border: none;
    border-radius: 50px; font-size: 16px;
    font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity .2s, transform .2s;
    margin-top: 4px;
}
.modal-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.modal-btn:disabled { opacity: .6; cursor: not-allowed; }

.modal-switch {
    text-align: center; font-size: 14px;
    color: var(--text-secondary); margin-top: 18px;
}
.modal-switch a {
    color: var(--primary-cyan); font-weight: 600; text-decoration: none;
}

/* ===== Nav User Dropdown ===== */
.nav-user { position: relative; }

.nav-user-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 2px solid #e5e7eb;
    border-radius: 50px; padding: 8px 16px 8px 12px;
    font-size: 14px; font-weight: 600;
    color: var(--dark); cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s;
}
.nav-user-btn:hover { border-color: var(--primary-cyan); }
.nav-user-btn span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-user-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    min-width: 160px; overflow: hidden;
    z-index: 1001;
}
.nav-user-menu a {
    display: block; padding: 12px 18px;
    font-size: 14px; font-weight: 500;
    color: var(--dark); text-decoration: none;
    transition: background .15s;
}
.nav-user-menu a:hover { background: #f1f5f9; }

/* ===== Product Cards (size selection) ===== */
.product-grid {
    display: flex; gap: 12px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px;
}

.product-card {
    flex: 1; min-width: 120px; max-width: 180px;
    border: 3px solid #e5e7eb; border-radius: 18px;
    padding: 20px 16px; text-align: center;
    cursor: pointer; transition: all .25s;
    background: #fff;
}
.product-card:hover { border-color: var(--primary-cyan); transform: translateY(-3px); }
.product-card.selected {
    border-color: var(--primary-cyan);
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    box-shadow: 0 8px 20px rgba(0,184,219,.2);
    transform: translateY(-3px);
}

.product-size {
    font-size: 32px; font-weight: 900; color: var(--dark);
    margin-bottom: 6px;
}
.product-name {
    font-size: 13px; color: var(--text-secondary); margin-bottom: 10px;
}
.product-price {
    font-size: 20px; font-weight: 800;
    background: var(--gradient-cyan-blue);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Order Summary ===== */
.order-summary-row {
    display: flex; gap: 20px; align-items: center;
}
.order-thumb {
    width: 100px; height: 100px;
    object-fit: cover; border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    flex-shrink: 0;
}
.order-summary-name {
    font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.order-summary-size {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 10px;
}
.order-summary-price {
    font-size: 24px; font-weight: 800;
    background: var(--gradient-cyan-blue);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: #f9fafb;
    padding: 24px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.footer-copyright {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Upload Page Styles */
.upload-page {
    min-height: 100vh;
    background: linear-gradient(129deg, #00d3f3 0%, #74d4ff 50%, #51a2ff 100%);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    margin: 0 auto;
    padding: 32px 20px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.upload-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 24px;
}

.logo-icon.white {
    background: white;
    box-shadow: none;
}

.upload-main, .style-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.upload-content, .style-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.upload-title {
    font-size: 60px;
    font-weight: 900;
    color: white;
    text-align: center;
    line-height: 1;
}

.upload-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.upload-area {
    background: rgba(255, 255, 255, 0.1);
    border: 4px dashed rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 84px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.upload-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.upload-btn {
    background: white;
    color: #0092b8;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.upload-tips {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 33px;
}

.upload-tips h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.upload-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-tips li {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 20px;
    position: relative;
}

.upload-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Step 2 upload: constrained width */
#stepUpload {
    max-width: 768px;
    width: 100%;
    align-self: center;
}

/* Style Page Specific */
.style-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.style-layout .preview-card {
    flex: 0 0 400px;
}

.style-layout .style-card {
    flex: 1;
    min-width: 0;
}

.preview-card, .style-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 32px;
}

.preview-card h3, .style-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 24px;
}

.preview-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 448/800;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

.change-photo-btn {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    padding: 14px 28px;
    border: 2px solid var(--primary-cyan);
    border-radius: 50px;
    color: #0092b8;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.change-photo-btn:hover {
    background: var(--primary-cyan);
    color: white;
}

.style-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.style-item {
    flex: 1 1 calc(25% - 12px);
    min-width: 140px;
    border: 4px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.style-item:hover {
    transform: translateY(-5px);
}

.style-item.selected {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 184, 219, 0.3);
}

.style-image {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}

.style-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.style-label {
    padding: 12px;
    text-align: center;
}

.style-label.pink {
    background: linear-gradient(90deg, #fb64b6 0%, #ff6467 100%);
}

.style-label.purple {
    background: linear-gradient(90deg, #c27aff 0%, #fb64b6 100%);
    padding-top: 12px;
    padding-bottom: 20px;
}

.style-label.blue {
    background: linear-gradient(90deg, #00d3f3 0%, #51a2ff 100%);
}

.style-label.yellow {
    background: linear-gradient(90deg, #fdc700 0%, #ff8904 100%);
    padding-top: 12px;
    padding-bottom: 20px;
}

.style-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.style-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 306px;
    margin: 0 auto;
    padding: 20px 32px;
    background: #d1d5dc;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #6a7282;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
}

.generate-btn:not(.disabled) {
    background: linear-gradient(90deg, #f6339a 0%, #fb2c36 50%, #00b8db 100%);
    color: white;
}

.generate-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.quota-hint {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    color: rgba(255,255,255,0.5);
}

/* ======= Redesigned Upload Steps ======= */

/* Step 3: Single-card style layout */
.style-main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 32px;
    display: flex;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.style-panel-left {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
}

.style-panel-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.panel-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.style-preview-box {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

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

.btn-change-photo {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #f6339a, #ff6467);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    font-family: 'Inter', sans-serif;
}

.btn-change-photo:hover { opacity: .85; }

/* Override generate-btn inside new card */
.style-panel-right .generate-btn {
    max-width: 100%;
    margin-top: 4px;
}

/* Step 4: Generating card */
.generating-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 56px 48px;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.gen-ring {
    width: 56px;
    height: 56px;
    border: 4px solid #e2e8f0;
    border-top-color: #00b8db;
    border-radius: 50%;
    margin: 0 auto 28px;
    animation: spin .9s linear infinite;
}

.gen-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.gen-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.gen-progress-wrap { text-align: left; }

.gen-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

/* Step 5: Result card */
.result-main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.result-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.text-pink-gradient {
    background: linear-gradient(90deg, #f6339a, #ff6467);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-subheading {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}

.result-comparison {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.result-col { flex: 1; }

.result-col-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    text-align: left;
}

.result-col-img {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.result-col-img img {
    width: 100%;
    height: auto;
    display: block;
}

.result-footer-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-try-again {
    padding: 12px 28px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color .2s;
    font-family: 'Inter', sans-serif;
}

.btn-try-again:hover { border-color: #94a3b8; }

.btn-continue-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #f6339a, #ff6467 50%, #00b8db);
    color: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

.btn-continue-order:hover { opacity: .9; }

/* Responsive */
@media (max-width: 700px) {
    .style-main-card { flex-direction: column; }
    .style-panel-left { flex: none; }
    .style-preview-box { aspect-ratio: 3/2; }
    .result-comparison { flex-direction: column; }
    .result-col-img { aspect-ratio: unset; }
    .generating-card { padding: 40px 24px; }
    .result-main-card { padding: 28px 20px; }
}

/* Order Page Styles */
.order-main {
    max-width: 608px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.order-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.order-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 32px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #364153;
}

.form-group .required {
    color: #e7000b;
}

.input-wrapper {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-cyan);
}

.form-input, .form-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #1e2939;
}

.form-input::placeholder {
    color: rgba(10, 10, 10, 0.5);
}

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

.input-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fefce8;
    border: 1px solid #fff085;
    border-radius: 14px;
    padding: 12px;
    font-size: 14px;
    color: #4a5565;
    line-height: 20px;
}

.hint-icon {
    flex-shrink: 0;
}

.input-hint strong {
    color: #1e2939;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(90deg, #00b8db 0%, #2b7fff 100%);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 8px;
}

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

/* Responsive for upload pages */
@media (max-width: 900px) {
    .style-layout {
        flex-direction: column;
    }

    .style-layout .preview-card {
        flex: none;
        width: 100%;
    }

    .style-layout .preview-card .preview-image {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .upload-title {
        font-size: 36px;
    }

    .upload-area {
        padding: 40px 20px;
        width: 100%;
    }

    .style-grid .style-item {
        flex: 1 1 calc(50% - 12px);
    }

    .preview-image {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 48px;
    }

    .tech-container,
    .discovery .container {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        height: 500px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 36px;
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
