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

/* Hide scrollbars */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

body {
    background-color: #000000;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== Header / Navbar ========== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 120px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #000000;
    transition: background-color 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Left - Logo */
.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.logo .num {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    position: relative;
}

.logo .text {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
    margin-left: 1px;
}

.logo:hover .num {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

/* Center - Navigation */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 19px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Right - Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-blog {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-blog:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-login {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-login:hover {
    background-color: #e0e0e0;
}

/* ========== User Avatar & Dropdown ========== */
.user-avatar-wrap { position: relative; }
.user-avatar-wrap.hidden { display: none; }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.user-avatar:hover {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}
.user-avatar img.hidden { display: none; }
.avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
}
.user-avatar-wrap:hover .user-dropdown,
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dropdown-avatar img[src=""], .dropdown-avatar img:not([src]) { display: none; }
.dropdown-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
}
.dropdown-info { overflow: hidden; }
.dropdown-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-email {
    display: block;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 4px;
}

/* Dropdown status */
.dropdown-status { padding: 8px 12px; }
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.status-label {
    font-size: 12px;
    color: #555;
}
.status-value {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.status-dates {
    font-size: 11px;
    font-weight: 500;
    color: #888;
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 10px;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.dropdown-item.item-logout:hover {
    background: rgba(239,68,68,0.1);
    color: #f87171;
}

/* ========== Welcome Guide Modal ========== */
.guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: guideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guide-overlay.hidden { display: none; }

@keyframes guideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.guide-card {
    position: relative;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    animation: guideCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes guideCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.guide-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.guide-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: guideIconPulse 2s ease-in-out infinite;
}
.guide-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

@keyframes guideIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.05); }
    50% { transform: scale(1.05); box-shadow: 0 0 24px 4px rgba(255,255,255,0.08); }
}

.guide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.guide-desc {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 28px;
}
.guide-desc strong {
    color: #fff;
    font-weight: 600;
}

.guide-arrow-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-bottom: 24px;
    animation: hintBounce 2s ease-in-out infinite;
}
.guide-arrow-hint svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}
.guide-arrow-hint span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

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

.guide-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.guide-btn:hover { opacity: 0.9; transform: scale(0.98); }

/* ========== Hero Section ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 120px 20px 120px;
    margin-top: 150px;
    height: calc(100vh - 150px);
    gap: 60px;
}

.hero-left {
    flex: 1;
    max-width: 620px;
}

.hero-left, .hero-right {
    transition: filter 0.1s linear;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 28px;
    animation: badgeFadeIn 1s ease forwards;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: badgeDotPulse 2s ease-in-out infinite;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes badgeDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-left h1 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.hero-left p {
    font-size: 21px;
    line-height: 1.7;
    color: #a0a0a0;
    margin-bottom: 44px;
    max-width: 480px;
}

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

.btn-start {
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: none;
}

.btn-start:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.btn-learn {
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-learn:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Right - Image Carousel */
.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    max-width: 50%;
    height: 100%;
    padding-bottom: 100px;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-glow {
    position: absolute;
    inset: -40px;
    border-radius: 32px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

.carousel-track {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08) rotate(1deg);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.carousel-slide.leaving {
    opacity: 0;
    transform: scale(0.95) rotate(-1deg);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 2;
}

.carousel-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.carousel-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 60%
    );
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(0deg); }
}

/* Placeholder skeleton */
.carousel-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #111111 100%);
    background-size: 200% 200%;
    animation: skeletonMove 3s ease-in-out infinite;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.carousel-placeholder .ph-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-placeholder .ph-icon svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.2);
    fill: none;
}

.carousel-placeholder .ph-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

@keyframes skeletonMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.carousel-track:has(.carousel-slide img[src]) .carousel-placeholder {
    display: none;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    animation: scrollFade 2.5s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 12px;
    color: #a0a0a0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #a0a0a0;
    border-bottom: 2px solid #a0a0a0;
    transform: rotate(45deg);
    animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* ========== Section 2 - Sketch to Color ========== */
.section-compare {
    padding: 120px 120px 100px;
    position: relative;
}

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

.section-compare .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.section-compare .section-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.section-compare h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-compare h2 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.section-compare .section-desc {
    font-size: 19px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Compare container */
.compare-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: col-resize;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compare-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compare-img.compare-after {
    clip-path: inset(0 0 0 50%);
}

/* Placeholder for compare images */
.compare-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #111111 100%);
    background-size: 200% 200%;
    animation: skeletonMove 3s ease-in-out infinite;
}

.compare-placeholder .ph-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Slider handle */
.compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.compare-handle svg {
    width: 20px;
    height: 20px;
    stroke: #000000;
    fill: none;
}

/* Labels */
.compare-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 5;
    pointer-events: none;
}

