/* Created by: Frodo | Purpose: The API Ledger unified styles | Updated for 4-service landing */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #050505;
    border-bottom: 1px solid #222222;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-link {
    color: #999;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #3b82f6;
}

/* Section spacing */
section {
    padding: 80px 20px;
}

.section-title {
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

/* Hero Section */
.hero {
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h2 {
    color: #3b82f6;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero p {
    color: #999;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #222222;
    color: #ccc;
    margin-left: 16px;
}

.btn-secondary:hover {
    background: #333333;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #999;
    border: 1px solid #333;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: #151515;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #333;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #888;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Steps/Process */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.step p {
    color: #888;
    font-size: 16px;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: #151515;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: #3b82f6;
    position: relative;
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-card h4 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 18px;
    color: #888;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    color: #999;
    padding: 8px 0;
    border-bottom: 1px solid #222222;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-tag {
    color: #666;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 20px;
    background: #111111;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
}

.cta-section h3 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #050505;
    border-top: 1px solid #222222;
    padding: 40px 20px;
    text-align: center;
}

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

.footer-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-contact {
    color: #888;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--text-primary, #fff);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted, #888);
}

.auth-form {
    background: #151515;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group input::placeholder {
    color: #555;
}

.form-hint {
    color: #888;
    font-size: 13px;
    margin-top: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #222222;
}

.auth-divider span {
    padding: 0 1rem;
    color: #888;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #888;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
}

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

/* Flash Messages */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.flash-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.flash-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Button sizes */
.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Dashboard styles */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta {
    background: #3b82f6;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover {
    background: #2563eb;
}

.nav-form {
    display: inline;
}

.btn-logout {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
}

.btn-logout:hover {
    color: #ef4444;
}

.nav-email {
    color: #888;
    font-size: 14px;
    padding: 6px 12px;
    background: #151515;
    border-radius: 4px;
}

.main-content {
    padding-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: #ccc;
        transition: all 0.3s ease;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0a0a0a;
        border-bottom: 1px solid #222;
        padding: 1rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link, .nav-form {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .nav-cta {
        margin: 1rem 20px;
    }
}
