@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* Departure Mono for terminal view */
@font-face {
    font-family: 'Departure Mono';
    src: url('https://cdn.jsdelivr.net/gh/woffz/a3@main/DepartureMono-Regular/DepartureMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0f0f0f;
    --fg: #ffffff;
    --border: rgba(255, 255, 255, 0.15);
    --muted: rgba(255, 255, 255, 0.4);
    --accent: rgba(255, 255, 255, 0.08);
    --link-bg: #181818;
    --font-family: 'IBM Plex Mono', monospace;
    --font-size: 12px;
    --letter-spacing: 0.02em;
    --text-transform: uppercase;
}

/* Font: Inter - Clean, readable sans-serif */
[data-font="inter"] {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size: 14px;
    --letter-spacing: -0.01em;
    --text-transform: none;
}

/* Inter font specific adjustments */
[data-font="inter"] .logo {
    font-size: 14px;
    letter-spacing: -0.02em;
}

[data-font="inter"] .main-content h1,
[data-font="inter"] .article-title {
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

[data-font="inter"] .body-text,
[data-font="inter"] .article-body {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

[data-font="inter"] .ideas-title {
    font-size: 13px;
    letter-spacing: 0;
}

[data-font="inter"] .idea-name {
    font-size: 14px;
}

[data-font="inter"] .idea-date {
    font-size: 13px;
}

[data-font="inter"] .article-date {
    font-size: 13px;
}

[data-font="inter"] .footer-link {
    font-size: 14px;
}

[data-theme="light"] {
    --bg: #f5f5f5;
    --fg: #000000;
    --border: rgba(0, 0, 0, 0.15);
    --muted: rgba(0, 0, 0, 0.4);
    --accent: rgba(0, 0, 0, 0.08);
    --link-bg: #ebebeb;
}

/* Color Themes - Dark variants */
[data-color="blue"] {
    --bg: #0a1628;
    --fg: #e0e7ff;
    --border: rgba(224, 231, 255, 0.15);
    --muted: rgba(224, 231, 255, 0.4);
    --link-bg: #1a2744;
}

[data-color="green"] {
    --bg: #0a1a0f;
    --fg: #d1fae5;
    --border: rgba(209, 250, 229, 0.15);
    --muted: rgba(209, 250, 229, 0.4);
    --link-bg: #1a3324;
}

[data-color="purple"] {
    --bg: #1a0a28;
    --fg: #e9d5ff;
    --border: rgba(233, 213, 255, 0.15);
    --muted: rgba(233, 213, 255, 0.4);
    --link-bg: #2d1a44;
}

[data-color="warm"] {
    --bg: #1c1410;
    --fg: #fef3c7;
    --border: rgba(254, 243, 199, 0.15);
    --muted: rgba(254, 243, 199, 0.4);
    --link-bg: #362a20;
}

/* Color Themes - Light variants */
[data-theme="light"][data-color="blue"] {
    --bg: #eff6ff;
    --fg: #1e3a5f;
    --border: rgba(30, 58, 95, 0.15);
    --muted: rgba(30, 58, 95, 0.4);
    --link-bg: #dbeafe;
}

[data-theme="light"][data-color="green"] {
    --bg: #f0fdf4;
    --fg: #14532d;
    --border: rgba(20, 83, 45, 0.15);
    --muted: rgba(20, 83, 45, 0.4);
    --link-bg: #dcfce7;
}

[data-theme="light"][data-color="purple"] {
    --bg: #faf5ff;
    --fg: #581c87;
    --border: rgba(88, 28, 135, 0.15);
    --muted: rgba(88, 28, 135, 0.4);
    --link-bg: #f3e8ff;
}

[data-theme="light"][data-color="warm"] {
    --bg: #fffbeb;
    --fg: #78350f;
    --border: rgba(120, 53, 15, 0.15);
    --muted: rgba(120, 53, 15, 0.4);
    --link-bg: #fef3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    text-transform: var(--text-transform);
    letter-spacing: var(--letter-spacing);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg) 60%, transparent);
    height: 64px;
    pointer-events: none;
}

.header-inner {
    pointer-events: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 16px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo {
    font-size: 12px;
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.header-back-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0;
}

/* Show back button, hide logo when viewing article */
.show-article .logo {
    display: none;
}

.show-article ~ .header .header-back-btn,
body.viewing-article .header-back-btn {
    display: block;
}

body.viewing-article .logo {
    display: none;
}

.header-controls {
    display: flex;
    gap: 8px;
}

.theme-btn {
    background: var(--link-bg);
    border: none;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 16px;
    color: var(--fg);
    cursor: pointer;
    border-radius: 8px;
}

.theme-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Canvas & Slider */
.canvas {
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider.show-article {
    transform: translateX(-50%);
}

.panel {
    width: 50%;
    flex-shrink: 0;
    vertical-align: top;
}

/* Container */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    box-sizing: border-box;
}

.main-content h1 {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
}

.body-text {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.body-text:last-of-type {
    margin-bottom: 0;
}

/* Text Links */
.text-link {
    color: var(--fg);
    text-decoration: none;
    background: var(--link-bg);
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}


/* Preview Box */

.preview-box {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 90px;
    border-radius: 8px;
    padding: 0;
    display: none;
    z-index: 1000;
}

.text-link:hover .preview-box {
    display: block;
}

/* Preview Content */
.preview-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg);
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.preview-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg);
}

