:root {
    --bg-paper: #ffffff;
    --paper-edge: #ede8d5;
    --ink: #1c1917;
    --red-stamp: #dc2626;
    --font-script: 'Courier New', Courier, monospace;
    --font-ui: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: grayscale;
}

body {
    background-color: var(--paper-edge);
    color: var(--ink);
    font-family: var(--font-script);
    line-height: 1.5;
    overflow-x: hidden;
}

.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    opacity: 0.15;
    pointer-events: none;
    z-index: 1000;
}

/* --- Nav --- */
.paper-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    background: transparent;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--ink);
}
.logo .dot { color: var(--red-stamp); }

.cta-paper {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.cta-paper:hover { color: var(--red-stamp); border-color: var(--red-stamp); }

/* --- Pure Paper Pages Stack --- */
.script-stack {
    perspective: 1000px;
}

.paper-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    transform-style: preserve-3d;
}

.page-content {
    background: var(--bg-paper);
    width: 100%;
    max-width: 850px;
    min-height: 1100px; /* Letter/A4 Aspect */
    padding: 120px 80px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border-radius: 2px;
}

/* Page Stack Effect - Improved Centering */
.page-content::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px;
    width: 100%; height: 100%;
    background: var(--bg-paper);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
    z-index: -1;
    transform: rotate(0.5deg);
    border-radius: 2px;
}

.page-content::after {
    content: '';
    position: absolute;
    top: 10px; left: -5px;
    width: 100%; height: 100%;
    background: var(--bg-paper);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
    z-index: -2;
    transform: rotate(-0.8deg);
    border-radius: 2px;
}

/* --- Hero --- */
.stamped {
    position: absolute;
    top: 60px;
    right: 80px;
    border: 4px double var(--red-stamp);
    color: var(--red-stamp);
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    transform: rotate(15deg);
    opacity: 0.8;
}

.script-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.script-subtitle {
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--ink);
    opacity: 0.8;
}

.btn-ink {
    display: inline-block;
    padding: 20px 40px;
    background: var(--ink);
    color: var(--bg-paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 2px;
    transition: 0.3s;
}
.btn-ink:hover { background: var(--red-stamp); transform: translateY(-2px); }
.btn-ink.big { font-size: 1.5rem; padding: 25px 60px; }

/* --- Features Styling --- */
.page-num {
    position: absolute;
    bottom: 60px;
    right: 80px;
    font-size: 0.9rem;
    opacity: 0.4;
}

.scene-heading { 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 30px; 
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
}

.action { margin-bottom: 40px; max-width: 80%; }

.script-demo {
    margin: 60px 0;
    border-left: 2px solid var(--red-stamp);
    padding-left: 40px;
}
.char { text-align: center; width: 60%; margin: 0 auto; font-weight: 700; }
.dial { text-align: center; width: 80%; margin: 10px auto; }

.device-list { margin-top: 50px; font-size: 1.4rem; font-weight: 700; word-spacing: 20px; }

.shotlist-mock {
    background: rgba(0,0,0,0.03);
    padding: 40px;
    border: 1px dashed rgba(0,0,0,0.1);
}
.shotlist-mock .row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 10px 0; font-size: 0.9rem; }

.sync-status { color: var(--red-stamp); font-weight: 700; margin-top: 40px; }

.signature { margin: 60px 0; font-size: 1.2rem; font-style: italic; opacity: 0.6; }

/* --- Changelog --- */
.changelog-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.log-item {
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

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

.log-item .version {
    font-weight: 700;
    color: var(--red-stamp);
    margin-right: 15px;
}

.log-item .date {
    font-size: 0.85rem;
    opacity: 0.5;
}

.log-item ul {
    margin-top: 15px;
    list-style: none;
    padding-left: 20px;
}

.log-item li {
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.log-item li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: var(--ink);
    opacity: 0.3;
}

/* --- Footer --- */
.paper-footer {
    padding: 80px 50px 40px;
    background: var(--paper-edge);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: var(--ink);
    opacity: 1;
}

.footer-col p {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    opacity: 0.6;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--red-stamp);
}

.footer-status {
    margin-top: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 1px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.3;
}

/* --- Mobile Fixes --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col p {
        margin: 0 auto;
    }
    .footer-col .logo {
        margin-bottom: 20px;
    }
}

