/* ==========================================================================
   Terminal Dynamics — Hardware Division Website Stylesheet
   "Precision Engineered. Mission Ready." | Est. 1991
   TD-CSS-001 Rev. 4.71 | Compiled: 02:47 UTC | Build #4471
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #1a1a2e;
}

a {
    color: #4a8ab5;
    text-decoration: underline;
}

a:hover {
    color: #ff8c00;
}

a:visited {
    color: #6a7a8a;
}

img {
    max-width: 100%;
    border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    color: #2a3a4a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; border-bottom: 2px solid #2a3a4a; padding-bottom: 4px; margin-bottom: 16px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p {
    margin-bottom: 12px;
}

hr {
    border: none;
    border-top: 1px solid #8a9aaa;
    border-bottom: 1px solid #c0c8d0;
    margin: 20px 0;
}

/* --- Layout Container --- */
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #eef0f2;
    border-left: 1px solid #8a9aaa;
    border-right: 1px solid #8a9aaa;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* --- Status Bar (replaces ticker) --- */
.status-bar {
    background: #0a0f14;
    color: #ff8c00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    padding: 3px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #2a3a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-bar .status-content {
    display: inline-block;
    animation: status-scroll 35s linear infinite;
    padding-left: 100%;
}

@keyframes status-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Header --- */
.site-header {
    background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
    color: #fff;
    padding: 0;
    border-bottom: 3px solid #ff8c00;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo:visited { color: #fff; }

.logo span {
    color: #ff8c00;
}

.logo small {
    display: block;
    font-family: Verdana, Arial, sans-serif;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8a9aaa;
    margin-top: 2px;
}

.header-info {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #8a9aaa;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-info .status {
    color: #4ade80;
    font-weight: bold;
}

/* --- Navigation --- */
.main-nav {
    background: linear-gradient(180deg, #334455 0%, #2a3a4a 100%);
    border-top: 1px solid #4a5a6a;
    border-bottom: 1px solid #1a2a3a;
    padding: 0 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 6px 14px;
    color: #aab8c8;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #1a2a3a;
}

.main-nav a:hover,
.main-nav a.active {
    background: #ff8c00;
    color: #fff;
}

.main-nav a:visited {
    color: #aab8c8;
}

.main-nav a:visited:hover,
.main-nav a.active:visited {
    color: #fff;
}

/* --- Hero Banner --- */
.hero {
    background: linear-gradient(180deg, #2a3a4a 0%, #1e2d3d 40%, #162636 100%);
    color: #fff;
    text-align: center;
    padding: 40px 30px;
    border-bottom: 3px solid #ff8c00;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,140,0,0.03) 2px,
        rgba(255,140,0,0.03) 4px
    );
    pointer-events: none;
}

.hero h1 {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero .tagline {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    color: #ff8c00;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero .sub-tagline {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #6a7a8a;
    letter-spacing: 2px;
    margin-top: 12px;
}

/* --- Content Areas --- */
.content {
    padding: 24px 30px;
    background: #eef0f2;
}

.content-dark {
    background: #d8dce0;
    padding: 24px 30px;
    border-top: 1px solid #b0b8c0;
    border-bottom: 1px solid #b0b8c0;
}

/* --- Section Headers --- */
.section-header {
    background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
    border: 1px solid #1a2a3a;
    border-bottom: 2px solid #ff8c00;
    padding: 8px 16px;
    margin: 20px 0 16px;
}

.section-header h2 {
    font-size: 14px;
    color: #fff;
    border: none;
    padding: 0;
    margin: 0;
    letter-spacing: 2px;
}

/* --- Spec Table Style --- */
.spec-box {
    border: 2px solid;
    border-color: #c0c8d0 #8a9aaa #8a9aaa #c0c8d0;
    background: #f4f6f8;
    padding: 16px;
    margin-bottom: 16px;
}

.spec-box-inset {
    border: 2px solid;
    border-color: #8a9aaa #c0c8d0 #c0c8d0 #8a9aaa;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.product-card {
    border: 2px solid;
    border-color: #c0c8d0 #8a9aaa #8a9aaa #c0c8d0;
    background: #f4f6f8;
    padding: 16px;
    text-align: center;
}

.product-card .part-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #ff8c00;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.product-card .icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.product-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
    color: #2a3a4a;
}

.product-card p {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
}

.product-card .price {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    color: #2a3a4a;
    display: block;
    margin-bottom: 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 4px 16px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(180deg, #4a5a6a 0%, #2a3a4a 100%);
    border: 2px solid;
    border-color: #6a7a8a #1a2a3a #1a2a3a #6a7a8a;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(180deg, #5a6a7a 0%, #3a4a5a 100%);
    color: #fff;
}

.btn:active {
    border-color: #1a2a3a #6a7a8a #6a7a8a #1a2a3a;
}

.btn:visited { color: #fff; }

.btn-amber {
    background: linear-gradient(180deg, #ff9b1a 0%, #cc7000 100%);
    color: #fff;
    border-color: #ffb84d #8a4e00 #8a4e00 #ffb84d;
}

.btn-amber:hover {
    background: linear-gradient(180deg, #ffaa33 0%, #dd8000 100%);
    color: #fff;
}

.btn-amber:visited { color: #fff; }

/* --- Product Listing (Full Width) --- */
.product-listing {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #c0c8d0;
}

.product-listing:last-child {
    border-bottom: none;
}

.product-icon-lg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2a3a4a 0%, #4a5a6a 100%);
    border: 2px solid;
    border-color: #c0c8d0 #8a9aaa #8a9aaa #c0c8d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ff8c00;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.product-info .part-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #ff8c00;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-info p {
    font-size: 12px;
    margin-bottom: 8px;
}

.product-info .price-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    color: #2a3a4a;
}

/* --- Certification Badge --- */
.cert-badge {
    display: inline-block;
    border: 2px solid #003366;
    background: linear-gradient(180deg, #e8eef4 0%, #d0d8e0 100%);
    padding: 6px 12px;
    font-size: 10px;
    font-weight: bold;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Narrow', Arial, sans-serif;
    margin: 8px 0;
}

.cert-badge .portals-logo {
    color: #0055aa;
}

/* --- Spec Table --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
}

th {
    background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
    border: 1px solid #1a2a3a;
    padding: 6px 10px;
    text-align: left;
    font-size: 11px;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    border: 1px solid #b0b8c0;
    padding: 6px 10px;
    vertical-align: top;
    background: #f4f6f8;
}

tr:nth-child(even) td {
    background: #eaecf0;
}

/* --- FAQ / Support --- */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #c0c8d0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 13px;
    color: #2a3a4a;
    margin-bottom: 6px;
    cursor: default;
}

.faq-item h3::before {
    content: '> ';
    color: #ff8c00;
    font-family: 'Courier New', Courier, monospace;
}

.faq-item p {
    font-size: 12px;
    color: #555;
    padding-left: 16px;
}

/* --- Download Table --- */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #c0c8d0;
    font-size: 12px;
}

.download-item:nth-child(even) {
    background: #e8eaee;
}

.download-item .file-info {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #8a9aaa;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2a3a4a;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: #ff8c00;
    border: 2px solid #2a3a4a;
    border-radius: 0;
}

.timeline-item .year {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    color: #ff8c00;
}

.timeline-item p {
    font-size: 12px;
    margin-top: 2px;
}

/* --- News Items --- */
.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #c0c8d0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .date {
    font-size: 10px;
    color: #8a9aaa;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item h3 {
    font-size: 14px;
    margin: 4px 0;
}

.news-item p {
    font-size: 12px;
    color: #555;
}

/* --- Hero Product Feature --- */
.hero-product {
    background: #162636;
    border: 2px solid #2a3a4a;
    padding: 24px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.hero-product h2 {
    font-size: 20px;
    color: #ff8c00;
    border: none;
    margin-bottom: 4px;
}

.hero-product .model {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #6a7a8a;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-product .ascii-art {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #4a6a8a;
    line-height: 1.3;
    margin: 16px 0;
    white-space: pre;
}

.hero-product .price-hero {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin: 12px 0;
}

/* --- Bundle Box --- */
.bundle-box {
    border: 2px solid #ff8c00;
    background: linear-gradient(180deg, #f8f4f0 0%, #f0ece6 100%);
    padding: 20px;
    margin: 16px 0;
}

.bundle-box h3 {
    color: #ff8c00;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ff8c00;
}

.bundle-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bundle-box li {
    font-size: 12px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.bundle-box li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #ff8c00;
    font-weight: bold;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #2a3a4a 0%, #0a0f14 100%);
    color: #8a9aaa;
    padding: 20px 30px;
    font-size: 10px;
    border-top: 3px solid #ff8c00;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a3a4a;
}

.footer-nav a {
    color: #6a7a8a;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-nav a:visited {
    color: #6a7a8a;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    color: #4a5a6a;
}

.footer-bottom .mil-spec {
    font-family: 'Courier New', Courier, monospace;
    font-size: 9px;
    color: #4a5a6a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.visitor-counter {
    font-family: 'Courier New', Courier, monospace;
    background: #000;
    color: #ff8c00;
    padding: 2px 8px;
    border: 1px solid #2a3a4a;
    font-size: 11px;
    letter-spacing: 2px;
}

/* --- Konami / Classified Overlay --- */
.memo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,8,16,0.92);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.memo-overlay.active {
    display: block;
}

.memo-content {
    max-width: 640px;
    margin: 0 auto;
    background: #0a0f14;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #ff8c00;
    padding: 40px;
    border: 2px solid #ff8c00;
    box-shadow: 0 0 30px rgba(255,140,0,0.2);
    white-space: pre-wrap;
    line-height: 1.6;
}

.memo-content .stamp {
    color: #ff3333;
    font-weight: bold;
    font-size: 16px;
}

.memo-content .pass {
    color: #4ade80;
}

.memo-content .fail {
    color: #ff3333;
}

.memo-content .anomaly {
    color: #ffcc00;
}

.memo-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #ff8c00;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-small { font-size: 11px; }
.text-muted { color: #8a9aaa; }
.text-amber { color: #ff8c00; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.mono {
    font-family: 'Courier New', Courier, monospace;
}

/* --- Classification Banner --- */
.classification-banner {
    background: #ff8c00;
    color: #0a0f14;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 2px 0;
}

/* --- Mint Section --- */
.mint-section {
    background: linear-gradient(180deg, #0a0f14 0%, #162636 50%, #0a0f14 100%);
    border: 2px solid #ff8c00;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.mint-section h2 {
    color: #ff8c00;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #2a3a4a;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.mint-section .mint-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #6a7a8a;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.mint-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #1a2a3a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}

.mint-info-row .label {
    color: #6a7a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mint-info-row .value {
    color: #ff8c00;
    font-weight: bold;
}

.mint-quantity-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #2a3a4a;
    border: 1px solid #4a5a6a;
    color: #ff8c00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #3a4a5a;
    border-color: #ff8c00;
}

.mint-quantity-input {
    width: 50px;
    height: 32px;
    background: #0a0f14;
    border: 1px solid #4a5a6a;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    text-align: center;
}

.mint-total {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    color: #fff;
    margin: 16px 0;
}

.mint-total .amount {
    color: #ff8c00;
    font-weight: bold;
}

.mint-connect-btn,
.mint-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.2s;
}

.mint-connect-btn {
    background: #2a3a4a;
    border-color: #ff8c00;
    color: #ff8c00;
}

.mint-connect-btn:hover {
    background: #3a4a5a;
}

.mint-connect-btn.connected {
    background: #0a2a0a;
    border-color: #4ade80;
    color: #4ade80;
    cursor: default;
}

.mint-btn {
    background: #4a5a6a;
    border-color: #4a5a6a;
    color: #6a7a8a;
    cursor: not-allowed;
}

.mint-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
    color: #0a0f14;
    cursor: pointer;
}

.mint-btn.active:hover {
    background: #ffaa33;
}

.mint-status {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #6a7a8a;
    margin-top: 12px;
    min-height: 16px;
}

.mint-status--success { color: #4ade80; }
.mint-status--error { color: #ff3333; }
.mint-status--pending { color: #ffcc00; }

.mint-wallet-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #4a5a6a;
    margin-top: 4px;
}

.mint-network-badge {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 9px;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 2px 8px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.mint-bundle-note {
    font-size: 11px;
    color: #6a7a8a;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #1a2a3a;
    line-height: 1.6;
}

.mint-bundle-note strong {
    color: #ff8c00;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-listing {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .hero-product .ascii-art {
        font-size: 8px;
    }
}