.compare-label {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Section 3 - Image Enhance (Split Layout) ========== */
.section-enhance {
    padding: 120px 120px 100px;
    position: relative;
}

.section-enhance .enhance-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.section-enhance .enhance-text {
    flex: 0 0 380px;
}

.section-enhance .enhance-text .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.section-enhance .enhance-text .section-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.section-enhance .enhance-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-enhance .enhance-text h2 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.section-enhance .enhance-text p {
    font-size: 18px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 36px;
}

.section-enhance .enhance-text .enhance-stats {
    display: flex;
    gap: 32px;
}

.section-enhance .enhance-text .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-enhance .enhance-text .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.section-enhance .enhance-text .stat-label {
    font-size: 13px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-enhance .enhance-compare {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: col-resize;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== Section 4 - Old Photo Restore (Vertical Slider) ========== */
.section-restore {
    padding: 120px 120px 100px;
    position: relative;
}

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

.section-restore .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.section-restore .section-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.section-restore h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-restore h2 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.section-restore .section-desc {
    font-size: 19px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.restore-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: row-resize;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.restore-container .compare-img.compare-after {
    clip-path: inset(50% 0 0 0);
}

/* Vertical slider */
.restore-slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: #ffffff;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.restore-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.restore-handle svg {
    width: 18px;
    height: 18px;
    stroke: #000000;
    fill: none;
}

/* Vertical labels */
.restore-labels {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    z-index: 5;
    pointer-events: none;
}

/* ========== Section 5 - Pricing ========== */
.section-pricing {
    padding: 120px 120px 100px;
    position: relative;
}

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

.section-pricing .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.section-pricing .section-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.section-pricing h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-pricing h2 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.section-pricing .section-desc {
    font-size: 19px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 56px;
}

.billing-toggle span {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s;
}

.billing-toggle span.active {
    color: #ffffff;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.toggle-switch.yearly::after {
    transform: translateX(22px);
}

.toggle-switch.yearly {
    background: rgba(255, 255, 255, 0.25);
}

.billing-toggle .save-tag {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Pricing cards grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 20px;
    background: #ffffff;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card .plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pricing-card .plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.pricing-card .plan-price .currency {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.pricing-card .plan-price .amount {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.pricing-card .plan-price .period {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.pricing-card .plan-credits {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card .plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-card .plan-features li {
    font-size: 14px;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .plan-features li .check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pricing-card .plan-features li .check svg {
    width: 10px;
    height: 10px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2.5;
}

.pricing-card .plan-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-card .plan-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.pricing-card.featured .plan-btn {
    background: #ffffff;
    color: #000000;
    border: none;
}

.pricing-card.featured .plan-btn:hover {
    background: #e0e0e0;
}

/* Daily check-in note */
.pricing-note {
    text-align: center;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.pricing-note svg {
    width: 16px;
    height: 16px;
    stroke: #a0a0a0;
    fill: none;
}

.pricing-note strong {
    color: #a0a0a0;
    font-weight: 600;
}

/* ========== Section 6 - Credit Breakdown ========== */
.section-credits {
    padding: 120px 120px 100px;
    position: relative;
}

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

.section-credits .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 24px;
}

.section-credits .section-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.section-credits h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-credits h2 .highlight {
    color: #a0a0a0;
    -webkit-text-fill-color: #a0a0a0;
}

.section-credits .section-desc {
    font-size: 19px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Tagline area */
.credits-tagline {
    text-align: center;
    margin-bottom: 64px;
}

.credits-tagline .big-quote {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.3;
    color: #ffffff;
    max-width: 720px;
    margin: 0 auto 16px;
}

.credits-tagline .big-quote em {
    font-style: normal;
    color: #666;
}

.credits-tagline .tagline-sub {
    font-size: 16px;
    color: #666;
}

/* Credit table */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.credit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s, transform 0.3s;
}

.credit-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.credit-card .cc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-card .cc-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.credit-card .cc-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.credit-card .cc-detail {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.credit-card .cc-credits {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.credit-card .cc-credits span {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.credit-card .cc-usd {
    font-size: 14px;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 8px;
}

.credit-card .cc-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Bottom CTA */
.credits-cta {
    text-align: center;
}

.credits-cta p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.credits-cta p strong {
    color: #ffffff;
}

.credits-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.credits-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.credits-cta .cta-btn svg {
    width: 18px;
    height: 18px;
    stroke: #000000;
    fill: none;
    stroke-width: 2;
}

/* ========== Footer ========== */
.site-footer {
    padding: 80px 120px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer.in-view {
    opacity: 1;
    transform: translateY(0);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
}

.footer-brand .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.footer-brand .footer-logo .f-num {
    color: #ffffff;
}

.footer-brand .footer-logo .f-text {
    color: #888;
}

.footer-brand .footer-tagline {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-socials a svg {
    width: 16px;
    height: 16px;
    stroke: #888;
    fill: none;
    stroke-width: 1.5;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom .copyright {
    font-size: 13px;
    color: #444;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 24px;
}

.footer-bottom .footer-links a {
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom .footer-links a:hover {
    color: #ffffff;
}

/* ========== Parallax & Animation ========== */
.parallax-section {
    will-change: transform, opacity;
    perspective: 1000px;
}

/* Staggered child reveal */
.parallax-section .section-header,
.parallax-section .section-badge,
.parallax-section .enhance-text,
.parallax-section h2,
.parallax-section .section-desc,
.parallax-section .enhance-stats,
.parallax-section .compare-container,
.parallax-section .enhance-compare,
.parallax-section .restore-container,
.parallax-section .billing-toggle,
.parallax-section .pricing-grid,
.parallax-section .pricing-note,
.parallax-section .credits-tagline,
.parallax-section .credits-grid,
.parallax-section .credits-cta {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-section.in-view .section-header,
.parallax-section.in-view .section-badge,
.parallax-section.in-view .enhance-text { opacity: 1; transform: translateY(0); }

.parallax-section.in-view h2 { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.parallax-section.in-view .section-desc { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.parallax-section.in-view .enhance-stats { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

.parallax-section.in-view .compare-container,
.parallax-section.in-view .enhance-compare,
.parallax-section.in-view .restore-container { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

.parallax-section.in-view .billing-toggle { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.parallax-section.in-view .pricing-grid { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.parallax-section.in-view .pricing-note { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

.parallax-section.in-view .credits-tagline { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.parallax-section.in-view .credits-grid { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.parallax-section.in-view .credits-cta { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Credit cards stagger */
.parallax-section.in-view .credit-card { opacity: 0; animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.parallax-section.in-view .credit-card:nth-child(1) { animation-delay: 0.3s; }
.parallax-section.in-view .credit-card:nth-child(2) { animation-delay: 0.38s; }
.parallax-section.in-view .credit-card:nth-child(3) { animation-delay: 0.46s; }
.parallax-section.in-view .credit-card:nth-child(4) { animation-delay: 0.54s; }
.parallax-section.in-view .credit-card:nth-child(5) { animation-delay: 0.62s; }
.parallax-section.in-view .credit-card:nth-child(6) { animation-delay: 0.7s; }

/* Pricing cards stagger */
.parallax-section.in-view .pricing-card { opacity: 0; animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.parallax-section.in-view .pricing-card:nth-child(1) { animation-delay: 0.3s; }
.parallax-section.in-view .pricing-card:nth-child(2) { animation-delay: 0.4s; }
.parallax-section.in-view .pricing-card:nth-child(3) { animation-delay: 0.5s; }
.parallax-section.in-view .pricing-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Login Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 40px;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #888;
    fill: none;
    stroke-width: 2;
}

/* Modal states */
.modal-state {
    text-align: center;
}

.modal-state.hidden {
    display: none;
}

/* Logo */
.modal-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.modal-logo .m-num {
    color: #ffffff;
}

.modal-logo .m-text {
    color: #666;
}

/* Headings */
.modal-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modal-desc {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-desc.dim {
    color: #555;
    font-size: 14px;
    margin-top: 16px;
}

/* Email input */
.input-group {
    position: relative;
    margin: 28px 0 16px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    stroke: #555;
    fill: none;
    stroke-width: 1.5;
    transition: stroke 0.2s;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-group input::placeholder {
    color: #444;
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.input-group input:focus ~ .input-icon svg,
.input-group:focus-within .input-icon svg {
    stroke: #aaa;
}

/* Magic link button */
.btn-magic {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-magic:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.btn-magic:active {
    transform: translateY(0);
}

.btn-magic .btn-arrow {
    width: 18px;
    height: 18px;
    stroke: #000000;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s;
}

.btn-magic:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-magic .btn-magic-loader {
    display: none;
}

.btn-magic.loading .btn-magic-text,
.btn-magic.loading .btn-arrow {
    display: none;
}

.btn-magic.loading .btn-magic-loader {
    display: flex;
}

.btn-magic.loading {
    pointer-events: none;
    background: #d0d0d0;
}

/* Spinner */
.spinner {
    width: 22px;
    height: 22px;
    stroke: #000;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 35;
    animation: spinRotate 0.8s linear infinite;
}

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

/* Footer text */
.modal-footer-text {
    font-size: 13px;
    color: #444;
    margin-top: 24px;
}

/* State 2: Sent confirmation */
.sent-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: sentPulse 2s ease-in-out infinite;
}

.sent-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

@keyframes sentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

.sent-email {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
    margin: 8px 0;
    letter-spacing: -0.3px;
}

.btn-resend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #aaa;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin-top: 28px;
}

.btn-resend:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-resend svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.btn-back {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px;
    border: none;
    background: none;
    color: #555;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #ffffff;
}

/* ========== Create Drawer ========== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 910;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px 28px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0 40px 40px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.drawer.open {
    transform: translateY(0);
}

/* Handle */
.drawer-handle {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 14px 0 8px;
    cursor: grab;
    background: #0a0a0a;
}

.drawer-handle span {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.drawer-handle:hover span {
    background: rgba(255, 255, 255, 0.3);
}

/* Drawer header */
.drawer-header {
    text-align: center;
    padding: 16px 0 32px;
}

.drawer-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 8px;
}

.drawer-desc {
    font-size: 16px;
    color: #666;
}

/* Tool grid */
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tool card */
.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s,
                box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.drawer.open .tool-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s,
                box-shadow 0.3s;
}

.drawer.open .tool-card:nth-child(1) { transition-delay: 0.08s; }
.drawer.open .tool-card:nth-child(2) { transition-delay: 0.12s; }
.drawer.open .tool-card:nth-child(3) { transition-delay: 0.16s; }
.drawer.open .tool-card:nth-child(4) { transition-delay: 0.20s; }
.drawer.open .tool-card:nth-child(5) { transition-delay: 0.24s; }
.drawer.open .tool-card:nth-child(6) { transition-delay: 0.28s; }

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Tool preview area */
.tool-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

/* Placeholder for tools without images */
.tool-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #0d0d0d, #111);
}

.tool-ph-icon svg {
    width: 36px;
    height: 36px;
    stroke: #333;
    fill: none;
    stroke-width: 1.5;
}

.tool-ph-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Auto-compare animation */
.auto-compare {
    position: relative;
    width: 100%;
    height: 100%;
}

.auto-compare .ac-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auto-compare .ac-before-clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    animation: autoCompareSlide 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.auto-compare .ac-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auto-compare .ac-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    animation: autoCompareDivider 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    z-index: 1;
}

.auto-compare .ac-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes autoCompareSlide {
    0%, 8%   { clip-path: inset(0 70% 0 0); }
    42%, 58% { clip-path: inset(0 10% 0 0); }
    92%, 100%{ clip-path: inset(0 70% 0 0); }
}

@keyframes autoCompareDivider {
    0%, 8%   { left: 30%; }
    42%, 58% { left: 90%; }
    92%, 100%{ left: 30%; }
}

/* Tool info */
.tool-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.tool-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Arrow */
.tool-arrow {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
}

.tool-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s, transform 0.3s;
}

.tool-card:hover .tool-arrow svg {
    stroke: #fff;
    transform: translateX(4px);
}

/* ===== Text to Image Animation ===== */
.tti-anim {
    position: relative;
    width: 100%;
    height: 100%;
    background: #080808;
    overflow: hidden;
}

.tti-text-layer {
    position: absolute;
    inset: 0;
    padding: 20px 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.1s;
}

.tti-text-inner {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
    display: inline;
}

.tti-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: ttiCursorBlink 0.6s step-end infinite;
}

@keyframes ttiCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Particles */
.tti-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.tti-particle {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    will-change: transform, opacity;
}

/* Result image */
.tti-result {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transform: scale(1.1);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tti-result.revealed {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
