
:root {
    --bg-dark: #efede4;
    --bg-panel: rgba(244, 242, 234, 0.85);
    --bg-panel-solid: #f4f2ea;
    --border-color: rgba(28, 28, 34, 0.12);
    --border-color-glow: rgba(28, 28, 34, 0.25);

    --neon-green: #1b7a43;
    --neon-green-dim: #155e34;
    --neon-green-glow: rgba(27, 122, 67, 0.1);
    --neon-pink: #b32b2b;
    --neon-pink-glow: rgba(179, 43, 43, 0.1);
    --text-primary: #1c1c22;
    --text-secondary: #6b6a64;

    --card-cream: #efede4;
    --card-dark: #1c1c22;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.crt-glow::after {
    display: none;
}

.scanlines {
    display: none;
}

.ambient-glow {
    display: none;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(239, 237, 228, 0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.logo-pixel {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-pixel {
    transform: rotate(10deg) scale(1.05);
}

.logo-text h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 2px;
    font-family: 'Share Tech Mono', monospace;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary) !important;
    background: none !important;
    box-shadow: none !important;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 122, 67, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(27, 122, 67, 0.15);
}

.nav-social-icon:hover {
    color: var(--text-primary) !important;
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--neon-green);
    box-shadow: none;
}

.status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--neon-green);
}

section {
    padding: 100px 48px;
    width: 100%;
}

.section-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.section-heading.text-center {
    display: block;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-primary);
    text-transform: uppercase;
}

.section-heading p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-heading.text-center h2 {
    margin-bottom: 16px;
}

