/* Base Variables */
:root {
    --color-primary: #7F00FF;
    --color-secondary: #E100FF;
    --gradient-primary: linear-gradient(45deg, #7F00FF, #E100FF);
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #FFFFFF;
    --color-dark-bg: #1F1025;
    --color-card: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(127, 0, 255, 0.1);
    --shadow-md: 0 8px 15px rgba(127, 0, 255, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.3s ease;
    --font-main: 'Space Grotesk', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
}

.btn-secondary {
    background: rgba(127, 0, 255, 0.1);
    color: var(--color-primary);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(127, 0, 255, 0.5);
    color: white;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin: 2rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    transition: padding var(--transition-fast), box-shadow var(--transition-fast);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    position: relative;
    color: var(--color-text);
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.bar, .hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.hamburger::before {
    top: 0;
}

.hamburger::after {
    bottom: 0;
}

.bar {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle.active .bar {
    transform: translateY(-50%) scaleX(0);
}

.menu-toggle.active .hamburger::before {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 15px 20px;
    color: white;
    font-weight: 600;
}

.chat-messages {
    padding: 20px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    justify-content: flex-end;
}

.message-text {
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
}

.message.user .message-text {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai .message-text {
    background: #f0f0f0;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
    margin-right: 4px;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.2) 0%, rgba(225, 0, 255, 0.1) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.badge-group {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
}

.feature-icon {
    margin-bottom: 20px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: rgba(127, 0, 255, 0.03);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.step {
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 15px;
}

.step-connector {
    display: none;
}

.cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.05rem;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 2rem;
    color: rgba(127, 0, 255, 0.2);
    position: absolute;
    top: -10px;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: rgba(127, 0, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.cta-section .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    text-align: left;
}

.abstract-shape {
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    background: var(--color-dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-nav-group h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-nav-group a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .btn-group {
        justify-content: center;
    }

    .badge-group {
        justify-content: center;
    }
    
    .cta-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-content {
        margin: 0 auto;
    }
    
    .cta-content h2 {
        text-align: center;
    }
    
    .abstract-shape {
        margin: 0 auto;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        padding: 100px 30px 30px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-fast);
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    nav a {
        font-size: 1.2rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
