:root {
    --bg-dark: #09090b;
    --surface-dark: #18181b;
    --border-dark: #27272a;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --surface-dark: #ffffff;
    --border-dark: #e2e8f0;
    --text-primary: #0f172a;
    --text-muted: #475569; /* Darker for better contrast */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .am-btn-secondary {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .am-btn-secondary:hover {
    background-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .am-logo-text {
    font-family: 'Outfit', sans-serif;
}

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

/* Navbar */
.am-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 16px 0;
}

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

.am-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.am-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.am-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.am-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.am-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.am-btn-primary, .am-nav-links a.am-btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.am-btn-primary:hover, .am-nav-links a.am-btn-primary:hover {
    background-color: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

.am-btn-secondary:hover {
    background-color: #27272a;
}

.am-btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Glass Mockup */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
}
.dots span:nth-child(2) { background-color: #eab308; }
.dots span:nth-child(3) { background-color: #22c55e; }

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.95rem;
}

.chat-bubble.ai {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    align-self: flex-start;
}

.chat-bubble.user {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
}

.math-block {
    background-color: var(--surface-dark);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    border: 1px dashed var(--border-dark);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-dark);
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Background Blobs */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.4;
}

.blob-1 {
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--primary);
}

.blob-2 {
    bottom: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background-color: var(--secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--surface-dark);
    border-top: 1px solid var(--border-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 64px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--surface-dark);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.feature-icon svg {
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.feature-card:hover .feature-icon {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-card:hover .feature-icon svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.am-footer {
    padding: 64px 0;
    border-top: 1px solid var(--border-dark);
}

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

.am-footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.am-footer-brand p {
    color: var(--text-muted);
}

.am-footer-links {
    display: flex;
    gap: 24px;
}

.am-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.am-footer-links a:hover {
    color: var(--text-primary);
}
.am-nav-links .nav-dropdown.active .am-dropdown-menu { display: flex !important; }
