/* StartEase.app — Main Stylesheet
   v0.1.0
   Desktop-first, breakpoints at 900/768/480 */

/* ========== 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: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

a:focus-visible {
    outline: 2px solid #2563eb;
    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;
}

.content-narrow {
    max-width: 760px;
}

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

.ecosystem-nav .container {
    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: #2563eb;
}

.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;
    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: #2563eb;
    background: #f1f5f9;
}

.nav-link.active {
    color: #2563eb;
    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: #2563eb;
    color: #fff;
}

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

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

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

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

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 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: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

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

.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 Heroes (subpages) */
.page-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 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;
}

.page-hero-eti {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}

.page-hero-startboard {
    background: linear-gradient(135deg, #1a3c34 0%, #059669 100%);
}

.page-hero-256bit {
    background: linear-gradient(135deg, #4a1d6e 0%, #7c3aed 100%);
}

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

.alt-bg {
    background: #f8fafc;
}

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

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

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ========== 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);
    color: #333;
}

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

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

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

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

.card-cta {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-eti:hover { border-color: #2563eb; }
.card-eti:hover .card-icon { color: #2563eb; }

.card-startboard:hover { border-color: #059669; }
.card-startboard .card-icon { color: #059669; }

.card-256bit:hover { border-color: #7c3aed; }
.card-256bit .card-icon { color: #7c3aed; }

/* ========== Disciplines Grid (ETI page) ========== */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.discipline-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.discipline-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.discipline-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ========== 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: #2563eb;
    border-radius: 50%;
}

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

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

.cta-note {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========== Ecosystem Journey (Homepage) ========== */
.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: #2563eb;
    background: #eff6ff;
}

.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: #2563eb;
    color: #fff;
}

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

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

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

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

.journey-desc {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ========== Ecosystem Detail (About page) ========== */
.ecosystem-detail {
    margin-top: 2rem;
}

.eco-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.eco-item h3 {
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: #2563eb;
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== Coming Soon ========== */
.coming-soon {
    text-align: center;
    padding: 4rem 1rem;
}

.coming-soon h2 {
    margin-bottom: 1rem;
    color: #64748b;
}

.coming-soon p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* ========== 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: #93c5fd;
}

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

.footer-brand a {
    color: #93c5fd;
}

.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 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .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;
    }
}

/* ========== 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; }
}

/* ========== 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;
}