/* Responsive Preview */
@media (max-width: 640px) {
    .preview-box {
        width: 140px;
        height: 90px;
    }
}

/* IDEAS Section */
.ideas-section {
    margin-top: 32px;
}

.ideas-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--muted);
}

.ideas-list {
    list-style: none;
}

.idea-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 12px;
    margin: 0 -12px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 24px;
    border-radius: 4px;
}

.idea-item:hover {
    background: #181818;
}

[data-theme="light"] .idea-item:hover {
    background: #ebebeb;
}

.idea-name {
    font-size: 12px;
    font-weight: 500;
}

.idea-date {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

/* Article Panel */
.article-panel {
    padding-top: 0;
}

.article-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Article Content */
.article-content {
    max-width: 100%;
}

.article-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 32px;
}

.article-image {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 24px;
    margin-bottom: 48px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.article-image:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.article-body {
    font-size: 12px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body p:last-child {
    margin-bottom: 48px;
}

/* Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to top, var(--bg) 60%, transparent);
    height: 64px;
    pointer-events: none;
}

.footer-inner {
    pointer-events: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 16px;
    gap: 12px;
}

.footer-link {
    color: var(--fg);
    text-decoration: none;
    font-size: 12px;
}

.footer-divider {
    color: var(--muted);
}

/* Responsive */
@media (max-width: 640px) {
    .main-content {
        padding: 80px 0 80px 0;
        min-height: auto;
        align-items: flex-start;
    }

    .main-content h1 {
        margin-bottom: 24px;
    }

    .body-text {
        margin-bottom: 20px;
    }

    .idea-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .ideas-section {
        margin-top: 32px;
        padding-top: 24px;
    }

    .article-container {
        padding: 80px 24px 80px 24px;
        justify-content: flex-start;
        min-height: auto;
    }

    .container {
        padding: 0 16px;
    }

    .preview-box {
        display: none !important;
    }
}

/* Terminal Overlay */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0000AA;
    z-index: 3000;
    padding: 20px;
    font-family: 'Departure Mono', monospace;
    font-size: 14px;
    color: #FFFFFF;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

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

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.terminal-title {
    color: #AAAAAA;
}

.terminal-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    padding: 4px 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terminal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terminal-content {
    flex: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    text-transform: uppercase;
    overflow-y: auto;
    padding-bottom: 40px;
}

.terminal-content .terminal-line {
    min-height: 1.5em;
}

.terminal-content .terminal-char {
    display: inline-block;
}

.terminal-cursor-wrapper {
    min-height: 1.5em;
}

.terminal-cursor {
    animation: terminalBlink 0.5s step-end infinite;
    color: #FFFFFF;
    font-weight: normal;
}

.terminal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
}

.terminal-overlay.physics-mode .terminal-content {
    display: none;
}

.terminal-overlay.physics-mode .terminal-canvas {
    display: block;
}

.terminal-overlay.physics-mode .terminal-header {
    position: relative;
    z-index: 3;
}

@keyframes terminalBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Disabled state for theme buttons when terminal is active */
.theme-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Active state for terminal button */
.theme-btn.terminal-active {
    background: #0000AA;
    color: #FFFFFF;
}

/* ========================================
   GIZA REPORT STYLES
   ======================================== */

/* Standalone Giza Page */
.giza-page .giza-container {
    padding-top: 80px;
}

.giza-page .header .logo {
    display: block;
}

/* Giza Container */
.giza-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

/* Giza Hero Section */
.giza-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.giza-hero-content {
    margin-bottom: 32px;
}

.giza-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 8px;
    color: var(--fg);
}

.giza-subtitle {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 16px;
}

.giza-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.giza-stat-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 8px;
}

.giza-stat-value {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #F97316;
}

/* Giza Sections */
.giza-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.giza-section:last-of-type {
    border-bottom: none;
}

.giza-section-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    color: var(--fg);
}

.giza-section-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 16px;
    display: block;
}

.giza-body {
    font-size: 12px;
    line-height: 1.8;
    color: var(--fg);
    margin-bottom: 16px;
}

.giza-body:last-child {
    margin-bottom: 0;
}

.giza-body strong {
    font-weight: 500;
}

/* Context Box */
.giza-context-box {
    background: var(--link-bg);
    padding: 24px;
    border: none;
}

/* Strategy Cards */
.giza-strategy {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.giza-strategy:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
}

.giza-strategy-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--fg);
}

/* Protocol Tags */
.giza-protocol-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.giza-protocol-tag {
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    background: var(--link-bg);
    border-radius: 4px;
    color: var(--fg);
}

