/* ============================================
   ENRON.CEO — CYBER-GEKKO 80s CRT TERMINAL
   "Made on a Commodore 64"
   (c) 1987 Enron Neural Systems Corp.
   ============================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

body {
    font-family: 'VT323', 'Courier New', Courier, monospace;
    background-color: #000000;
    color: #00FF00;
    font-size: 18px;
    line-height: 1.4;
    overflow-x: hidden;
    position: relative;
}

a {
    color: #00FF00;
    text-decoration: none;
}

a:hover {
    color: #FF69B4;
    text-decoration: underline;
}

::selection {
    background: #00FF00;
    color: #000000;
}

/* --- CRT Scanline Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* --- CRT Flicker Effect --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: rgba(0, 255, 0, 0.015);
    animation: crt-flicker 0.1s infinite alternate;
}

@keyframes crt-flicker {
    0%   { opacity: 0.97; }
    50%  { opacity: 1.0; }
    100% { opacity: 0.98; }
}

/* --- Global Glow on Text --- */
h1, h2, h3, h4, p, span, a, td, th, li, blockquote, label {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
}

/* --- TELETEXT News Ticker --- */
.ticker-bar {
    background-color: #001100;
    border-top: 4px solid #00FF00;
    border-bottom: 4px solid #00FF00;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 40s linear infinite;
    font-size: 22px;
    letter-spacing: 2px;
}

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

.ticker-bar .teletext-block {
    background: #003300;
    color: #00FF00;
    padding: 2px 8px;
    margin: 0 4px;
    display: inline;
    font-weight: bold;
}

.ticker-bar .ticker-alert {
    background: #330000;
    color: #FF69B4;
    padding: 2px 8px;
    display: inline;
    font-weight: bold;
}

.ticker-bar .ticker-price {
    color: #FF6600;
    font-weight: bold;
}

/* --- Main Container --- */
.terminal-container {
    max-width: 960px;
    margin: 0 auto;
    border-left: 4px solid #00FF00;
    border-right: 4px solid #00FF00;
    border-bottom: 4px solid #00FF00;
    background: #000000;
}

/* --- Logo Section --- */
.logo-section {
    text-align: center;
    padding: 30px 20px 20px 20px;
    border-bottom: 4px double #00FF00;
}

