:root {
    --primary: #ff8000;
    --primary-rgb: 255, 128, 0;
    --brand-dark: #414141;
    --brand-neon: #D9FF3D;
    --brand-pink: #FF8EAB;
    --bg-deep: #0a0a0a;
    --bg-surface: rgba(65, 65, 65, 0.3);
    --text-main: #f8f8f8;
    --text-dim: #999;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, #ffab00 100%);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Hamburger Menu ────────────────────────────────────────────── */
.hamburger-btn {
    position: fixed;
    top: 40px; left: 40px;
    width: 56px; height: 56px;
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.hamburger-btn:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.05);
}

.hamburger-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.nav-link {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -2px;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.nav-overlay.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
.nav-overlay.active .nav-link:nth-child(5) { transition-delay: 0.5s; }
.nav-overlay.active .nav-link:nth-child(6) { transition-delay: 0.6s; }

.nav-link:hover {
    color: var(--primary);
    transform: scale(1.1);
    letter-spacing: 2px;
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--x, 0px) var(--y, 0px), rgba(var(--primary-rgb), 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 100px 0;
    width: 100%;
}

h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 72px);
    letter-spacing: -3px;
    line-height: 1.05;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(var(--primary-rgb), 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(255, 142, 171, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.logo-hero {
    width: 140px;
    height: 140px;
    margin-bottom: 32px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.5));
    border-radius: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-3deg) scale(1); }
    50%       { transform: translateY(-20px) rotate(3deg) scale(1.05); }
}

h1 {
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -5px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.tagline {
    font-size: clamp(18px, 3vw, 26px);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    opacity: 0.75;
}

.subtitle {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 60px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(var(--primary-rgb), 0.07);
    padding: 9px 22px;
    border-radius: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin-top: 40px;
}

.tech-badge {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}

.subtle-cta-hero {
    margin-top: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 12px 28px;
    border-radius: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.subtle-cta-hero:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
}

/* ── Features ──────────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 100px auto;
    padding: 0 30px;
}

.feature {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature:hover::after { opacity: 1; }

.feature-icon {
    font-size: 50px;
    margin-bottom: 30px;
    display: block;
    transition: transform 0.4s ease;
}

.feature:hover .feature-icon { transform: scale(1.2) rotate(5deg); }

.feature h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 800;
}

.feature p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.8;
}

/* ── Screenshots ───────────────────────────────────────────────── */
.screenshots {
    max-width: 1400px;
    margin: 140px auto;
    padding: 0 20px;
}

.screenshots h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    align-items: start;
}