/* Parameters */
.giza-params {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.giza-param {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.giza-param-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.giza-param-value {
    font-size: 12px;
    color: var(--fg);
}

/* Capital Tabs */
.giza-capital-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.giza-capital-tab {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.giza-capital-tab:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.giza-capital-tab.active {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

/* Chart Sections */
.giza-chart-section {
    margin-bottom: 48px;
}

.giza-chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.giza-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.giza-legend-line {
    width: 24px;
    height: 2px;
    background: var(--fg);
}

.giza-legend-line.dashed {
    background: repeating-linear-gradient(
        to right,
        var(--muted) 0,
        var(--muted) 4px,
        transparent 4px,
        transparent 8px
    );
}

.giza-legend-line.accent {
    background: #F97316;
}

.giza-chart-container {
    position: relative;
    height: 280px;
    margin-bottom: 16px;
}

/* Metrics Table */
.giza-metrics-section {
    margin-bottom: 32px;
}

.giza-metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.giza-metrics-table th,
.giza-metrics-table td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.giza-metrics-table th {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 400;
}

.giza-metrics-table td {
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}

.giza-metrics-table tbody tr:hover td {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.giza-highlight {
    color: #F97316 !important;
    font-weight: 500;
}

/* Summary Table */
.giza-summary-table th:last-child,
.giza-summary-table td:last-child {
    text-align: right;
}

.giza-scaling-note {
    margin-top: 24px;
    color: var(--muted);
}

/* Observations */
.giza-observations {
    margin-top: 32px;
}

/* Architecture Diagram */
.giza-architecture {
    margin-bottom: 32px;
}

.giza-architecture-diagram {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    background: var(--link-bg);
    padding: 24px;
    overflow-x: auto;
    white-space: pre;
}

/* Concepts */
.giza-concepts {
    display: grid;
    gap: 24px;
}

.giza-concept {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.giza-concept:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.giza-concept-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--fg);
}

/* Configurator */
.giza-configurator-section {
    background: var(--link-bg);
    padding: 32px 24px;
    margin: 0 -24px;
    border: none;
}

.giza-configurator {
    margin-top: 24px;
}

.giza-config-group {
    margin-bottom: 32px;
}

.giza-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.giza-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.giza-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.giza-checkbox input[type="checkbox"]:checked {
    background: var(--fg);
    border-color: var(--fg);
}

.giza-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.giza-checkbox-label {
    font-size: 12px;
    color: var(--fg);
}

/* Preset Buttons */
.giza-capital-presets,
.giza-period-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.giza-preset-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.giza-preset-btn:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.giza-preset-btn.active {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

/* Custom Input */
.giza-custom-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    background: transparent;
}

.giza-input-prefix {
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
}

.giza-custom-input input {
    flex: 1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px;
    padding-left: 0;
    background: transparent;
    border: none;
    color: var(--fg);
    outline: none;
}

.giza-custom-input input::placeholder {
    color: var(--muted);
}

/* Constraints */
.giza-constraints {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.giza-constraint {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.giza-constraint-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.giza-constraint-options {
    display: flex;
    gap: 8px;
}

.giza-constraint-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.giza-constraint-btn:hover {
    border-color: var(--fg);
    color: var(--fg);
}

.giza-constraint-btn.active {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

/* Generate Button */
.giza-generate-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 100%;
    padding: 16px;
    background: var(--fg);
    border: none;
    color: var(--bg);
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 16px;
}

.giza-generate-btn:hover {
    opacity: 0.9;
}

/* Estimate Result */
.giza-estimate-result {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.giza-estimate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.giza-estimate-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.giza-estimate-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.giza-estimate-value {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.giza-estimate-note {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 24px;
}

.giza-cta-btn {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid var(--fg);
    color: var(--fg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.giza-cta-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Disclaimers */
.giza-disclaimers {
    background: transparent;
}

.giza-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}

/* Giza Footer */
.giza-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.giza-footer-text {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

/* Giza Animations */
@keyframes gizaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gizaSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.giza-panel.active .giza-section {
    animation: gizaFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Giza Mobile Responsive */
@media (max-width: 640px) {
    .giza-container {
        padding: 80px 16px 100px;
    }

    .giza-hero {
        min-height: 50vh;
    }

    .giza-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
    }

    .giza-capital-tabs {
        flex-wrap: wrap;
    }

    .giza-capital-tab {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
    }

    .giza-chart-container {
        height: 220px;
    }

    .giza-metrics-table {
        font-size: 11px;
    }

    .giza-metrics-table th,
    .giza-metrics-table td {
        padding: 10px 4px;
    }

    .giza-estimate-stats {
        grid-template-columns: 1fr;
    }

    .giza-configurator-section {
        margin: 0 -16px;
        padding: 24px 16px;
    }

    .giza-preset-btn,
    .giza-constraint-btn {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .header,
    .sticky-footer,
    .theme-btn {
        display: none;
    }

    body {
        padding-top: 0;
        padding-bottom: 0;
    }

    .section {
        padding: 24px 0;
    }
}