.crooked-e {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.crooked-e-outer {
    position: absolute;
    top: 0;
    left: 10px;
    width: 100px;
    height: 120px;
    border: 3px solid #00FF00;
    border-right: none;
    border-radius: 60px 0 0 60px;
    transform: skewY(-8deg);
    box-shadow: 0 0 10px #00FF00, 0 0 20px rgba(0, 255, 0, 0.3);
}

.crooked-e-bar-top {
    position: absolute;
    top: 10px;
    left: 50px;
    width: 65px;
    height: 3px;
    background: #00FF00;
    transform: skewY(-8deg);
    box-shadow: 0 0 8px #00FF00;
}

.crooked-e-bar-mid {
    position: absolute;
    top: 52px;
    left: 50px;
    width: 50px;
    height: 3px;
    background: #00FF00;
    transform: skewY(-8deg);
    box-shadow: 0 0 8px #00FF00;
}

.crooked-e-bar-bot {
    position: absolute;
    bottom: 16px;
    left: 50px;
    width: 65px;
    height: 3px;
    background: #00FF00;
    transform: skewY(-8deg);
    box-shadow: 0 0 8px #00FF00;
}

.logo-slogan {
    font-size: 20px;
    letter-spacing: 6px;
    color: #00FF00;
    margin-top: 8px;
    text-shadow: 0 0 10px #00FF00, 0 0 20px rgba(0, 255, 0, 0.5);
}

.logo-subtitle {
    font-size: 14px;
    color: #FF69B4;
    letter-spacing: 3px;
    margin-top: 4px;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

/* --- System Status Bar --- */
.system-bar {
    background: #001100;
    border-bottom: 2px solid #00FF00;
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #00FF00;
}

.system-bar .sys-alert {
    color: #FF6600;
    animation: blink-text 1.2s step-start infinite;
}

@keyframes blink-text {
    50% { opacity: 0; }
}

/* --- Hero / Welcome Section --- */
.hero-section {
    padding: 25px 20px;
    border-bottom: 4px solid #00FF00;
    text-align: center;
}

.hero-section h1 {
    font-size: 36px;
    color: #00FF00;
    letter-spacing: 4px;
    text-shadow: 0 0 15px #00FF00, 0 0 30px rgba(0, 255, 0, 0.4);
    margin-bottom: 15px;
}

.hero-section .hero-sub {
    font-size: 20px;
    color: #FF69B4;
    max-width: 700px;
    margin: 0 auto 15px auto;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
}

.hero-section .hero-prompt {
    font-size: 22px;
    color: #00FF00;
}

.hero-prompt .cursor-blink {
    animation: blink-text 1s step-start infinite;
}

/* --- Grid Layout for Desk Objects --- */
.desk-section {
    padding: 20px;
    border-bottom: 4px solid #00FF00;
}

.desk-section h2 {
    font-size: 26px;
    color: #FF69B4;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.desk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.desk-object {
    border: 3px solid #00FF00;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #000800;
    transition: background 0.15s, box-shadow 0.15s;
    position: relative;
}

.desk-object:hover {
    background: #001a00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
}

.desk-object:active {
    border-color: #FF69B4;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.4);
}

.desk-object .obj-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.desk-object .obj-label {
    font-size: 20px;
    color: #FF69B4;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
}

.desk-object .obj-sublabel {
    font-size: 16px;
    color: #00FF00;
}

.desk-object .obj-hint {
    font-size: 14px;
    color: #FF6600;
    margin-top: 8px;
}

/* --- Modal Overlay --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #000000;
    border: 4px solid #00FF00;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4), 0 0 60px rgba(0, 255, 0, 0.15);
    position: relative;
}

.modal-box .modal-title {
    font-size: 22px;
    color: #FF69B4;
    margin-bottom: 15px;
    letter-spacing: 2px;
    border-bottom: 2px solid #FF69B4;
    padding-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.modal-box .modal-text {
    font-size: 18px;
    color: #00FF00;
    line-height: 1.5;
    white-space: pre-wrap;
}

.modal-box .modal-close {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 20px;
    border: 2px solid #FF69B4;
    background: #000000;
    color: #FF69B4;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    cursor: pointer;
    letter-spacing: 2px;
}

.modal-box .modal-close:hover {
    background: #FF69B4;
    color: #000000;
}

/* --- Shareholder Letters Section --- */
.letters-section {
    padding: 20px;
    border-bottom: 4px solid #00FF00;
}

.letters-section h2 {
    font-size: 26px;
    color: #FF69B4;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.letters-section .letters-sub {
    text-align: center;
    font-size: 16px;
    color: #FF6600;
    margin-bottom: 20px;
}

.letter-link-list {
    list-style: none;
    padding: 0;
}

.letter-link-list li {
    margin-bottom: 10px;
}

.letter-link {
    display: block;
    border: 2px solid #00FF00;
    padding: 12px 20px;
    background: #000800;
    font-size: 20px;
    color: #00FF00;
    letter-spacing: 1px;
    transition: background 0.15s, border-color 0.15s;
}

.letter-link:hover {
    background: #001a00;
    border-color: #FF69B4;
    color: #FF69B4;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.letter-link .letter-cmd {
    color: #FF6600;
    margin-right: 8px;
}

.letter-link .letter-year {
    color: #FF69B4;
    float: right;
}

/* --- HaaS & Products Section --- */
.products-section {
    padding: 20px;
    border-bottom: 4px solid #00FF00;
}

.products-section h2 {
    font-size: 26px;
    color: #FF69B4;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.product-box {
    border: 3px solid #00FF00;
    padding: 15px;
    margin-bottom: 15px;
    background: #000800;
}

.product-box h3 {
    font-size: 22px;
    color: #FF6600;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}

.product-box p {
    font-size: 18px;
    color: #00FF00;
    line-height: 1.5;
}

.product-box .product-stat {
    display: inline-block;
    border: 2px solid #FF69B4;
    padding: 4px 12px;
    margin: 8px 4px;
    color: #FF69B4;
    font-size: 18px;
}

/* --- Compliance Table --- */
.compliance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 16px;
}

.compliance-table th {
    background: #003300;
    color: #FF69B4;
    padding: 8px 10px;
    text-align: left;
    letter-spacing: 1px;
    border: 2px solid #00FF00;
}

.compliance-table td {
    padding: 8px 10px;
    border: 1px solid #003300;
    color: #00FF00;
}

.compliance-table tr:hover {
    background: #001100;
}

.compliance-table .status-ok {
    color: #00FF00;
    font-weight: bold;
}

.compliance-table .status-warn {
    color: #FF6600;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 20px;
    border-bottom: 4px solid #00FF00;
}

.testimonials-section h2 {
    font-size: 26px;
    color: #FF69B4;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.testimonial-card {
    border: 2px solid #00FF00;
    border-left: 4px solid #FF69B4;
    padding: 15px;
    margin-bottom: 12px;
    background: #000800;
}

.testimonial-card blockquote {
    font-size: 18px;
    color: #00FF00;
    line-height: 1.5;
    margin-bottom: 8px;
}

.testimonial-card .attribution {
    font-size: 16px;
    color: #FF6600;
    text-align: right;
}

/* --- Footer --- */
.footer {
    background: #001100;
    border-top: 4px double #00FF00;
    padding: 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-links a {
    color: #00FF00;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #FF69B4;
}

.footer-links .separator {
    color: #003300;
}

.footer .copyright {
    color: #006600;
    font-size: 14px;
    margin-bottom: 10px;
}

.c64-badge {
    display: inline-block;
    border: 3px solid #FF69B4;
    padding: 8px 20px;
    margin-top: 10px;
    font-size: 18px;
    color: #FF69B4;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
}

.visitor-counter {
    margin-top: 12px;
    font-size: 16px;
    color: #006600;
}

.visitor-counter .counter-digits {
    display: inline-block;
    background: #000000;
    color: #00FF00;
    padding: 2px 8px;
    border: 2px solid #00FF00;
    letter-spacing: 3px;
    font-size: 18px;
    text-shadow: 0 0 8px #00FF00;
}

/* --- Letter Pages Styles --- */
.letter-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #000000;
    min-height: 100vh;
}

.letter-page .letter-header {
    border: 3px solid #00FF00;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.letter-page .letter-header h1 {
    font-size: 28px;
    color: #FF69B4;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.letter-page .letter-header .letter-date {
    color: #FF6600;
    font-size: 18px;
    margin-top: 4px;
}

.letter-page .letter-body {
    border: 2px solid #003300;
    padding: 20px;
    background: #000800;
}

.letter-page .letter-body p {
    font-size: 18px;
    color: #00FF00;
    line-height: 1.5;
    margin-bottom: 15px;
}

.letter-page .letter-body .emphasis {
    color: #FF69B4;
}

.letter-page .letter-body .warning {
    color: #FF6600;
}

.letter-page .letter-body .signature {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #003300;
    color: #FF69B4;
    font-size: 18px;
}

.letter-page .back-link {
    display: inline-block;
    margin-top: 20px;
    border: 2px solid #00FF00;
    padding: 8px 16px;
    color: #00FF00;
    font-size: 18px;
    letter-spacing: 2px;
}

.letter-page .back-link:hover {
    background: #00FF00;
    color: #000000;
    text-decoration: none;
}

/* Dot matrix printer effect for letters */
.dot-matrix {
    background-image: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
}

.perforation {
    border: none;
    border-top: 2px dashed #003300;
    margin: 20px 0;
}

/* --- Utility --- */
.text-pink {
    color: #FF69B4;
}

.text-orange {
    color: #FF6600;
}

.text-green {
    color: #00FF00;
}
