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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fafafa;
}

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

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: #2563eb;
}

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

.header nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header nav a:hover {
    color: #2563eb;
}

.nav-btn {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-btn-primary {
    background: #2563eb;
    color: #fff !important;
}

.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-btn {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.trust-line {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.who-section, .what-section, .insights-section, .how-section, .pricing-section, .comparison-section, .try-section, .faq-section {
    padding: 80px 0;
}

.who-section {
    background: #fff;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.who-list {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
}

.who-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    border-bottom: 1px solid #eee;
}

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

.who-list .killer-line {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.15rem;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 2px solid #2563eb;
    border-bottom: none;
}

.what-section {
    background: #f8fafc;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.col h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #1e3a5f;
}

.col ul {
    list-style: none;
}

.col ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #444;
}

.col ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
}

.exports {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 1.1rem;
}

.insights-section {
    background: #fff;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.insight-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
}

.insight-card p {
    font-style: italic;
    color: #166534;
    font-size: 1rem;
}

.no-fluff {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3a5f;
}

.how-section {
    background: #1e3a5f;
    color: #fff;
}

.how-section h2 {
    color: #fff;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 260px;
}

.step-num {
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 12px;
}

.step p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.time-note {
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-section {
    background: #fff;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
}

.pricing-card.paid {
    border-color: #2563eb;
    background: #fff;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.pricing-card ul li {
    padding: 8px 0;
    color: #444;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.after-trial {
    color: #666;
    margin-bottom: 20px;
}

.cancel-note, .no-contract {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.comparison-section {
    background: #f8fafc;
}

.comparison-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th, .comparison-table td {
    padding: 16px 24px;
    text-align: left;
}

.comparison-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

.comparison-table .bad {
    color: #dc2626;
}

.comparison-table .good {
    color: #16a34a;
    font-weight: 600;
}

.try-section {
    background: #fff;
}

.analysis-form {
    max-width: 600px;
    margin: 32px auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #444;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.analysis-form .cta-btn {
    width: 100%;
    margin-top: 8px;
}

.result-container {
    margin-top: 32px;
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
}

.loading {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1e3a5f;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.competitors-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.competitors-table th, .competitors-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.competitors-table th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

.download-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #1d4ed8;
}

.download-btn.secondary {
    background: #475569;
}

.download-btn.secondary:hover {
    background: #334155;
}

.faq-section {
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1e3a5f;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
}

.final-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.final-cta h2 {
    color: #fff;
    margin-bottom: 32px;
}

.credit-note {
    margin-top: 16px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer {
    background: #1a1a2e;
    color: #888;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

.auth-section {
    padding: 80px 0;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.auth-card h2 {
    text-align: left;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 1rem;
}

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

.auth-form .cta-btn {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: #666;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.logo {
    text-decoration: none;
}

.nav-user {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.logout-btn:hover {
    background: #f3f4f6;
    color: #1a1a2e;
}

.dashboard-section {
    padding: 48px 0 80px;
    min-height: calc(100vh - 130px);
}

.dashboard-section h2 {
    text-align: left;
    margin-bottom: 24px;
}

.inactive-banner {
    text-align: center;
    padding: 60px 40px;
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 16px;
    margin-bottom: 32px;
}

.inactive-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.inactive-banner h3 {
    font-size: 1.5rem;
    color: #92400e;
    margin-bottom: 8px;
}

.inactive-banner p {
    color: #a16207;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.job-history-section {
    margin-top: 60px;
}

.job-history-section h2 {
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 32px;
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-running {
    background: #dbeafe;
    color: #1e40af;
}

.status-failed {
    background: #fef2f2;
    color: #dc2626;
}

.status-pending {
    background: #f3f4f6;
    color: #6b7280;
}

.action-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 12px;
}

.action-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .two-col, .form-row, .pricing-cards, .insights-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .result-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header nav {
        display: none;
    }
    
    .download-btns {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-section {
        padding: 40px 0;
    }
}
