:root {
    --bg-base: #ffffff;
    --bg-subtle: #fafafa;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #09090b;
    --text-muted: #6b7280;
    
    --primary-color: #09090b;
    --primary-hover: #27272a;
    --secondary-bg: #f3f4f6;
    --secondary-hover: #e5e7eb;
    
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --accent-glow: rgba(37, 99, 235, 0.08);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --max-width: 1200px;
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
    max-width: 600px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.bg-subtle {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-bg);
    color: var(--text-main);
    border-color: var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}

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

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 40px;
}

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

/* Mockup */
.hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    perspective: 1000px;
}

.hero-dashboard-mockup {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image-wrapper:hover .hero-dashboard-mockup {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    height: 40px;
    background-color: #fafafa;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
    display: flex;
    height: 400px;
}

.mockup-sidebar {
    width: 200px;
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #fafafa;
}

.mockup-card-row {
    display: flex;
    gap: 24px;
}

.mockup-card {
    flex: 1;
    height: 120px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mockup-card.wide {
    flex: none;
    height: 160px;
}

.skeleton-line {
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 12px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.long { width: 80%; }

.skeleton-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin-bottom: 16px;
}

/* Grid layout */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.card:hover {
    background-color: #fafafa;
    border-color: #d1d5db;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #3b82f6;
    border: 1px solid var(--border-color);
}

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

.card-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 64px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background-color: var(--bg-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1.125rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-actions .btn { width: 100%; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
}
