/* ══════════════════════════════════════════
   AMCREATOR — Public Homepage
   ══════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #060609;
    --bg-card: #0d0d14;
    --border: #1a1a2e;
    --text: #e8e8f0;
    --text-muted: #5a5a78;
    --text-secondary: #8888a8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --purple: #a855f7;
    --pink: #ec4899;
    --green: #22c55e;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ══════ NAVBAR ══════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 6, 9, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-outline {
    border: 1px solid var(--border);
    color: var(--accent-hover);
}

.nav-link-outline:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 9, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* ══════ HERO ══════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 20px);
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #e8e8f0, #a0a0c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════ BUTTONS ══════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
}

.btn-xl {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a78bfa);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ══════ FEATURES ══════ */

.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.fi-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
}

.fi-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.fi-green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.fi-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.fi-pink {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink);
}

.fi-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════ DOWNLOAD ══════ */

.download {
    padding: 60px 0 100px;
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.download-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.download-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.download-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ══════ FOOTER ══════ */

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    font-size: 10px;
    border-radius: 7px;
}

.footer-name {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ══════ PREMIUM ANIMATIONS ══════ */

/* Scroll Reveal */
.reveal {
    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);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* Gradient shimmer on hero text */
.hero-gradient {
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--pink), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShimmer 6s ease infinite;
}

@keyframes gradientShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero badge glow pulse */
.hero-badge {
    animation: fadeInUp 0.6s ease, badgePulse 3s ease-in-out infinite 1s;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }

    50% {
        box-shadow: 0 0 24px 4px rgba(99, 102, 241, 0.15);
    }
}

/* Feature card 3D tilt + border glow */
.feature-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 800px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25), transparent 60%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.06);
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) scale(1.1);
}

.feature-icon {
    transition: transform 0.4s ease;
}

/* Download button ripple */
.btn-xl {
    position: relative;
    overflow: hidden;
}

.btn-xl::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.btn-xl:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Download icon float */
.download-icon {
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(2deg);
    }

    75% {
        transform: translateY(4px) rotate(-2deg);
    }
}

/* Download glow pulse */
.download-glow {
    animation: downloadGlowPulse 4s ease-in-out infinite;
}

@keyframes downloadGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Download card hover */
.download-card {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.download-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.08);
}

/* Section tag shimmer */
.section-tag {
    position: relative;
    overflow: hidden;
}

.section-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: tagShimmer 4s ease-in-out infinite;
}

@keyframes tagShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Logo hover */
.nav-brand:hover .nav-logo {
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.3s ease;
}

/* Stat hover glow */
.hero-stat:hover .hero-stat-value {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* ══════ RESPONSIVE ══════ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-title {
        font-size: 26px;
    }

    .download-card {
        padding: 36px 24px;
    }

    .download-title {
        font-size: 22px;
    }

    .download-meta {
        gap: 8px;
    }

    .btn-xl {
        padding: 14px 28px;
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 44px;
    }
}