:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --highlight-color: #667eea;
    --glow-color: rgba(102, 126, 234, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* FireFox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Floating animated shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    bottom: 20%;
    left: 15%;
    animation-delay: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    max-width: 800px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo section */
.logo-container {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.logo {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.8s forwards;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

/* Tagline */
.tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Description */
.description {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.description p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.description p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
}

/* CTA Button */
.cta-container {
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.cta-button {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 10px 40px var(--glow-color);
}

.cta-button:hover::before {
    opacity: 1;
}

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

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Tools Section */
.tools-section {
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.tools-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b4b4c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-card {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover .tool-card-glow {
    opacity: 1;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card:hover .tool-link-arrow {
    transform: translate(5px, -5px);
    opacity: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    padding: 15px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.tool-name {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tool-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.tool-link-arrow {
    width: 24px;
    height: 24px;
    align-self: flex-end;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-link-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--highlight-color);
}

/* Scroll indicator */
.scroll-indicator {
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(180, 180, 200, 0.5);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(180, 180, 200, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .description p {
        margin-bottom: 1.25rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tools-section {
        margin-bottom: 3rem;
    }

    .shape {
        filter: blur(40px);
    }
}

@media (max-width: 480px) {
    .tagline {
        margin-bottom: 2rem;
    }

    .description {
        margin-bottom: 2rem;
    }

    .cta-container {
        margin-bottom: 3rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}