/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%235865F2" opacity="0.3"/><circle cx="10" cy="10" r="3" fill="%235865F2"/></svg>'), auto;
}

/* Magic cursor trail */
@keyframes cursorTrail {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Smooth transitions for all elements */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
}

.section-title:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #5865F2, #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: #5865F2;
    color: white;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.btn-primary:hover {
    background-color: #4752C4;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background-color: white;
    color: #5865F2;
    border: 2px solid #5865F2;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.1);
}

.btn-secondary:hover {
    background-color: #5865F2;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Hero Section */
.hero {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #EAECF0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(88, 101, 242, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(114, 137, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(88, 101, 242, 0.2));
    transition: filter 0.5s ease, transform 0.5s ease;
    cursor: pointer;
}

.logo:hover {
    filter: drop-shadow(0 12px 32px rgba(88, 101, 242, 0.6)) brightness(1.1);
    transform: scale(1.1) rotate(5deg);
    animation: shake 0.5s ease;
}

.logo:active {
    transform: scale(0.95) rotate(-5deg);
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-5deg) scale(1.12); }
    50% { transform: rotate(5deg) scale(1.08); }
    75% { transform: rotate(-3deg) scale(1.1); }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    animation: fadeInUp 0.8s ease 0.2s both;
    background: linear-gradient(135deg, #1a1a1a 0%, #5865F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.03em;
    cursor: default;
    user-select: none;
    transition: all 0.5s ease;
}

.hero-title:hover {
    letter-spacing: 0.02em;
    transform: translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(88, 101, 242, 0.3));
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #5a5a5a;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
    line-height: 1.6;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background-color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background-color: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E8E8E8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #5865F2;
    box-shadow: 0 16px 48px rgba(88, 101, 242, 0.12);
    background-color: #FFFFFF;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-icon:active {
    transform: scale(0.8) rotate(-20deg);
}

.feature-card:hover .feature-icon {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 4px 8px rgba(88, 101, 242, 0.4));
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.3) rotate(15deg) translateY(0); }
    50% { transform: scale(1.4) rotate(15deg) translateY(-10px); }
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-description {
    color: #6a6a6a;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
}

.copy-btn {
    background-color: #F8F9FA;
    color: #1a1a1a;
    padding: 10px 24px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.copy-btn::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.copy-btn:hover {
    background-color: #5865F2;
    color: white;
    border-color: #5865F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.copy-btn:active {
    transform: translateY(0) scale(0.95);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step:active {
    transform: translateY(-5px) scale(0.98);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
}

.step:hover .step-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.6);
    background: linear-gradient(135deg, #7289DA 0%, #5865F2 100%);
}

.step:active .step-number {
    transform: scale(0.9) rotate(0deg);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #202122;
}

.step-description {
    color: #54595D;
    font-size: 1rem;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #F0F0F0;
}

.example-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5865F2, #7289DA, #5865F2);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.example-card:hover::after {
    transform: scaleX(1);
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
}

.example-title {
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 1rem;
    color: #202122;
    text-align: center;
}

.example-image {
    width: 100%;
    height: auto;
    display: block;
    border-top: 1px solid #EAECF0;
    border-bottom: 1px solid #EAECF0;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
}

.example-image.clickable {
    cursor: pointer;
    transition: all 0.5s ease;
}

.example-image.clickable:hover {
    opacity: 0.95;
    transform: scale(1.05);
    filter: brightness(1.05);
}

.example-image.clickable:active {
    transform: scale(0.98);
}

.example-caption {
    padding: 1rem 1.5rem 1.5rem;
    color: #54595D;
    text-align: center;
    font-size: 0.95rem;
}

.click-hint {
    display: block;
    font-size: 0.8rem;
    color: #5865F2;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Why WikiBot Section */
.why-wikibot {
    padding: 100px 20px;
    background-color: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.25rem 1.5rem;
    background-color: #F8F9FA;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.benefit:hover {
    background-color: #EAECF0;
    transform: translateX(10px);
    border-left-color: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.1);
}

.benefit-icon {
    font-size: 1.5rem;
    color: #3BA55D;
    font-weight: bold;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    display: inline-block;
}

.benefit-icon:active {
    transform: scale(0.7) rotate(-180deg);
}

.benefit:hover .benefit-icon {
    transform: scale(1.4) rotate(360deg);
    filter: drop-shadow(0 2px 4px rgba(59, 165, 93, 0.5));
}

.benefit:active .benefit-icon {
    transform: scale(1.1) rotate(720deg);
}

.benefit-text {
    color: #202122;
    font-size: 1rem;
}

/* Rate Limits Section */
.rate-limits {
    padding: 100px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.rate-limit-card {
    max-width: 650px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid #5865F2;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rate-limit-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #5865F2, #7289DA, #5865F2);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientShift 3s ease infinite;
}

.rate-limit-card:hover::before {
    opacity: 1;
}

.rate-limit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.3);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.rate-limit-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #202122;
}

.rate-limit-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-limit-item {
    padding: 1rem;
    background-color: #F8F9FA;
    border-radius: 8px;
    font-size: 1rem;
}

.rate-limit-item strong {
    color: #202122;
}

.rate-limit-note {
    text-align: center;
    color: #54595D;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    padding: 60px 20px 30px;
    background-color: #202122;
    color: #A2A9B1;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #A2A9B1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5865F2;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #5865F2;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-separator {
    color: #54595D;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: #72767D;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3BA55D;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.3s ease;
    font-weight: 600;
}

.toast.show {
    bottom: 30px;
    animation: toastPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastPop {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 50px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.zoomed {
    overflow: auto;
}

.lightbox.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-content.zoomed {
    max-width: none;
    max-height: none;
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #5865F2;
}

.lightbox-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #FFFFFF;
    padding: 10px 0;
    font-size: 1rem;
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #A2A9B1;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    z-index: 2002;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-card {
        padding: 2rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo svg {
        width: 80px;
        height: 80px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features,
    .how-it-works,
    .why-wikibot,
    .rate-limits {
        padding: 60px 20px;
    }
}

