/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #475569;
    --secondary-hover: #334155;
    --secondary-light: #f8fafc;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    
    --border-color: #e2e8f0;
    
    --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);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   Layout & Typography
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 48px 0; }
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
    border-color: #cbd5e1;
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    background-color: var(--primary-light);
    color: var(--primary);
}
.secondary-badge {
    background-color: #f1f5f9;
    color: var(--secondary);
}

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}
.icon-wrap svg { width: 24px; height: 24px; }
.primary-icon { background: var(--primary-light); color: var(--primary); }
.error-icon { background: #fef2f2; color: #ef4444; }
.icon-sm { width: 20px; height: 20px; display: inline; vertical-align: middle; margin-right: 4px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tag {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--secondary);
}

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

.hero-image-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Schematic */
.hero-schematic {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.schematic-step {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.schematic-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.doc-w { background: #2563eb; }
.doc-x { background: #16a34a; }
.doc-n { background: #8b5cf6; }

.step-text {
    text-align: left;
}
.step-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}
.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}
.schematic-arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0;
}
.schematic-arrow-down .arr-label {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.schematic-arrow-down .arr-icon {
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 36px; }
    .hero-tags { justify-content: center; }
    .hero-actions { flex-direction: column; }
    .hero-image-placeholder { margin-top: 32px; width: 100%; }
}

/* ==========================================================================
   Sections Specifics
   ========================================================================== */
.pain-card h3, .feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}
.pain-card p, .feature-card p {
    color: var(--text-muted);
}

/* Workflow */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--bg-alt);
    padding: 0 10px;
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 8px var(--primary-light);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--primary-light);
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .workflow-steps { flex-direction: column; gap: 40px; }
    .step-connector { display: none; }
}

/* Mini Cards */
.feature-mini-card {
    padding: 24px;
    text-align: center;
}
.feature-mini-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-mini-card p { font-size: 13px; color: var(--text-muted); }



/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-muted); }
.price { font-size: 40px; font-weight: 800; color: var(--text-main); margin-bottom: 24px; }
.price .unit { font-size: 16px; font-weight: normal; color: var(--text-light); }
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    flex: 1;
}
.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.pricing-card.popular:hover { transform: scale(1.04); }
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-2px); }
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}
.faq-item h4 { font-size: 18px; margin-bottom: 12px; }
.faq-item p { color: var(--text-muted); }
.faq-item code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0;
    text-align: center;
}
.footer-brand {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}
.footer .copyright {
    margin-top: 24px;
    font-size: 14px;
    border-top: 1px solid #1e293b;
    padding-top: 24px;
}