.screenshot-item {
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.screenshot-item:hover {
    transform: scale(1.03) rotate(1deg);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.screenshot-placeholder {
    width: 100%;
    background: #000;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.screenshot-item.horizontal .screenshot-placeholder { aspect-ratio: 16/10; }
.screenshot-item.vertical .screenshot-placeholder   { max-height: 700px; }

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.screenshot-item:hover img { transform: scale(1.05); }

.screenshot-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    padding: 0 10px;
}

.screenshot-desc {
    font-size: 16px;
    color: var(--text-dim);
    padding: 0 10px 10px;
}

/* ── Stickers ──────────────────────────────────────────────────── */
.stickers {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 20px;
    text-align: center;
}

.stickers h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stickers-subtitle {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.sticker-grid,
.sticker-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.sticker-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.sticker-card:hover {
    transform: scale(1.08) rotate(-2deg);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.sticker-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

.sticker-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* ── Philosophy ────────────────────────────────────────────────── */
.philosophy {
    max-width: 1100px;
    margin: 180px auto;
    padding: 0 20px;
    text-align: center;
}

.philosophy h2 {
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.45) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.philosophy-intro {
    font-size: 24px;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 100px;
    line-height: 1.6;
}

.philosophy-grid,
.philosophy-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.philosophy-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    padding: 60px 40px;
    text-align: left;
    transition: var(--transition-smooth);
}

.philosophy-item:hover {
    background: rgba(65, 65, 65, 0.5);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.philosophy-item-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: block;
}

.philosophy-item h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.philosophy-item p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.8;
}

.philosophy-outro {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 80px auto 0;
    line-height: 1.8;
    font-style: italic;
}

.philosophy-cta {
    margin-top: 40px;
    text-align: center;
}

.subtle-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.subtle-link:hover {
    opacity: 1;
    letter-spacing: 1px;
}

/* ── Golden Conduct Book ───────────────────────────────────────── */
.conduct {
    padding: 120px 20px 160px;
    margin: 80px 0;
    position: relative;
}

.conduct::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #080600 15%, #080600 85%, transparent 100%);
    z-index: -1;
}

.conduct-hdr {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 70px;
}

.conduct-hdr h2 {
    background: linear-gradient(135deg, #ffd060 0%, #ff9000 55%, #ffb830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.conduct-hdr p {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* Scene & scroll wrapper */
.conduct-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.conduct-scroll {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
}

/* Book container */
.conduct-book {
    position: relative;
    width: 900px;
    min-width: 900px;
    height: 590px;
    perspective: 2400px;
    perspective-origin: 50% 50%;
    filter: drop-shadow(0 40px 70px rgba(0,0,0,0.85)) drop-shadow(0 0 60px rgba(255,128,0,0.04));
    flex-shrink: 0;
}

/* Left side backdrop */
.cb-left-bg {
    position: absolute;
    left: 0; top: 0;
    width: 447px;
    height: 100%;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 29px,
            rgba(0,0,0,0.18) 29px,
            rgba(0,0,0,0.18) 30px
        ),
        linear-gradient(160deg, #1e0f00, #130900 50%, #1c0e00);
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 150, 0, 0.1);
    border-right: none;
    box-shadow: inset -14px 0 28px rgba(0,0,0,0.55);
}

/* Right side backdrop (visible when all pages flipped) */
.cb-right-bg {
    position: absolute;
    right: 0; top: 0;
    width: 453px;
    height: 100%;
    background: linear-gradient(160deg, #101010, #0d0d0d 60%, #101010);
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255,128,0,0.06);
    border-left: none;
}

/* Individual pages — all stack in the right half */
.conduct-page {
    position: absolute;
    right: 0; top: 0;
    width: 450px;
    height: 590px;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
    will-change: transform;
}

/* Initial z-index stack (cover on top) */
.conduct-page:nth-child(3) { z-index: 4; }
.conduct-page:nth-child(4) { z-index: 3; }
.conduct-page:nth-child(5) { z-index: 2; }
.conduct-page:nth-child(6) { z-index: 1; }

.conduct-page.cp-flipped { transform: rotateY(-180deg); }

/* Page faces */
.conduct-page .cp-front,
.conduct-page .cp-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.conduct-page .cp-front {
    background: linear-gradient(155deg, #111 0%, #0d0d0d 55%, #101010 100%);
    border: 1px solid rgba(255,128,0,0.07);
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.conduct-page .cp-back {
    transform: rotateY(180deg);
    background: linear-gradient(155deg, #0d0d0d 0%, #111 55%, #0d0d0d 100%);
    border: 1px solid rgba(255,128,0,0.07);
    border-right: none;
    border-radius: 6px 0 0 6px;
}

/* Cover front — leather with gold frame */
.cp-cover .cp-front {
    background: linear-gradient(145deg, #221000 0%, #301800 35%, #1c0c00 65%, #2c1500 100%);
    border: 2px solid rgba(255, 185, 0, 0.55);
    border-radius: 0 6px 6px 0;
    clip-path: polygon(
        0 0, 12% 0, 12% 2px, 88% 2px, 88% 0,
        100% 0, 100% 9%, calc(100% - 2px) 9%, calc(100% - 2px) 91%, 100% 91%,
        100% 100%, 88% 100%, 88% calc(100% - 2px), 12% calc(100% - 2px), 12% 100%,
        0 100%, 0 91%, 2px 91%, 2px 9%, 0 9%
    );
}

/* Back cover face */
.cp-backcover {
    background: linear-gradient(145deg, #221000 0%, #301800 35%, #1c0c00 65%, #2c1500 100%) !important;
    border: 2px solid rgba(255, 185, 0, 0.55) !important;
    border-right: 2px solid rgba(255, 185, 0, 0.55) !important;
    border-radius: 6px 0 0 6px !important;
    clip-path: polygon(
        0 0, 12% 0, 12% 2px, 88% 2px, 88% 0,
        100% 0, 100% 9%, calc(100% - 2px) 9%, calc(100% - 2px) 91%, 100% 91%,
        100% 100%, 88% 100%, 88% calc(100% - 2px), 12% calc(100% - 2px), 12% 100%,
        0 100%, 0 91%, 2px 91%, 2px 9%, 0 9%
    ) !important;
}

/* Ornamental corners */
.cov-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: rgba(255, 200, 50, 0.65);
    border-style: solid;
}
.cov-tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.cov-tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.cov-bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.cov-br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; }

/* Cover / back cover body */
.cov-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 40px;
    text-align: center;
}

.cov-community {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 185, 50, 0.45);
}

.cov-sigil {
    font-size: 54px;
    line-height: 1;
    color: rgba(255, 185, 50, 0.8);
    filter: drop-shadow(0 0 24px rgba(255, 185, 0, 0.35));
    margin: 6px 0;
}

.cov-title {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffd060 0%, #ff9000 55%, #ffb830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cov-rule {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,185,50,0.45), transparent);
    margin: 2px 0;
}

.cov-edition {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(255, 185, 50, 0.35);
    text-transform: uppercase;
}

/* Back cover specific */
.backc-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,185,50,0.55);
    text-transform: uppercase;
}

.backc-edition {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffd060 0%, #ff9000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.backc-motto {
    font-style: italic;
    font-size: 13px;
    color: rgba(255,185,50,0.3);
    letter-spacing: 0.3px;
}

/* Inner page content layout */
.pg-inner {
    padding: 26px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.pg-section {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    opacity: 0.65;
}

.pg-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,128,0,0.3);
}