.hero-section {
    min-height: 94vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    position: relative;
    background: var(--bg-dark);
    isolation: isolate;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(28, 28, 34, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 28, 34, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    opacity: 0.8;
}

.hero-inner {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-card {
    width: 320px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
    animation: floatShowcase 4s ease-in-out infinite;
}

@keyframes floatShowcase {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.showcase-screen {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.showcase-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.showcase-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
}

.showcase-status .status-dot.pulsing {
    animation: statusPulse 1.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.eyebrow {
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.eyebrow::before {
    display: none;
}

.hero-content h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-copy {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
}

.stat-box {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-panel-solid);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.stat-num {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--text-primary);
}

.stat-lbl {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: 1px solid var(--text-primary);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-glow {
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
    background: rgba(28, 28, 34, 0.04);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.story-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.story-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    backdrop-filter: blur(12px);
    background: var(--bg-panel-solid);
}

.story-art {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    padding: 6px;
    background: rgba(28, 28, 34, 0.03);
    border-radius: 4px;
}

.grail-showcase {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grail-showcase svg {
    width: 100%;
    height: 100%;
    transform: scale(1.75);
    display: block;
}

.story-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: rgba(28, 28, 34, 0.04);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    border-radius: 3px;
    text-transform: uppercase;
}

.story-panel h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.story-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.trait-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.trait-strip span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: rgba(28, 28, 34, 0.03);
    color: var(--text-primary);
    border-radius: 4px;
}

.split-list {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.split-item {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.split-item strong {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--text-primary);
}

.split-item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.customizer-section {
    background: var(--bg-dark);
}

.customizer-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-container-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
}

.pixel-card {
    width: 290px;
    height: 290px;
    background-color: var(--card-cream);
    border: 10px solid #1c1c22;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.pixel-card.inverted {
    background-color: var(--card-dark);
    border-color: var(--card-cream);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pixel-card canvas {
    width: 100%;
    height: 100%;
    transform: scale(1.3);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

.stats-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 20px;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(12px);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.stat-row:last-child {
    border: none;
    padding-bottom: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
}

.rarity-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.rarity-badge.common {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.rarity-badge.uncommon {
    background: rgba(0, 186, 255, 0.15);
    color: #00baff;
    border: 1px solid rgba(0, 186, 255, 0.3);
}

.rarity-badge.rare {
    background: rgba(188, 0, 255, 0.15);
    color: #bc00ff;
    border: 1px solid rgba(188, 0, 255, 0.3);
}

.rarity-badge.epic {
    background: rgba(255, 128, 0, 0.15);
    color: #ff8000;
    border: 1px solid rgba(255, 128, 0, 0.3);
}

.rarity-badge.legendary {
    background: rgba(255, 0, 127, 0.15);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink-glow);
}

.rarity-badge.grail {
    background: rgba(0, 255, 128, 0.15);
    color: var(--neon-green);
    border: 1px solid var(--border-color-glow);
}

.actions-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.actions-panel .btn-primary {
    width: 100%;
}

.export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.controls-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.tabs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    background: rgba(28, 28, 34, 0.04);
}

.tab-btn {
    min-height: 50px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-panel-solid);
    border-bottom: 2px solid var(--text-primary);
}

.tab-content {
    display: none;
    padding: 24px;
    flex: 1;
}

.tab-content.active {
    display: block;
}

.trait-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.control-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-card h3 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.rarity-info {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: none;
    font-weight: normal;
}

.button-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selector-btn {
    padding: 6px 12px;
    background: rgba(28, 28, 34, 0.03);
    border: 1px solid rgba(28, 28, 34, 0.08);
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.selector-btn:hover {
    border-color: rgba(28, 28, 34, 0.25);
    color: var(--text-primary);
}

.selector-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-dark);
}

.simulator-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sim-header h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sim-header p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sim-actions .btn {
    width: 100%;
    max-width: 250px;
}

.sim-stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.summary-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: 4px;
    text-align: center;
}

.summary-num {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--neon-green);
    margin-bottom: 4px;
}

.summary-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.table-wrapper {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    text-align: left;
}

.sim-table th,
.sim-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-table th {
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.sim-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.cp-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.cp-card {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

.cp-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cp-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.cp-step {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
    min-width: 0;
}

.cp-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.step-no {
    width: 36px;
    height: 36px;
    background: rgba(28, 28, 34, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.step-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.step-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.x-connect-container {
    margin-bottom: 8px;
}

.btn-x {
    background: #ffffff;
    color: #000000;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    min-height: 40px;
}

.btn-x:hover {
    background: #e6e6e6;
    border-color: transparent;
    transform: translateY(-1px);
}

.x-connected {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
}

.x-check {
    font-weight: bold;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.btn-logout:hover {
    color: var(--neon-pink);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.field input {
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: var(--neon-green-dim);
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.1);
}

.task-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.task-checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.task-checkbox-label input:checked+.custom-checkbox {
    background: rgba(0, 255, 128, 0.1);
    border-color: var(--neon-green);
}

.task-checkbox-label input:checked+.custom-checkbox::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--neon-green);
    font-size: 14px;
    font-weight: bold;
}

.task-text a {
    color: var(--neon-green);
    text-decoration: underline;
}

.rack-wrap {
    position: relative;
    padding: 20px 0;
    margin: 10px 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rack-bar {
    height: 4px;
    background: var(--border-color);
    width: 100%;
    min-width: 600px;
    position: absolute;
    top: 30px;
    z-index: 1;
}

.rack {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 12px;
    min-width: 600px;
    padding-bottom: 8px;
}

.hood {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100px;
    background-color: var(--bg-panel-solid);
}

.hood:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 128, 0.35);
}

.hood.sel {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
    transform: translateY(-4px);
}

.hood-svg-preview {
    width: 60px;
    height: 60px;
    background: #1c1c22;
    border-radius: 4px;
    overflow: hidden;
}

.hood-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
}

.rack-pick {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--neon-green);
    text-align: center;
    margin-top: 12px;
}

.form-msg {
    margin-top: 14px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    text-align: center;
}

.form-msg.ok {
    color: var(--neon-green);
}

.form-msg.err {
    color: var(--neon-pink);
}

.cp-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.cp-success h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--neon-green);
}

.cp-success p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-share {
    width: 100%;
}

