/* ============================================
   LexLab - Dark Mode Design
   ============================================ */

:root {
    --accent: #2e8b57;
    --accent-light: #3cb371;
    --accent-glow: rgba(46, 139, 87, 0.15);

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-elevated: #1a1a1a;
    --bg-input: #0d0d0d;

    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --border-color: #222222;
    --border-light: #2a2a2a;

    --success: #2e8b57;
    --error: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   HEADER - Minimal top bar
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.header-actions .btn {
    font-size: 0.8125rem;
    padding: 8px 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-block {
    width: 100%;
}

.btn-success { background: var(--success); color: white; }
.btn-error { background: var(--error); color: white; }
.btn-warning { background: var(--warning); color: #111; }
.btn-info { background: var(--info); color: white; }

/* ============================================
   HERO - Split layout with tool
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 120px 40px 80px;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(46, 139, 87, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-metrics {
    display: flex;
    gap: 48px;
}

.metric {
    text-align: left;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   VALIDATION TOOL - Right side of hero
   ============================================ */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tool-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tool-body {
    padding: 24px;
}

.tool-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--text-muted);
}

.tab-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

.tab-btn i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#emailInput {
    width: 100%;
    height: 200px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    resize: none;
    transition: border-color 0.2s;
}

#emailInput:focus {
    outline: none;
    border-color: var(--accent);
}

