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

:root {
    --bg: #0a0a0f;
    --card: #13131a;
    --border: #1f1f2e;
    --text: #e5e5e7;
    --muted: #8b8b95;
    --accent: #8b5cf6;
    --accent2: #ec4899;
    --accent3: #3b82f6;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.bg-orb:nth-child(1) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -10%; left: -5%;
    animation-delay: 0s;
}

.bg-orb:nth-child(2) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: -15%; right: -10%;
    animation-delay: -7s;
}

.bg-orb:nth-child(3) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: 40%; left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -60px) scale(1.1); }
    66% { transform: translate(-60px, 80px) scale(0.9); }
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.7); }
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

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

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s infinite;
}

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

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 1s ease-out;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.feature {
    background: rgba(19, 19, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out backwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

.feature:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.feature h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature p {
    font-size: 13px;
    color: var(--muted);
}

/* Steps */
.steps {
    background: rgba(19, 19, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease-out;
}

.steps-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    text-align: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31, 31, 46, 0.5);
}

.step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.step-content {
    font-size: 15px;
    color: var(--text);
    padding-top: 4px;
}

kbd {
    background: #1f1f2e;
    border: 1px solid #333340;
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 2px 8px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #fff;
    display: inline-block;
    margin: 0 2px;
}

/* CTA button */
.cta-container {
    text-align: center;
    margin-bottom: 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.4s ease-out;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(139, 92, 246, 0.55);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button.copied {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* FAQ */
.faq {
    margin-bottom: 60px;
    animation: fadeInUp 1.6s ease-out;
}

.faq-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.faq-item {
    background: rgba(19, 19, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-question {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05);
}

.faq-question .arrow {
    transition: transform 0.3s;
    color: var(--muted);
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    padding: 0 24px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Toast */
.toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--success);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s ease-out;
}

.theme-tab {
    padding: 8px 20px;
    background: rgba(19, 19, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.theme-tab:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text);
}

.theme-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 640px) {
    .container { padding: 24px 16px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .cta-button { padding: 16px 32px; font-size: 15px; width: 100%; }
    .steps { padding: 20px; }
}
