/* style.css — Torzon Market main stylesheet */
/* No JavaScript, fully static, responsive, accessible */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #e0e7ff;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-card: #ffffff;
    --text: #1f2937;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 1rem;
    --radius-sm: 0.5rem;
    --transition: 0.2s ease;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
}

/* Container */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn--solid {
    background: var(--primary);
    color: white;
}
.btn--solid:hover {
    background: var(--primary-dark);
    text-decoration: none;
}
.btn--line {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn--line:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.9);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo__badge {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.logo__text {
    display: flex;
    flex-direction: column;
}
.logo__name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}
.logo__sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.menu {
    display: flex;
    gap: 1.5rem;
}
.menu a {
    color: var(--text-soft);
    font-weight: 500;
}
.menu a:hover {
    color: var(--primary);
}
.cta {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
}
.cta:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* Masthead */
.mast {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.mast__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}
.tag__dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}
.lead {
    font-size: 1.25rem;
    color: var(--text-soft);
    margin: 1.5rem 0;
}
.mast__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.mast__panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}
.panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.panel__label {
    font-weight: 500;
    color: var(--text-muted);
}
.panel__status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}
.pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}
.pill--ok {
    background: var(--success);
    color: white;
}
.panel__meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.bento__cell {
    text-align: center;
}
.bento__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.bento__txt {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.panel__note {
    font-size: 0.875rem;
    background: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
}
.mast__decor {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Trust stripe */
.stripe {
    background: var(--bg-alt);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.stripe__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stripe__title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.stripe__text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 4rem 0;
}
.section--shade {
    background: var(--bg-alt);
}
.head {
    text-align: center;
    margin-bottom: 3rem;
}

/* Warning box */
.warning {
    display: flex;
    gap: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}
.warning__icon {
    font-size: 1.5rem;
}
.warning__title {
    font-weight: 600;
}
.warning__text {
    color: #856404;
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.card--primary {
    border-color: var(--primary);
    border-width: 2px;
}
.card__top {
    margin-bottom: 1.5rem;
}
.label {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.label--alt {
    background: var(--secondary);
}
.label--backup {
    background: var(--accent);
}
.field {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}
.field__k {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.field__v {
    display: block;
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
}
.field__hint {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.ticks {
    list-style: none;
    margin-top: 1rem;
}
.ticks li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.ticks li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.mini {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.mini__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}
.mini__row:last-child {
    border-bottom: none;
}
.mini__k {
    font-weight: 500;
}
.mini__v {
    font-family: monospace;
    font-size: 0.9rem;
}
.steps {
    list-style: none;
}
.steps li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}
.steps li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Status page */
.status {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}
.health {
    list-style: none;
    margin: 1rem 0;
}
.health li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot--ok { background: var(--success); }
.dot--warn { background: var(--warning); }
.uptime {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.uptime__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.timeline {
    margin: 1.5rem 0;
}
.tl {
    padding: 1rem;
    border-left: 3px solid var(--primary);
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tl__t {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.tl__h {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.call {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}
.call ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* History */
.history__intro {
    max-width: 700px;
    margin-bottom: 3rem;
}
.history__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.chip {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}
.timeline2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}
.tcard {
    flex: 1 1 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.tcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.tcard__year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.history-extended {
    margin-top: 3rem;
    border-top: 2px dashed var(--border);
    padding-top: 2rem;
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.milestone {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}
.milestone-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.copyright-note {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 2rem;
}

/* Metrics */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.kpi {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.kpi__k {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kpi__v {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.kpi__m {
    font-size: 0.75rem;
}
.chart {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    margin: 2rem 0;
}
.bar {
    width: 50px;
    background: var(--primary);
    height: calc(var(--h) * 2px); /* fallback, will be overridden by style */
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    padding-bottom: 0.5rem;
}
.svgwrap {
    margin: 2rem 0;
    color: var(--primary);
}
.gauges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.gauge {
    width: 120px;
    height: 120px;
    position: relative;
}
.gauge__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg calc(var(--p) * 3.6deg), var(--border) calc(var(--p) * 3.6deg) 360deg);
    mask: radial-gradient(circle at center, transparent 55%, black 56%);
    -webkit-mask: radial-gradient(circle at center, transparent 55%, black 56%);
}
.gauge__txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.gauge__num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.note2 {
    text-align: center;
    margin-top: 1rem;
}
.legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.legend__dot--a { background: var(--primary); }
.legend__dot--b { background: var(--secondary); }
.legend__sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.5rem;
}

/* Advisories */
.advs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.adv {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.adv__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.adv__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.two__card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}
.faq__item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
}
.faq__item summary:hover {
    color: var(--primary);
}
.faq__body {
    padding: 0 0 1rem 0;
    color: var(--text-soft);
}

/* Testimonials */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}
.testimonial-card {
    flex: 1 1 280px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.stars {
    color: #fbbf24;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.testimonial-card blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    color: var(--text-soft);
}
.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-dark);
    text-transform: uppercase;
}
.testimonial-meta {
    display: flex;
    flex-direction: column;
}
.testimonial-name {
    font-weight: 600;
}
.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.foot__brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.foot__title {
    font-weight: 600;
    margin-bottom: 1rem;
}
.foot__links {
    list-style: none;
}
.foot__links li {
    margin-bottom: 0.5rem;
}
.foot__links a {
    color: var(--text-soft);
}
.foot__links a:hover {
    color: var(--primary);
}
.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
    .mast__grid, .status, .split, .footer__grid {
        grid-template-columns: 1fr;
    }
    .menu {
        display: none; /* For simplicity, hide menu on mobile — we could add a hamburger with JS, but we're JS-free */
    }
    .header__inner {
        flex-wrap: wrap;
    }
    .cta {
        margin-left: auto;
    }
    .stripe__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stripe__grid, .kpis {
        grid-template-columns: 1fr;
    }
    .bento {
        grid-template-columns: 1fr;
    }
    .cards {
        grid-template-columns: 1fr;
    }
}