/* ============================================
   JettiSend SaaS — Styles
   Brand: signal red, graphite, and cool gray
   Theme: Light, technical surfaces
   Font: System font stack
   ============================================ */

:root {
    --brand-1: #b4162c;
    --brand-2: #181a1b;
    --brand-gradient: linear-gradient(135deg, #c61b33 0%, #a80f25 100%);

    --bg: #f6f6f4;
    --surface: #ffffff;
    --surface-alt: #f0f1f1;
    --border: #e0e1df;
    --border-dark: #bfc2c0;

    --text: #171919;
    --text-dim: #5e6261;
    --text-muted: #858a88;

    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --blue: #475569;

    --radius: 6px;
    --radius-sm: 3px;
    --radius-lg: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-1);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--brand-2);
}

/* Navigation */
.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-logo:hover {
    color: var(--text);
}

.nav-logo-mark {
    display: block;
    height: 14px;
    width: auto;
}

.nav-logo span {
    color: var(--text);
}

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

.nav-links a {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

/* Button links in the nav keep white text (`.nav-links a` overrides .btn-primary) */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: white;
}

.nav-logout-form {
    display: inline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.btn-danger {
    background: var(--red);
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--text-dim);
    padding: 6px 12px;
}

.btn-text:hover {
    color: var(--red);
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 12px 20px;
}

/* Main content */
.main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Auth forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.auth-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 6px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.link {
    color: var(--brand-1);
    font-weight: 600;
}

/* Form elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(180, 22, 44, 0.14);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dim);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-1);
}

/* Flash messages */
.flash-container {
    margin-bottom: 24px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 8px;
    border: 1px solid;
}