#emailInput::placeholder {
    color: var(--text-muted);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.email-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Upload */
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.upload-zone i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.upload-zone h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-zone p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.file-types {
    display: block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.file-selected > i {
    font-size: 24px;
    color: var(--accent);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.file-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-remove-file {
    width: 28px;
    height: 28px;
    background: var(--error);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tool-action {
    margin-top: 20px;
}

/* ============================================
   RESULTS
   ============================================ */
.results-section {
    padding: 0 40px 80px;
}

.results-container {
    max-width: 1400px;
    margin: 0 auto;
}

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.results-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.result-stat {
    padding: 24px 16px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: background 0.2s;
}

.result-stat:last-child {
    border-right: none;
}

.result-stat.clickable {
    cursor: pointer;
}

.result-stat.clickable:hover {
    background: var(--bg-elevated);
}

.result-stat.clickable.active {
    background: var(--accent-glow);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-stat.valid .stat-number { color: var(--success); }
.result-stat.invalid .stat-number { color: var(--error); }
.result-stat.unknown .stat-number { color: var(--warning); }
.result-stat.role .stat-number { color: #a78bfa; }
.result-stat.spam .stat-number { color: var(--error); }
.result-stat.gibberish .stat-number { color: var(--info); }

.results-table-wrapper {
    max-height: 480px;
    overflow: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.results-table td {
    padding: 14px 20px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr:hover {
    background: var(--bg-elevated);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-valid {
    background: rgba(46, 139, 87, 0.15);
    color: var(--accent-light);
}

.status-invalid {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.status-unknown {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 2px;
}

.score-excellent { background: var(--success); }
.score-good { background: var(--info); }
.score-fair { background: var(--warning); }
.score-poor { background: var(--error); }

.score-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    min-width: 45px;
}

.issues-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.issue-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.issue-error { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.issue-warning { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.issue-info { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.issue-danger { background: rgba(231, 76, 60, 0.2); color: #c0392b; }

.type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--bg-input);
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================
   FEATURES - Bento grid style
   ============================================ */
.features-section {
    padding: 120px 40px;
    background: var(--bg-secondary);
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 64px;
    max-width: 500px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.bento-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.bento-item.large {
    grid-column: span 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 24px;
}

.bento-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   WHY SECTION - Simple comparison
   ============================================ */
.why-section {
    padding: 120px 40px;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.why-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.why-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.check-list {
    list-style: none;
    margin-bottom: 40px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li i {
    width: 24px;
    height: 24px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--accent);
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.comparison-body {
    padding: 8px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    padding: 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.comparison-row:hover {
    background: var(--bg-elevated);
}

.comparison-row .feature {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.comparison-row .check,
.comparison-row .cross {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
}

.comparison-row .check {
    color: var(--accent);
}

.comparison-row .cross {
    color: var(--text-muted);
}

.comparison-labels {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comparison-labels span:not(:first-child) {
    text-align: center;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 120px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 64px 40px 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-col li i {
    margin-right: 8px;
    color: var(--accent);
    width: 16px;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 80px;
    right: 24px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    border: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: rgba(46, 139, 87, 0.15);
    color: #4ade80;
}
.notification-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.notification-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #fcd34d;
}
.notification-info {
    background: rgba(52, 152, 219, 0.15);
    color: #7dd3fc;
}

.notification span {
    flex: 1;
    font-size: 0.875rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
}

/* ============================================
   PRICING PAGE
   ============================================ */
.page-hero {
    padding: 140px 40px 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.crypto-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.crypto-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.crypto-badge i {
    color: var(--accent);
}

.pricing-section {
    padding: 0 40px 120px;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.popular-badge {
    background: var(--accent);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.popular-badge i {
    margin-right: 6px;
}

.plan-header {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.plan-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.plan-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price .currency {
    font-size: 1.25rem;
    font-weight: 500;
    vertical-align: top;
    color: var(--text-muted);
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.plan-price .price.custom {
    font-size: 2rem;
    color: var(--accent);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.plan-features {
    padding: 24px;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.plan-features li i {
    margin-top: 2px;
    font-size: 10px;
}

.plan-features li .fa-check {
    color: var(--accent);
}

.plan-features li .fa-times {
    color: var(--text-muted);
}

.plan-footer {
    padding: 0 24px 24px;
}

.payment-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-note i {
    color: var(--accent);
}

/* Self-hosted */
.self-hosted-section {
    padding: 120px 40px;
    background: var(--bg-secondary);
}

.self-hosted-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.self-hosted-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.self-hosted-section h2 i {
    color: var(--accent);
    margin-right: 12px;
}

.self-hosted-section > .self-hosted-container > p {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.self-hosted-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.hosted-feature {
    padding: 24px;
}

.hosted-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin: 0 auto 16px;
}

.hosted-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.hosted-action {
    margin-top: 16px;
}

/* FAQ */
.faq-section {
    padding: 120px 40px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.faq-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 16px;
}

.faq-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 0 40px 120px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}

.contact-method-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-method-details p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

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

    .bento-item.large {
        grid-column: span 1;
    }

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

@media (max-width: 900px) {
    .header {
        padding: 0 24px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-section,
    .why-section,
    .cta-section,
    .faq-section,
    .self-hosted-section,
    .pricing-section,
    .results-section,
    .contact-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .self-hosted-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 48px 24px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .results-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .metric {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .bento-grid,
    .faq-grid,
    .self-hosted-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pricing-card .plan-header {
        padding: 20px 16px;
    }

    .pricing-card .plan-features {
        padding: 16px;
    }

    .pricing-card .plan-features li {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    .plan-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 14px;
    }

    .plan-header h3 {
        font-size: 1rem;
    }

    .plan-price .price {
        font-size: 2rem;
    }

    .plan-price .price.custom {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .comparison-labels,
    .comparison-row {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   PAGINATION CONTROLS
   ============================================ */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-page {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

/* ============================================
   TOOL BADGE
   ============================================ */
.tool-badge {
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   STATS BANNER
   ============================================ */
.stats-banner {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 40px;
}

.stats-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item-banner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item-banner .stat-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
}

.stat-item-banner .stat-content {
    flex: 1;
}

.stat-number-lg {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
    padding: 120px 40px;
    background: var(--bg-primary);
}

.problem-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.problem-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.problem-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.problem-stats {
    display: flex;
    gap: 32px;
}

.problem-stat {
    text-align: left;
}

.problem-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--error);
    margin-bottom: 4px;
}

.problem-stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.problem-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.problem-card i {
    font-size: 24px;
    margin-bottom: 16px;
}

.problem-card.danger i {
    color: var(--error);
}

.problem-card.warning i {
    color: var(--warning);
}

.problem-card.info i {
    color: var(--info);
}

.problem-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   BENTO TAG
   ============================================ */
.bento-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
    padding: 120px 40px;
    background: var(--bg-secondary);
    text-align: center;
}

.how-container {
    max-width: 1000px;
    margin: 0 auto;
}

.how-section .section-title {
    margin-bottom: 64px;
}

.how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.how-step {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.how-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.how-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-arrow {
    color: var(--accent);
    font-size: 24px;
    flex-shrink: 0;
}

/* ============================================
   API SECTION
   ============================================ */
.api-section {
    padding: 120px 40px;
    background: var(--bg-primary);
}

.api-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.api-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.api-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.api-features {
    list-style: none;
    margin-bottom: 32px;
}

.api-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.api-features li i {
    color: var(--accent);
    font-size: 14px;
}

.api-code {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.code-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.api-code pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.api-code code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-method { color: #ff7b72; font-weight: 600; }
.code-header-text { color: #79c0ff; }
.code-key { color: #7ee787; }
.code-string { color: #a5d6ff; }
.code-bool { color: #ff7b72; }
.code-number { color: #ffa657; }
.code-comment { color: #8b949e; }

/* ============================================
   USE CASES SECTION
   ============================================ */
.usecases-section {
    padding: 120px 40px;
    background: var(--bg-secondary);
    text-align: center;
}

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

.usecases-section .section-title {
    margin-bottom: 64px;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.usecase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.usecase-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.usecase-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.usecase-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA NOTE
   ============================================ */
.cta-note {
    margin-top: 32px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cta-note i {
    color: var(--accent);
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE FOR NEW SECTIONS
   ============================================ */
@media (max-width: 1200px) {
    .stats-banner-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .api-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 900px) {
    .stats-banner {
        padding: 32px 24px;
    }

    .problem-section,
    .how-section,
    .api-section,
    .usecases-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .how-steps {
        flex-direction: column;
        gap: 32px;
    }

    .how-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .stats-banner-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-visual {
        grid-template-columns: 1fr;
    }

    .problem-stats {
        flex-direction: column;
        gap: 20px;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .problem-content h2,
    .api-content h2 {
        font-size: 2rem;
    }
}
