/* ============================================
   Remal-R&D - Simple, Content-Focused Styles
   ============================================ */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f6f8fa;
    --bg-light: #e9eef6;
    --bg-card: #fafdff;
    --border: #cbd5e1;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
}

html { scroll-behavior: smooth; }

body.simple {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   Navigation
   ============================================ */
.nav-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.nav-simple .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-simple .logo i {
    color: var(--primary);
}

.nav-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

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

.btn-small {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 15px;
}

.btn-ghost:hover {
    background: var(--bg-light);
}

/* ============================================
   Hero
   ============================================ */
.hero-simple {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-simple h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-simple h1 span {
    color: var(--primary);
}

.hero-simple p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Workflow Preview
   ============================================ */
.workflow-preview {
    padding: 40px 24px 60px;
    overflow-x: auto;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pipe-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 100px;
}

.pipe-node i {
    font-size: 24px;
}

.pipe-node span {
    font-size: 13px;
    color: var(--text-muted);
}

.pipe-node.input i { color: #22c55e; }
.pipe-node.process i { color: #f59e0b; }
.pipe-node.ml i { color: #ec4899; }
.pipe-node.output i { color: #8b5cf6; }
.pipe-node.export i { color: #ec4899; }

.pipe-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   What Section
   ============================================ */
.what-section {
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.what-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.what-item {
    text-align: center;
    padding: 24px;
}

.what-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.what-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.what-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   Use Cases
   ============================================ */
.use-cases {
    padding: 60px 24px;
    background: var(--bg-light);
}

.use-cases h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.case-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.case-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.case-icon i {
    font-size: 20px;
    color: var(--primary);
}

.case-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.case-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   CTA
   ============================================ */
.cta-simple {
    padding: 80px 24px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-simple h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-simple p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.email-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.email-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 15px;
    min-width: 250px;
}

.email-form button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.email-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.email-note a {
    color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer-simple {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-simple a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================
   DEMO PAGE
   ============================================ */
.demo-page {
    min-height: 100vh;
}

.demo-main {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px;
}

.demo-main h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
}

.demo-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Pipeline Steps */
.demo-pipeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.demo-step.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.demo-step.done {
    opacity: 1;
    transform: scale(1);
    border-color: var(--success);
}

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

.step-num {
    width: 28px;
    height: 28px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.demo-step.done .step-num {
    background: var(--success);
}

.step-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.step-content {
    padding: 20px;
}

/* Data Table */
.data-table {
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

.data-table td.filled {
    color: var(--success);
}

.data-info {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Process Block */
.process-block {
    margin-bottom: 16px;
}

.process-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.process-action i {
    color: var(--warning);
    width: 20px;
}

.process-action .action-result {
    margin-left: auto;
    color: var(--success);
    font-size: 12px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-box {
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Chart */
.chart-container {
    text-align: center;
}

.simple-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 150px;
    margin-bottom: 16px;
}

.chart-bar {
    width: 50px;
    height: var(--height, 50%);
    background: linear-gradient(to top, var(--primary), #8b5cf6);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    transition: height 0.5s ease;
}

.chart-bar span {
    font-size: 10px;
    color: white;
    font-weight: 500;
}

.chart-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Export */
.export-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 14px;
}

.export-item i {
    font-size: 18px;
}

.export-item:nth-child(1) i { color: #ef4444; }
.export-item:nth-child(2) i { color: #22c55e; }
.export-item:nth-child(3) i { color: #f59e0b; }

/* Flow Arrow */
.flow-arrow {
    text-align: center;
    color: var(--border);
    padding: 8px;
    transition: color 0.3s;
}

.flow-arrow.active {
    color: var(--success);
}

/* Controls */
.demo-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.demo-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .hero-simple { padding: 60px 20px 30px; }
    .hero-simple h1 { font-size: 28px; }
    .hero-actions { flex-direction: column; }
    .pipeline-flow { gap: 8px; }
    .pipe-node { padding: 14px 16px; min-width: 80px; }
    .pipe-node i { font-size: 20px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .email-form { flex-direction: column; }
    .email-form input { min-width: 100%; }
}