.roadmap-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.roadmap-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.roadmap-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.roadmap-intro strong {
    color: var(--text-primary);
}

.roadmap-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto 60px;
}

.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 128, 0.3);
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.marker-dot.completed {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 12px var(--neon-green-glow), 0 0 24px rgba(0, 255, 128, 0.15);
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(0, 255, 128, 0.3), rgba(0, 255, 128, 0.05));
    min-height: 20px;
}

.timeline-card {
    flex: 1;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.phase-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.phase-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.status-active {
    background: rgba(0, 255, 128, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.status-upcoming {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-launch {
    background: rgba(0, 255, 128, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.status-future {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-style: dashed;
}

.timeline-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.phase-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phase-checklist li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.phase-checklist li::before {
    content: "□";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-family: monospace;
}

.phase-checklist li.done {
    color: var(--text-secondary);
    opacity: 0.8;
}

.phase-checklist li.done::before {
    content: "■";
    color: var(--neon-green);
}

.exit-criteria {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: rgba(0, 255, 128, 0.03);
    border-left: 2px solid rgba(0, 255, 128, 0.25);
    border-radius: 0 4px 4px 0;
}

.exit-criteria strong {
    color: var(--neon-green);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.roadmap-principles {
    max-width: 820px;
    margin: 0 auto;
}

.roadmap-principles h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.principle-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.principle-card:hover {
    border-color: rgba(0, 255, 128, 0.3);
    transform: translateY(-2px);
}

.principle-num {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: var(--neon-green);
    opacity: 0.3;
    line-height: 1;
}

.principle-card strong {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.principle-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.app-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(239, 237, 228, 0.95);
    padding: 24px 48px;
    z-index: 10;
}

.footer-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.15);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 0 10px var(--neon-green-glow);
    }

    50% {
        opacity: 0.5;
        text-shadow: 0 0 4px var(--neon-green-glow);
    }
}

@media (max-width: 1024px) {
    .app-header {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 60px 24px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-section {
        padding-top: 100px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .story-art {
        max-width: 250px;
    }

    .customizer-grid {
        grid-template-columns: 1fr;
    }

    .trait-group-grid {
        grid-template-columns: 1fr;
    }

    .checker-form {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-card h3 {
        font-size: 13px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-intro {
        text-align: left;
    }
}

.modal-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 34, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-box-custom {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    width: min(420px, 90vw);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(28, 28, 34, 0.03);
}

.modal-header-custom h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-close-modal:hover {
    color: var(--neon-pink);
}

.modal-body-custom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-desc-custom {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.x-modal-error {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 127, 0.2);
    background: rgba(255, 0, 127, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
}

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.modal-footer-custom .btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
}

.wl-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 100px 48px;
    width: 100%;
}

.wl-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wl-tag {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wl-tag-line {
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.wl-tag-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.wl-title {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.wl-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.wl-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wl-form .field input {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    height: 50px !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
}

.wl-form .field input:focus {
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 10px rgba(28, 28, 34, 0.05) !important;
}

.btn-wl-submit {
    height: 52px;
    width: 100%;
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    font-weight: bold;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    background: var(--text-primary);
    box-shadow: none;
}

.btn-wl-submit:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
    filter: none;
}

.btn-wl-submit:active {
    transform: translateY(0);
}

.btn-wl-submit:disabled {
    background: #e1dfd7;
    color: #a3a19b;
    border-color: #d1cfc7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

.wl-result-container {
    margin-top: 10px;
    animation: wlFadeIn 0.3s ease-out;
}

@keyframes wlFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    padding: 24px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: rgba(28, 28, 34, 0.02);
}

.wl-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 255, 128, 0.2);
    border-top: 2px solid var(--neon-green);
    border-radius: 50%;
    animation: wlSpin 1s linear infinite;
}

@keyframes wlSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wl-success-card {
    background: rgba(0, 255, 128, 0.04);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.05);
}

.wl-error-card {
    background: rgba(255, 0, 127, 0.04);
    border: 1px solid var(--neon-pink);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.05);
}

.wl-res-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wl-res-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

.wl-success-card .wl-res-status {
    color: var(--neon-green);
}

.wl-error-card .wl-res-status {
    color: var(--neon-pink);
}

.wl-res-message {
    font-size: 14px;
    color: #efede4;
    line-height: 1.5;
    margin: 0;
}

.wl-res-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.wl-res-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.wl-res-lbl {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
}

.wl-res-val {
    font-weight: bold;
    color: #efede4;
}

.wl-success-card .wl-res-val.highlight {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green-glow);
}

@media (max-width: 768px) {
    .wl-section {
        padding: 60px 20px;
    }
    .wl-card {
        padding: 24px;
    }
    .wl-title {
        font-size: 30px;
    }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(28, 28, 34, 0.1);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
    box-shadow: none;
}

.loader-terminal-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 3px;
    text-shadow: none;
    animation: loader-blink 1.2s infinite steps(2, start);
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-blink {
    to { opacity: 0.1; }
}

.page-view {
    animation: page-fade-in 0.4s ease forwards;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-mini {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(0, 255, 128, 0.1);
    border-top: 2px solid var(--neon-green);
    border-radius: 50%;
    animation: loader-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

.pull-quote {
    text-align: center;
    margin: 80px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pull-quote p {
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pull-quote .pull-quote-punchline {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 16px;
    text-transform: none;
    letter-spacing: -0.5px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.story-values-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    margin-top: 80px;
}

.values-horizontal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.value-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 32px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.value-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.value-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .values-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.api-section {
    padding: 60px 0 100px 0;
}

.api-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.api-feature-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 32px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.api-feature-card h3 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin: 0;
}

.api-feature-card strong {
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}

.api-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

@keyframes flowMove {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: background-color 0.2s, border-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--text-primary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    overflow-y: auto;
}

.mobile-nav a.route-link {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: block;
    text-align: center;
    background-color: var(--bg-panel-solid);
    transition: background-color 0.2s, border-color 0.2s;
}

.mobile-nav a.route-link:hover,
.mobile-nav a.route-link.active {
    background-color: var(--text-primary);
    color: var(--bg-panel-solid);
    border-color: var(--text-primary);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    @media (max-width: 480px) {
        .logo-text p {
            display: none;
        }
        .logo-text h1 {
            font-size: 16px !important;
        }
    }
}

.api-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 48px 32px;
    background: var(--bg-panel-solid);
    max-width: 800px;
    margin: 0 auto;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0.5;
    min-width: 40px;
}

.flow-line {
    height: 2px;
    background: var(--border-color);
    flex: 1;
    position: relative;
    width: 100%;
}

.flow-dot {
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: -2px;
    left: 0;
    animation: flowMove 2s infinite linear;
}

@media (max-width: 680px) {
    .api-flow-container {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        min-width: unset;
        height: 40px;
        width: 2px;
    }
    
    .flow-line {
        height: 100%;
        width: 2px;
    }
    
    .flow-dot {
        top: 0;
        left: -2px;
        animation: flowMoveVertical 2s infinite linear;
    }
}

@keyframes flowMoveVertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .cp-card {
        padding: 20px 16px;
    }

    .hero-stats {
        max-width: 100%;
        box-sizing: border-box;
    }

    .stat-box {
        padding: 12px 8px;
    }

    .stat-num {
        font-size: 13px;
    }

    .stat-lbl {
        font-size: 9px;
    }

    .showcase-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-inner {
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        box-sizing: border-box;
    }

    .card-container-wrapper {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .pixel-card {
        width: 100%;
        max-width: 290px;
        height: auto;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        border-width: 6px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .api-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .api-feature-card {
        padding: 20px;
    }

    .api-section {
        padding: 60px 16px 80px 16px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-card {
        padding: 16px;
        margin-bottom: 24px;
    }

    .phase-checklist li {
        font-size: 12px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}