.pg-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,128,0,0.22), transparent 70%);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.pg-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 7px;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.pg-badge {
    display: inline-block;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(255,128,0,0.06);
    border: 1px solid rgba(255,128,0,0.14);
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.pg-preamble {
    font-size: 13px;
    color: #888;
    line-height: 1.85;
    font-style: italic;
    flex: 1;
    margin-top: 6px;
}

.pg-seal {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(255,128,0,0.2);
    text-align: center;
    margin-top: auto;
    padding-top: 14px;
}

/* Rule entries */
.rule-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.rule-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 11px;
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 7px;
    transition: background 0.2s, border-color 0.2s;
}

.rule-row:hover {
    background: rgba(255,128,0,0.04);
    border-color: rgba(255,128,0,0.12);
}

.rule-row.severe {
    background: rgba(255,100,130,0.04);
    border-color: rgba(255,100,130,0.18);
}

.rule-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: var(--primary);
    min-width: 44px;
    flex-shrink: 0;
    padding-top: 1px;
    letter-spacing: 0.5px;
}

.rule-id.sev { color: var(--brand-pink); }

.rule-text {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
}

.rule-text.sev { color: var(--brand-pink); }

/* Escalation chain */
.esc-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
    flex: 1;
}

.esc-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid;
}

.esc-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: currentColor;
    color: #0a0a0a;
    flex-shrink: 0;
    font-weight: 900;
}

.esc-node.s1 { color: #ffd700; border-color: rgba(255,215,0,0.22); background: rgba(255,215,0,0.04); }
.esc-node.s2 { color: #ffaa22; border-color: rgba(255,170,34,0.22); background: rgba(255,170,34,0.04); }
.esc-node.s3 { color: #ff6622; border-color: rgba(255,102,34,0.22); background: rgba(255,102,34,0.04); }
.esc-node.s4 { color: #ff3333; border-color: rgba(255,51,51,0.22); background: rgba(255,51,51,0.04); }
.esc-node.s5 { color: #ff1144; border-color: rgba(255,17,68,0.28); background: rgba(255,17,68,0.06); }

.esc-arrow {
    text-align: center;
    color: rgba(255,255,255,0.12);
    font-size: 11px;
    line-height: 1;
    padding: 1px 0;
}

.esc-note {
    font-size: 10px;
    color: #555;
    line-height: 1.55;
    padding: 7px 10px;
    border-left: 2px solid rgba(255,128,0,0.18);
    margin-top: 7px;
    flex-shrink: 0;
}

/* Rights entries */
.rights-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 6px;
    flex: 1;
}

.rights-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 7px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
    transition: background 0.2s, border-color 0.2s;
}

.rights-row:hover {
    background: rgba(255,128,0,0.04);
    border-color: rgba(255,128,0,0.12);
}

.rights-icon {
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
    line-height: 1.5;
}

/* Navigation */
.conduct-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.conduct-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(255,128,0,0.05);
    border: 1px solid rgba(255,128,0,0.18);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.conduct-btn:hover:not(:disabled) {
    background: rgba(255,128,0,0.1);
    border-color: rgba(255,128,0,0.38);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,128,0,0.1);
}

.conduct-btn:disabled {
    opacity: 0.22;
    cursor: default;
    transform: none;
}

.conduct-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.cdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,128,0,0.2);
    transition: all 0.35s ease;
    cursor: default;
}

.cdot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255,128,0,0.4);
}

/* ── Roadmap ───────────────────────────────────────────────────── */
.roadmap {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 70px;
}

