:root {
    --primary: #6d28d9;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, var(--primary) 0%, var(--dark) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    animation: grid 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid {
    0% { transform: translateZ(0) rotate(0); }
    100% { transform: translateZ(0) rotate(360deg); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    z-index: 1;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--light);
    cursor: pointer;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.product-card:hover .card-icon {
    transform: scale(1.1);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.product-detail {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    scroll-margin-top: 5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    overflow: hidden;
}

.product-detail::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    transform-origin: center;
    animation: gridRotate 60s linear infinite;
    z-index: 0;
}

@keyframes gridRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-detail:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.detail-content {
    max-width: 800px;
    background: rgba(31, 41, 55, 0.8);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.detail-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--secondary) 0%, transparent 70%);
    opacity: 0.05;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.2); opacity: 0.08; }
    100% { transform: scale(1); opacity: 0.05; }
}

.detail-content h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.detail-content p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.detail-content ul {
    list-style: none;
}

.detail-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.contact {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.contact h2 {
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    background: var(--secondary);
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
}