/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables for Consistent Design System */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background: #ffffff;
    --background-light: #f8fafc;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    height: 48px;
    transition: var(--transition);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    background: var(--background-gradient);
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="36" cy="24" r="1.5"/><circle cx="18" cy="36" r="1.5"/><circle cx="42" cy="6" r="1.5"/><circle cx="6" cy="54" r="1.5"/><circle cx="24" cy="48" r="1.5"/></g></svg>') repeat;
    opacity: 0.3;
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-image {
    max-width: 100%;
    height: auto;
    margin-top: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.demo-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Sections */
section {
    padding: 96px 0;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 24px auto 48px;
    border-radius: 2px;
}

/* Feature and Use Case Grids */
.feature-grid, .use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-link, .use-case-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature, .use-case {
    background: var(--background);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before, .use-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--background-gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature:hover, .use-case:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature:hover::before, .use-case:hover::before {
    opacity: 1;
}

.feature h3, .use-case h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature p, .use-case p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Contact Section */
#contact {
    background: var(--background-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="36" cy="24" r="1.5"/><circle cx="18" cy="36" r="1.5"/><circle cx="42" cy="6" r="1.5"/><circle cx="6" cy="54" r="1.5"/><circle cx="24" cy="48" r="1.5"/></g></svg>') repeat;
    opacity: 0.3;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2 {
    color: white;
}

#contact h2::after {
    background: rgba(255, 255, 255, 0.3);
}

#contact p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Button */
.btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--text-muted);
    text-align: center;
    padding: 48px 0;
}

footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header .container {
        padding: 12px 16px;
    }
    
    nav ul {
        gap: 24px;
    }
    
    nav a {
        font-size: 14px;
    }
    
    #hero {
        padding: 80px 0;
    }
    
    section {
        padding: 64px 0;
    }
    
    .feature-grid, .use-case-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 48px;
    }
    
    .feature, .use-case {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .demo-image {
        margin-top: 32px;
    }
    
    section h2::after {
        width: 40px;
        margin: 16px auto 32px;
    }
}

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

.feature, .use-case {
    animation: fadeInUp 0.6s ease-out forwards;
}

.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; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Content Page Styling */
#content {
    padding: 80px 0;
}

#content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    margin-top: 60px;
    color: var(--text-primary);
}

#content h2:first-child {
    margin-top: 0;
}

#content h3 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

#content h4 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

#content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

#content ul {
    margin: 24px 0;
    padding-left: 32px;
}

#content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Comparison Box */
.comparison-box {
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 32px;
    margin: 32px 0;
    border-radius: var(--radius-md);
}

.comparison-box p {
    margin-bottom: 16px;
}

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

/* Example Box */
.example-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
}

.example-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Case Study */
.case-study {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 48px 0;
    box-shadow: var(--shadow-md);
}

.case-study h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    background: var(--background-gradient);
    color: white;
    text-align: center;
    padding: 48px;
    border-radius: var(--radius-xl);
    margin: 60px 0 40px;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

/* Focus States for Accessibility */
a:focus, .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}