.roadmap-header h2 {
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#roadmap-disclaimer {
    font-size: 18px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.roadmap-column {
    background: linear-gradient(180deg, var(--bg-surface) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px;
    position: relative;
}

.roadmap-column::after {
    content: '';
    position: absolute;
    top: 0; left: 50px; right: 50px; height: 5px;
    border-radius: 0 0 5px 5px;
}

.roadmap-column.done::after   { background: var(--primary);    box-shadow: 0 0 20px var(--primary); }
.roadmap-column.todo::after   { background: var(--brand-neon); box-shadow: 0 0 20px var(--brand-neon); }
.roadmap-column.future::after { background: var(--brand-pink); box-shadow: 0 0 20px var(--brand-pink); }

.roadmap-column-title {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #666;
}

.roadmap-list { list-style: none; }

.roadmap-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-dim);
    transition: var(--transition-smooth);
}

.roadmap-list li:hover { color: var(--text-main); }

.roadmap-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 14px; height: 14px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.roadmap-column.done   li::before { background: var(--primary);    box-shadow: 0 0 15px var(--primary); }
.roadmap-column.todo   li::before { background: var(--brand-neon); box-shadow: 0 0 15px var(--brand-neon); }
.roadmap-column.future li::before { background: var(--brand-pink); box-shadow: 0 0 15px var(--brand-pink); }

.roadmap-list li:hover::before { transform: scale(1.5) rotate(45deg); }

.roadmap-footnote {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    margin-top: 60px;
}

.roadmap-footnote p { font-size: 14px; color: #555; line-height: 1.7; }
.roadmap-footnote p:first-child { color: #666; font-weight: 600; margin-bottom: 8px; }

/* ── CTA ───────────────────────────────────────────────────────── */
.cta {
    padding: 240px 20px;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.05), transparent 70%);
    text-align: center;
}

.cta h2 {
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 48px;
}

.download-btn {
    display: inline-block;
    padding: 32px 96px;
    background: var(--accent-gradient);
    color: #000;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    border-radius: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.3);
}

.download-btn:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 40px 90px rgba(var(--primary-rgb), 0.5);
    filter: brightness(1.1);
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #555;
    font-size: 14px;
}

/* ── Lang Switcher ─────────────────────────────────────────────── */
.lang-switcher {
    position: fixed;
    top: 40px; right: 40px;
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    z-index: 1000;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 28px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
}