.flash-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.flash-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.flash-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.flash-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.dashboard-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Storage indicator */
.storage-indicator {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.storage-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.storage-value {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.storage-bar {
    height: 8px;
    background: var(--surface-alt);
    border-radius: 4px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2%;
}

.storage-progress,
.upload-progress {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 10px;
    border: none;
    border-radius: 4px;
    background: var(--surface-alt);
    overflow: hidden;
}

.storage-progress::-webkit-progress-bar,
.upload-progress::-webkit-progress-bar {
    background: var(--surface-alt);
    border-radius: 4px;
}

.storage-progress::-webkit-progress-value,
.upload-progress::-webkit-progress-value {
    background: var(--brand-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.storage-progress::-moz-progress-bar,
.upload-progress::-moz-progress-bar {
    background: var(--brand-gradient);
    border-radius: 4px;
}

.upload-progress.is-hidden {
    display: none;
}

.storage-percent {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Upload section */
.upload-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.drop-zone {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--brand-1);
    background: rgba(180, 22, 44, 0.04);
}

.drop-zone p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.drop-zone p.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.file-input-label {
    color: var(--brand-1);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-list {
    margin-top: 16px;
}

.upload-item {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.upload-item-name {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.upload-item-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.upload-item-bar > div {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 3px;
    transition: width 0.2s;
    width: 0%;
}

.upload-item.success {
    border-left: 3px solid var(--green);
}

.upload-item.error {
    border-left: 3px solid var(--red);
}

/* File list */
.file-list-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.file-list-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.file-item:hover {
    border-color: var(--border-dark);
}

.file-item-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-item-icon {
    flex-shrink: 0;
}

.file-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.file-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.file-shares {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-url-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--surface-alt);
    color: var(--text-dim);
    font-family: monospace;
}

.file-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Share modal/dialog */
.share-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-dialog-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 460px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.share-dialog h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.share-dialog-options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Share view page */
.share-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.share-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.share-icon,
.share-lock-icon {
    margin-bottom: 20px;
}

.share-card h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    word-break: break-word;
}

.share-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.share-powered {
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.share-password-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-password-input {
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.share-password-input:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(180, 22, 44, 0.14);
}

.share-error {
    text-align: center;
    padding: 60px 20px;
}

.share-error h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.share-error p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

/* Dashboard placeholder */
.dashboard-placeholder {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.placeholder-card {
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 500px;
}

.placeholder-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.placeholder-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.placeholder-card p.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page p {
    color: var(--text-dim);
    margin: 12px 0 24px;
}

/* Simple auth-form class used by verify page */
.auth-form h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.auth-form p {
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-links > a[href*="#overview"],
    .nav-links > a[href*="#security"] {
        display: none;
    }

    .main {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 28px 20px;
        margin: 0 16px;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .placeholder-card {
        padding: 32px 20px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .file-item-actions {
        width: 100%;
    }

    .file-item-actions .btn {
        flex: 1;
    }
}
/* ============================================
   Marketing landing page
   ============================================ */

.marketing-landing {
    --marketing-ink: #111313;
    --marketing-grid: rgba(23, 25, 25, 0.055);
    display: flex;
    flex-direction: column;
    gap: 88px;
}

.marketing-hero {
    min-height: 620px;
    padding: 88px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 8vw, 104px);
    position: relative;
}

.marketing-hero::before {
    content: "";
    position: absolute;
    inset: 0 -24px;
    z-index: -1;
    background-image: linear-gradient(var(--marketing-grid) 1px, transparent 1px), linear-gradient(90deg, var(--marketing-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
}

.marketing-eyebrow,
.section-kicker,
.plan-code,
.console-title,
.console-state,
.trust-rail,
.recommended-label,
.console-log,
.security-node {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-eyebrow {
    color: var(--brand-1);
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.marketing-eyebrow span {
    width: 8px;
    height: 8px;
    background: var(--brand-1);
    box-shadow: 0 0 0 5px rgba(180, 22, 44, 0.1);
}

.marketing-hero h1 {
    max-width: 680px;
    color: var(--marketing-ink);
    font-size: clamp(3rem, 5.9vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 760;
}

.marketing-lede {
    max-width: 610px;
    margin-top: 28px;
    color: var(--text-dim);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}

.marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.marketing-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    margin-top: 28px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 650;
}

.marketing-assurances li::before {
    content: "✓";
    color: var(--brand-1);
    margin-right: 7px;
}

.transfer-console {
    background: #151717;
    color: #f6f6f4;
    border: 1px solid #050606;
    border-radius: 4px;
    box-shadow: 18px 18px 0 #e7e8e6, 0 30px 70px rgba(17, 19, 19, 0.16);
    overflow: hidden;
    transform: rotate(1deg);
}

.console-header {
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid #303333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    color: #c4c8c6;
}

.console-mark {
    width: 9px;
    height: 9px;
    background: var(--brand-1);
}

.console-state {
    color: #ff6678;
    font-size: 0.65rem;
}

.console-state::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: status-pulse 2.2s ease-in-out infinite;
}

.console-body {
    padding: 30px 24px 24px;
}

.console-route {
    display: grid;
    grid-template-columns: auto 1fr 38px 1fr auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #888e8b;
    font: 0.58rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.1em;
}

.console-route i {
    height: 1px;
    background: repeating-linear-gradient(90deg, #515654 0 5px, transparent 5px 9px);
}

.console-route b {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #bd1b31;
    color: #ff7182;
    font-size: 0.68rem;
}

.console-file {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #3b3e3e;
    background: #1d2020;
}

.file-glyph {
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #656a68;
    color: #d7d9d8;
    font: 0.62rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.console-file strong,
.console-file span {
    display: block;
}

.console-file strong {
    font-size: 0.88rem;
}

.console-file div span {
    margin-top: 4px;
    color: #8f9592;
    font-size: 0.7rem;
}

.status-pill {
    padding: 5px 7px;
    border: 1px solid;
    font: 0.62rem ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.08em;
}

.status-clean {
    color: #ff7182;
    border-color: #722432;
    background: rgba(180, 22, 44, 0.14);
}

.console-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
    border-top: 1px solid #303333;
    border-bottom: 1px solid #303333;
}

.console-metrics div {
    padding: 15px 12px;
    border-right: 1px solid #303333;
}

.console-metrics div:last-child {
    border-right: none;
}

.console-metrics dt {
    color: #757b78;
    font-size: 0.64rem;
    text-transform: uppercase;
}

.console-metrics dd {
    margin-top: 3px;
    font-size: 0.8rem;
}

.console-log {
    padding: 13px 18px;
    border-top: 1px solid #303333;
    background: #101212;
    color: #777d7a;
    font-size: 0.58rem;
}

.console-log span {
    color: #c7cac9;
    margin-right: 8px;
}

.trust-rail {
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    border: 1px solid var(--border-dark);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 0.65rem;
}

.trust-rail span {
    display: grid;
    place-items: center;
    padding: 14px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.trust-rail span:last-child {
    border-right: 0;
}

.marketing-section {
    scroll-margin-top: 84px;
}

.section-kicker {
    color: var(--brand-1);
    font-size: 0.67rem;
    font-weight: 750;
}

.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 48px;
    align-items: end;
    margin: 16px 0 38px;
}

.section-intro h2,
.security-copy h2,
.marketing-cta h2 {
    color: var(--marketing-ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.section-intro > p,
.section-intro > div > p,
.security-copy > p {
    color: var(--text-dim);
    line-height: 1.7;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-dark);
    background: var(--surface);
}

.capability-card {
    position: relative;
    min-height: 300px;
    padding: 28px;
    border-right: 1px solid var(--border);
}

.capability-card:last-child {
    border-right: none;
}

.capability-index {
    color: var(--text-muted);
    font: 0.65rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.capability-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 58px 0 24px;
    border: 1px solid var(--border-dark);
    color: var(--brand-1);
    font: 700 1rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.capability-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.capability-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.security-section {
    scroll-margin-top: 84px;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    min-height: 600px;
    background: #eceeec;
    border: 1px solid var(--border-dark);
}

.security-visual {
    min-height: 500px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid var(--border-dark);
    background-image: radial-gradient(#b8bcba 0.8px, transparent 0.8px);
    background-size: 18px 18px;
}

.security-orbit {
    position: absolute;
    border: 1px solid #bfc3c1;
    border-radius: 50%;
}

.orbit-one { width: 250px; height: 250px; }
.orbit-two { width: 390px; height: 390px; border-style: dashed; }

.security-core {
    width: 126px;
    height: 126px;
    display: grid;
    place-items: center;
    align-content: center;
    position: relative;
    z-index: 2;
    background: #171919;
    border: 8px solid #d8dad8;
    outline: 1px solid #171919;
    color: white;
    transform: rotate(45deg);
}

.security-core span,
.security-core small {
    transform: rotate(-45deg);
}

.security-core span { font-size: 1.5rem; font-weight: 800; }
.security-core small { margin-top: 5px; color: #ff6577; font: 0.45rem ui-monospace, monospace; letter-spacing: 0.08em; }

.security-node {
    position: absolute;
    padding: 7px 9px;
    border: 1px solid #aeb2b0;
    background: #f7f7f5;
    color: var(--text-dim);
    font-size: 0.55rem;
}

.node-upload { left: 10%; top: 24%; }
.node-scan { right: 9%; top: 38%; color: var(--brand-1); border-color: #cf8994; }
.node-share { left: 22%; bottom: 17%; }

.security-copy {
    padding: clamp(42px, 6vw, 78px);
    background: rgba(255, 255, 255, 0.55);
}

.security-copy h2 {
    margin: 18px 0 22px;
}

.security-list {
    list-style: none;
    margin-top: 36px;
    border-top: 1px solid var(--border-dark);
}

.security-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-dark);
}

.security-list > li > span {
    color: var(--brand-1);
    font: 0.67rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.security-list strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.93rem;
}

.security-list p {
    color: var(--text-dim);
    font-size: 0.84rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    counter-reset: workflow;
    border-top: 2px solid var(--marketing-ink);
}

.workflow-grid li {
    position: relative;
    padding: 28px 34px 0 0;
    border-right: 1px solid var(--border);
}

.workflow-grid li:not(:first-child) { padding-left: 34px; }
.workflow-grid li:last-child { border-right: none; }

.workflow-grid span {
    display: block;
    margin-bottom: 50px;
    color: var(--brand-1);
    font: 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workflow-grid strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.workflow-grid p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.pricing-intro {
    grid-template-columns: 1fr auto;
}

.pricing-note {
    padding: 8px 10px;
    border: 1px solid var(--border-dark);
    font: 0.63rem ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    box-shadow: none;
}

.pricing-featured {
    border: 2px solid var(--marketing-ink);
    padding: 27px 23px;
    box-shadow: 8px 8px 0 #dedfdd;
}

.pricing-featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand-1);
}

.pricing-card-top {
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plan-code {
    color: var(--text-muted);
    font-size: 0.58rem;
}

.pricing-card h3 {
    margin-top: 5px;
    font-size: 1.2rem;
}

.recommended-label {
    padding: 5px 7px;
    background: #171919;
    color: #fff;
    font-size: 0.52rem;
}

.pricing-card .price {
    padding: 19px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 2.45rem;
    font-weight: 760;
    letter-spacing: -0.045em;
}

.pricing-card .price .period {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 450;
    letter-spacing: 0;
}

.price-features {
    flex: 1;
    list-style: none;
}

.price-features li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text-dim);
    font-size: 0.86rem;
}

.price-features li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--brand-1);
    font-family: ui-monospace, monospace;
    font-weight: 800;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card .badge {
    align-self: flex-start;
}

.marketing-cta {
    min-height: 230px;
    padding: 48px clamp(28px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid #232525;
    background-color: #171919;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 30px 30px;
}

.marketing-cta h2 {
    max-width: 700px;
    margin-top: 14px;
    color: #fff;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@media (max-width: 960px) {
    .marketing-hero {
        grid-template-columns: 1fr;
        padding-top: 64px;
    }

    .transfer-console {
        max-width: 640px;
        transform: none;
    }

    .capability-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .capability-card:last-child { border-bottom: none; }
    .capability-icon { margin: 32px 0 20px; }

    .security-section {
        grid-template-columns: 1fr;
    }

    .security-visual {
        min-height: 440px;
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
}

@media (max-width: 700px) {
    .marketing-landing { gap: 64px; }

    .marketing-hero {
        min-height: auto;
        padding: 44px 0 36px;
    }

    .marketing-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }

    .marketing-actions {
        flex-direction: column;
    }

    .marketing-actions .btn { width: 100%; }

    .transfer-console { box-shadow: 8px 8px 0 #e7e8e6; }
    .console-file { grid-template-columns: 42px 1fr; }
    .console-file > .status-pill { grid-column: 2; justify-self: start; }
    .console-metrics { grid-template-columns: 1fr; }
    .console-metrics div { border-right: none; border-bottom: 1px solid #303333; }
    .console-metrics div:last-child { border-bottom: none; }

    .trust-rail { grid-template-columns: 1fr 1fr; }
    .trust-rail span:nth-child(2) { border-right: none; }
    .trust-rail span:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

    .section-intro,
    .pricing-intro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .security-visual { min-height: 350px; }
    .orbit-one { width: 190px; height: 190px; }
    .orbit-two { width: 290px; height: 290px; }

    .security-copy { padding: 36px 24px; }

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

    .workflow-grid li,
    .workflow-grid li:not(:first-child) {
        padding: 24px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .workflow-grid li:last-child { border-bottom: none; }
    .workflow-grid span { margin-bottom: 18px; }

    .marketing-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

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