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

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #999;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border: #e5e5e5;
    --accent: #10b981;
    --accent-hover: #059669;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animated elements */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    animation: fadeIn 0.5s ease;
    transition: border-color 0.3s ease;
}

.navbar:hover {
    border-bottom-color: var(--text-primary);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    transition: transform 0.3s ease;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-icon {
    transform: rotate(5deg);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

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

.hero {
    padding: 140px 0 120px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.1s both;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    border-color: var(--text-primary);
    background: var(--bg-primary);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 1s ease 0.2s both;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 1s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .step:nth-child(1) {
    transition-delay: 0.1s;
}

.section.visible .step:nth-child(2) {
    transition-delay: 0.3s;
}

.section.visible .step:nth-child(3) {
    transition-delay: 0.5s;
}

.section.visible .step {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    background: #000;
}

.step h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.step:hover h3 {
    color: var(--text-primary);
}

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

.example {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.example-side {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.example-side:nth-child(2) {
    transform: translateX(30px);
}

.section.visible .example-side:nth-child(1) {
    transition-delay: 0.2s;
}

.section.visible .example-side:nth-child(2) {
    transition-delay: 0.4s;
}

.section.visible .example-side {
    opacity: 1;
    transform: translateX(0);
}

.example-side h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.example-side:hover h3 {
    color: var(--text-primary);
}

.example-box {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.example-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
}

.example-box-gray {
    background: var(--bg-secondary);
}

.example-box-white {
    background: var(--bg-primary);
}

.token {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #92400e;
}

.highlight {
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #065f46;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.section.visible .feature {
    animation: fadeInUp 0.6s ease forwards;
}

.section.visible .feature:nth-child(1) { animation-delay: 0.1s; }
.section.visible .feature:nth-child(2) { animation-delay: 0.2s; }
.section.visible .feature:nth-child(3) { animation-delay: 0.3s; }
.section.visible .feature:nth-child(4) { animation-delay: 0.4s; }
.section.visible .feature:nth-child(5) { animation-delay: 0.5s; }
.section.visible .feature:nth-child(6) { animation-delay: 0.6s; }

.feature:hover {
    border-color: var(--text-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature:hover h3 {
    color: var(--text-primary);
}

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

.install-steps {
    max-width: 700px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .install-step:nth-child(1) { transition-delay: 0.1s; }
.section.visible .install-step:nth-child(2) { transition-delay: 0.2s; }
.section.visible .install-step:nth-child(3) { transition-delay: 0.3s; }
.section.visible .install-step:nth-child(4) { transition-delay: 0.4s; }

.section.visible .install-step {
    opacity: 1;
    transform: translateX(0);
}

.install-step:hover {
    transform: translateX(8px);
}

.install-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.install-step:hover .install-number {
    transform: scale(1.1) rotate(5deg);
    background: #000;
}

.install-content {
    flex: 1;
    padding-top: 4px;
}

.install-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.install-step:hover .install-content h3 {
    color: var(--text-primary);
}

.install-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.install-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .cta {
    opacity: 1;
    transform: translateY(0);
}

.cta h2 {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    color: var(--text-tertiary);
    font-size: 14px;
    animation: fadeIn 0.8s ease;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Floating Help Button */
.help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border-radius: 28px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: fadeInUp 0.6s ease 0.5s both;
    border: none;
    cursor: pointer;
}

.help-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.help-button:active {
    transform: translateY(0);
}

.help-button svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.help-button-text {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .steps {
        gap: 32px;
    }
    
    .features-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 17px;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px 16px;
        margin: 0 -16px;
    }
    
    .stat {
        padding: 12px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 0 16px;
    }
    
    .hero-feature {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-links {
        gap: 12px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        padding: 8px 8px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
    }
    
    .step {
        padding: 0 8px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .example {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 8px;
    }
    
    .example-side {
        transform: translateY(20px) !important;
    }
    
    .example-side:nth-child(2) {
        transform: translateY(20px) !important;
    }
    
    .example-box {
        padding: 20px;
    }
    
    .install-steps {
        padding: 0 8px;
    }
    
    .install-step {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px 0;
    }
    
    .install-number {
        margin: 0 auto;
    }
    
    .install-content {
        padding-top: 0;
    }
    
    .cta {
        padding: 0 16px;
    }
    
    .cta h2 {
        font-size: 26px;
    }
    
    .cta p {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 16px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
    
    .help-button {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .help-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.3px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .title-line {
        display: inline;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 32px;
    }
    
    .hero-stats {
        gap: 16px;
        padding: 20px 12px;
    }
    
    .stat {
        padding: 8px 0;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hero-features {
        gap: 8px;
        padding: 0 8px;
    }
    
    .hero-feature {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        padding: 0 8px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .logo {
        font-size: 16px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-links {
        flex-direction: row;
        gap: 12px;
        font-size: 12px;
    }
    
    .nav-links a {
        padding: 6px 4px;
        min-height: 40px;
    }
    
    .steps {
        gap: 28px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .step h3 {
        font-size: 18px;
    }
    
    .step p {
        font-size: 14px;
    }
    
    .features-grid {
        gap: 12px;
    }
    
    .feature {
        padding: 16px;
    }
    
    .feature h3 {
        font-size: 16px;
    }
    
    .feature p {
        font-size: 13px;
    }
    
    .example-box {
        padding: 16px;
        font-size: 14px;
    }
    
    .install-step {
        padding: 12px 0;
    }
    
    .install-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .install-content h3 {
        font-size: 16px;
    }
    
    .install-content p {
        font-size: 14px;
    }
    
    .cta h2 {
        font-size: 24px;
    }
    
    .cta p {
        font-size: 15px;
    }
    
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer-bottom {
        font-size: 11px;
    }
    
    .help-button {
        bottom: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 13px;
        gap: 0;
    }
    
    .help-button-text {
        display: none;
    }
}
