:root {
    --primary:   #0a1f44;   /* Deep Navy */
    --accent:    #ffb400;   /* Warm Amber */
    --secondary: #b71c1c;   /* Madhubani Red */
    --bg:        #fcfcfc;   /* Off-White */
    --text:      #212121;   /* Charcoal */
    --code-bg:   #f0f2f5;   /* Cool Gray for Code */
    --max-width: 900px;
    --border: #eeeeee;
    --pattern-madhubani: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' fill='%230a1f44'/%3E%3Cpath d='M0 20h40M20 0v40' stroke='%231a3f64' stroke-width='2'/%3E%3C/svg%3E");
}

/* Reset & Base */
*, *::before, *::after { box-sizing:border-box; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.container { padding: 0 2rem 4rem 2rem; max-width: var(--max-width); margin: 0 auto; }

/* Header (Resembles about.html) */
header {
    background-color: var(--primary);
    background-image: var(--pattern-madhubani);
    background-size: 20px 20px;
    padding: 2rem;
    color: #fff;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--accent);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
}
nav a {
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    border: none;
}
nav a:hover, nav a.active {
    color: var(--accent);
    opacity: 1;
    border-bottom: 2px solid var(--accent);
}

/* Typography & Links */
h1, h2, h3 { color: var(--primary); letter-spacing: -0.5px; margin-top: 2rem; }
h1 { margin-top: 0; font-size: 2.2rem; border-left: 5px solid var(--accent); padding-left: 1rem; }
a { color: var(--secondary); text-decoration: none; border-bottom: 1px solid rgba(183, 28, 28, 0.3); }
a:hover { background-color: rgba(255, 180, 0, 0.1); border-bottom: 2px solid var(--secondary); }
p { margin-bottom: 1.2rem; }
ul { padding-left: 20px; }
li { margin-bottom: 8px; }

/* Code & Script Box */
pre { background: var(--code-bg); padding: 15px; border-left: 4px solid var(--primary); overflow-x: auto; font-family: monospace; border-radius: 6px; }
code { font-family: monospace; color: var(--secondary); background: rgba(0,0,0,0.05); padding: 2px 5px; border-radius: 3px; }
pre code { color: #333; background: transparent; padding: 0; }
.script-box {
    width: 100%;
    height: 600px;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Components */
.callout { background: #fff; padding: 1.5rem; border: 1px solid var(--primary); border-radius: 4px; margin: 2rem 0; box-shadow: 4px 4px 0px rgba(10, 31, 68, 0.08); }
.badge { background: var(--primary); color: #fff; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; margin-right: 5px; text-transform: uppercase; border-radius: 3px; }
.hero {
    background: var(--primary);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--accent);
}
.hero code { background: rgba(255,255,255,0.2); color: #fff; }
.download-bar {
    background: #fffcf5;
    padding: 1.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid var(--accent);
}
.btn {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s;
}
.btn:hover { background-color: #ffd460; }

/* Footer (Resembles about.html) */
footer {
    margin-top: 5rem;
    padding: 3rem 0;
    background: var(--primary);
    color: #bbb;
    text-align: center;
}
footer a {
    color: var(--accent);
    text-decoration: none;
    border-color: var(--accent);
}
