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

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --secondary: #00CEC9;
    --accent: #FD79A8;
    --bg-page: #FAFBFF;
    --bg-card: #FFFFFF;
    --bg-dark: #0F0A2A;
    --text-primary: #1A1333;
    --text-secondary: #555580;
    --text-tertiary: #8888AA;
    --text-on-dark: #FFFFFF;
    --border: #E8E6F0;
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-card: 0 4px 20px rgba(108, 92, 231, 0.1);
    --shadow-float: 0 8px 30px rgba(108, 92, 231, 0.15);
    --shadow-hover: 0 8px 32px rgba(108, 92, 231, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
    height: 36px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    height: 52px;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 12px rgba(108, 92, 231, 0.08);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 24px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F0EDFF 0%, #FAFBFF 40%, #FFF0F6 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* === Hero Visual === */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 36px;
    box-shadow: var(--shadow-float), 0 0 0 8px #1A1333, 0 0 0 10px #333;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #1A1333;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-screen {
    padding: 20px 16px;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.phone-text-lines {
    flex: 1;
}

.phone-line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 6px;
}

.phone-line:last-child {
    margin-bottom: 0;
}

.phone-line.w60 {
    width: 60%;
}

.phone-line.w40 {
    width: 40%;
}

.phone-image-area {
    margin-bottom: 16px;
}

.phone-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #F0EDFF, #FFF0F6);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
}

.phone-img-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.phone-style-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pill {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pill-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.phone-btn-area {
    display: flex;
}

.phone-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    z-index: 2;
    animation: floatY 3s ease-in-out infinite;
}

.float-card-1 {
    top: 60px;
    right: -20px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 60px;
    left: -20px;
    animation-delay: 1.5s;
}

.float-icon {
    font-size: 24px;
}

.float-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

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

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === Section Common === */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* === Features === */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-1 {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.2));
    color: var(--primary);
}

.feature-icon-2 {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.1), rgba(0, 206, 201, 0.2));
    color: var(--secondary);
}

.feature-icon-3 {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1), rgba(253, 121, 168, 0.2));
    color: var(--accent);
}

.feature-icon-4 {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.15));
    color: var(--primary);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* === Styles Section === */
.styles {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, #F0EDFF 100%);
}

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

.style-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.style-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.style-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.style-image {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-image-1 {
    background: linear-gradient(135deg, #FFEAA7, #FDCB6E, #F39C12);
}

.style-image-2 {
    background: linear-gradient(135deg, #81ECEC, #00CEC9, #00B894);
}

.style-image-3 {
    background: linear-gradient(135deg, #FAB1A0, #FD79A8, #E84393);
}

.style-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.style-tag {
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(8px);
}

.style-info {
    padding: 24px;
}

.style-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.style-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* === How it Works === */
.how-it-works {
    padding: 100px 0;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 220px;
    flex-shrink: 0;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.step-number {
    font-size: 32px;
    font-weight: 800;
    color: rgba(108, 92, 231, 0.15);
    margin-bottom: 12px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 8px 0;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* === Products === */
.products {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, #FFF0F6 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-category {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.product-category-header {
    margin-bottom: 24px;
}

.product-category-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-category-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-item {
    flex: 1;
    min-width: 140px;
    padding: 24px 20px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.product-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.product-item-popular {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.03);
}

.product-size {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-material {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 12px;
}

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.price-original {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* === CTA === */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2D1B69 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    padding: 64px 0 24px;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: var(--primary-light);
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-phone {
        width: 240px;
        height: 480px;
    }

    .hero-float-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 16px;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        width: calc(50% - 16px);
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .navbar .btn.btn-sm {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-desc {
        font-size: 16px;
    }

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

    .section-desc {
        font-size: 16px;
    }

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

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

    .step-card {
        width: 100%;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-phone {
        width: 220px;
        height: 440px;
    }

    .product-items {
        flex-direction: column;
    }
}