/* ── Tablet (≤ 900px) ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .roadmap-grid,
    .philosophy-grid,
    .philosophy-grid-bottom {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
    section { padding: 60px 0; }

    h2 {
        font-size: clamp(28px, 9vw, 44px);
        letter-spacing: -1px;
        margin-bottom: 36px;
    }

    /* Hero */
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .logo-hero { width: 100px; height: 100px; margin-bottom: 24px; }
    h1 { font-size: clamp(48px, 13vw, 72px); letter-spacing: -3px; }
    .tagline { font-size: clamp(16px, 4.5vw, 20px); }
    .subtitle { font-size: 11px; padding: 8px 16px; margin-bottom: 36px; }
    .tech-stack { gap: 8px; margin-top: 28px; }
    .tech-badge { padding: 8px 14px; font-size: 11px; border-radius: 12px; }

    /* Lang switcher */
    .lang-switcher { top: 16px; right: 16px; }
    .lang-btn { padding: 8px 16px; font-size: 13px; }

    /* Hamburger */
    .hamburger-btn { top: 16px; left: 16px; width: 48px; height: 48px; border-radius: 14px; }
    .hamburger-btn span { width: 20px; }

    /* Features */
    .features { grid-template-columns: 1fr; gap: 16px; margin: 60px auto; padding: 0 16px; }
    .feature { padding: 32px 24px; border-radius: 24px; }
    .feature-icon { font-size: 38px; margin-bottom: 20px; }
    .feature h3 { font-size: 20px; }
    .feature p { font-size: 15px; }

    /* Screenshots */
    .screenshots { margin: 60px auto; padding: 0 16px; }
    .screenshot-grid { grid-template-columns: 1fr; gap: 20px; }
    .screenshot-item { border-radius: 24px; padding: 16px; }
    .screenshot-item:hover { transform: none; }
    .screenshot-title { font-size: 18px; }
    .screenshot-desc { font-size: 14px; }

    /* Stickers */
    .stickers { margin: 60px auto; padding: 0 16px; }
    .sticker-grid,
    .sticker-grid-bottom { grid-template-columns: 1fr; gap: 16px; }
    .sticker-card { padding: 20px; border-radius: 20px; }
    .sticker-card:hover { transform: none; }
    .stickers-subtitle { letter-spacing: 2px; font-size: 13px; margin-bottom: 40px; }

    /* Philosophy */
    .philosophy { margin: 60px auto; padding: 0 16px; }
    .philosophy-intro { font-size: 17px; margin-bottom: 48px; }
    .philosophy-item { padding: 32px 24px; border-radius: 24px; }
    .philosophy-outro { font-size: 16px; margin-top: 48px; }

    /* Conduct – mobile card layout */
    .conduct { padding: 60px 0 80px; margin: 60px 0; }
    .conduct-hdr { padding: 0 16px; margin-bottom: 36px; }
    .conduct-hdr p { font-size: 15px; }

    .conduct-scroll { overflow: visible; padding: 0 16px; height: auto; }

    .conduct-book {
        width: 100%;
        min-width: unset;
        height: 620px;
        perspective: none;
        filter: drop-shadow(0 16px 40px rgba(0,0,0,0.7));
    }

    .cb-left-bg, .cb-right-bg { display: none; }

    .conduct-page {
        position: relative;
        right: auto;
        width: 100%;
        height: 100%;
        transform: none !important;
        transform-style: flat;
        transition: none;
        display: none;
    }
    .conduct-page.cm-active { display: block; }

    .conduct-page .cp-front,
    .conduct-page .cp-back {
        position: relative;
        transform: none !important;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        height: 100%;
        display: none;
        border-radius: 12px;
        border: 1px solid rgba(255,128,0,0.09);
        border-left: 1px solid rgba(255,128,0,0.09);
        border-right: 1px solid rgba(255,128,0,0.09);
    }
    .conduct-page .cp-front.cm-face-active,
    .conduct-page .cp-back.cm-face-active { display: block; }

    /* Cover keeps its clip-path look on mobile */
    .cp-cover .cp-front { min-height: 100%; }
    .cp-cover .cp-front .cov-body { position: relative; inset: auto; height: 100%; padding: 36px 30px; }

    /* Back cover */
    .cp-backcover { min-height: 100%; }
    .cp-backcover .cov-body { position: relative; inset: auto; height: 100%; padding: 36px 30px; }

    /* Inner pages */
    .pg-inner { height: 100%; min-height: unset; }
    .pg-seal { margin-top: auto; }

    .conduct-nav { gap: 12px; }
    .conduct-btn { padding: 9px 14px; font-size: 10px; }

    /* Roadmap */
    .roadmap { margin: 60px auto; padding: 0 16px; }
    .roadmap-grid { gap: 16px; }
    .roadmap-column { padding: 32px 24px; border-radius: 28px; }
    .roadmap-column-title { font-size: 13px; letter-spacing: 2px; margin-bottom: 24px; }
    .roadmap-list li { font-size: 14px; margin-bottom: 16px; }
    #roadmap-disclaimer { font-size: 14px; }
    .roadmap-footnote { padding-top: 24px; margin-top: 32px; }
    .roadmap-footnote p { font-size: 12px; }
}

/* ── CTA ───────────────────────────────────────────────────────── */
.cta {
    padding: 120px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-section {
    margin-top: 60px;
}

.download-btn {
    display: inline-block;
    padding: 24px 48px;
    background: var(--primary);
    color: var(--bg-deep);
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
}

.download-btn.disabled {
    background: var(--bg-surface);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.download-btn:not(.disabled):hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.3);
}

footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    color: var(--text-dim);
    font-size: 14px;
}

/* ── Small phones (≤ 420px) ────────────────────────────────────── */
@media (max-width: 420px) {
    h1 { font-size: clamp(40px, 14vw, 56px); letter-spacing: -2px; }
    .logo-hero { width: 80px; height: 80px; }
    .tech-badge { padding: 6px 12px; font-size: 10px; }
    .feature { padding: 28px 20px; }
    .philosophy-item { padding: 28px 20px; }
    .roadmap-column { padding: 28px 20px; }
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--brand-dark);
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* Mailing List Styling */
.mailing-list {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#mailing-list-text {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mailing-form {
    display: flex;
    gap: 12px;
}

#mailing-email {
    flex-grow: 1;
    background: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#mailing-email:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

#mailing-submit {
    background: var(--primary);
    color: var(--bg-deep);
    border: none;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#mailing-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.mailing-msg {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

.privacy-note {
    margin-top: 12px;
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mailing-msg.success { color: #2ecc71; }
.mailing-msg.error { color: #e74c3c; }

@media (max-width: 600px) {
    .mailing-form { flex-direction: column; }
    #mailing-submit { padding: 14px; }
}

/* ── Minimal Page (DOI/Opt-Out) ──────────────────────────────── */
.minimal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

.minimal-page .hero {
    height: auto;
    padding: 4rem 1rem;
    min-height: auto;
}


