/* LaunchEase — Main Stylesheet
   v0.1.0
   Desktop-first, breakpoints at 900/768/480
   Brand: Amber/warm orange (#d97706 primary) */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #b45309;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #92400e;
}

a:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

img { max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4 {
    line-height: 1.2;
    color: #111;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* ========== Layout ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    max-width: 100%;
    padding: 0 1.5rem;
}

/* ========== Ecosystem Nav (shared across products) ========== */
.ecosystem-nav {
    background: #1e293b;
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.ecosystem-nav .container,
.ecosystem-nav .container-fluid {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ecosystem-label {
    color: #94a3b8;
    font-weight: 600;
    margin-right: 0.5rem;
}

.ecosystem-link {
    color: #cbd5e1;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}

.ecosystem-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.ecosystem-link.current {
    color: #fff;
    font-weight: 600;
}

/* ========== Site Header ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { text-decoration: none; }

.logo-text {
    font-size: 1.5rem;
    color: #333;
    font-weight: 300;
}

.logo-text strong {
    font-weight: 700;
    color: #d97706;
}

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

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.2s;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: #555;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #d97706;
    background: #fffbeb;
}

.nav-link.active {
    color: #d97706;
    font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

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

.btn-primary:hover {
    background: #b45309;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #d97706;
    border-color: #d97706;
}

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

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #fef3c7;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-subtitle em {
    color: #fff;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: #fff;
    color: #92400e;
}

.hero-cta .btn-primary:hover {
    background: #fef3c7;
    color: #78350f;
}

.hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Page hero (subpages) */
.page-hero {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    max-width: 650px;
}

/* ========== Sections ========== */
.content-section {
    padding: 4rem 0;
}

.alt-bg {
    background: #fffbeb;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========== Cards ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d97706;
    color: #333;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.card-icon {
    color: #d97706;
    margin-bottom: 1rem;
}

/* ========== Feature List ========== */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: #d97706;
    border-radius: 50%;
}

/* ========== Pricing Cards ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: #d97706;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.15);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #d97706;
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-setup {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: 700;
}

/* ========== How It Works (Steps) ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #d97706;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }

.step p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ========== Ecosystem Journey ========== */
.journey-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.journey-step {
    text-align: center;
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-width: 180px;
}

.journey-step.current {
    border-color: #d97706;
    background: #fffbeb;
}

.journey-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.journey-step.current .journey-number {
    background: #d97706;
    color: #fff;
}

.journey-step h3 { margin-bottom: 0.25rem; }

.journey-step p {
    color: #64748b;
    font-size: 0.9rem;
}

.journey-step p em { color: #d97706; }

.journey-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* ========== CTA Block ========== */
.cta-block {
    text-align: center;
    padding: 3rem;
    background: #fffbeb;
    border-radius: 12px;
    margin-top: 2.5rem;
}

.cta-block h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* ========== Flash Messages ========== */
.flash-container {
    padding: 0.5rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

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

.form-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-help {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ========== Auth Page ========== */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

.auth-toggle a {
    font-weight: 600;
}

/* ========== Badge ========== */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-explorer { background: #e2e8f0; color: #475569; }
.badge-launcher { background: #d97706; color: #fff; }
.badge-accelerator { background: #7c3aed; color: #fff; }
.badge-enterprise { background: #1e293b; color: #fff; }

/* ========== Dashboard Layout ========== */
.dashboard-body {
    background: #f8fafc;
}

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 28px);
}

.sidebar {
    width: 240px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #334155;
}

.sidebar-header .logo-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.sidebar-header .logo-text strong {
    color: #fbbf24;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul { list-style: none; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-right: 3px solid #fbbf24;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #334155;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-user-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-logout {
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toggle .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #64748b;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
}

/* Dashboard cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
}

/* ========== Footer ========== */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-brand .logo-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.footer-brand .logo-text strong { color: #fbbf24; }

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-brand a { color: #fbbf24; }

.footer-nav h4 {
    color: #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }

.footer-nav a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========== Responsive: 900px ========== */
@media (max-width: 900px) {
    .card-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .journey-flow {
        flex-direction: column;
        gap: 1rem;
    }

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

    .journey-step {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* ========== Responsive: 768px ========== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-list.open { display: flex; }

    .site-header .container { position: relative; }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 3.5rem 0; }
    .content-section { padding: 3rem 0; }

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

    /* Dashboard responsive */
    .sidebar {
        position: fixed;
        left: -240px;
        top: 28px;
        bottom: 0;
        z-index: 200;
        transition: left 0.3s;
    }

    .sidebar.open { left: 0; }

    .sidebar-toggle { display: flex; }

    .dashboard-content { padding: 1rem; }
    .dashboard-header { padding: 1rem; }

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

/* ========== Responsive: 480px ========== */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { padding: 2.5rem 0; }
    .content-section { padding: 2rem 0; }
    .card { padding: 1.5rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .cta-block { padding: 2rem 1rem; }
    .auth-card { padding: 1.5rem; }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
