:root {
    --ink: #0a0a0f;
    --paper: #f5f0e8;
    --cream: #ede8dc;
    --gold: #c9a84c;
    --gold2: #e8c96a;
    --rust: #c94c2e;
    --sage: #4a6741;
    --muted: #7a7468;
    --border: #d8d2c4;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-title: 'DM Serif Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
/* Noise texture using SVG data URI on a pseudo-element */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    z-index: 9999;
}
/* Typography Helpers */
.eyebrow {
    font-family: var(--font-mono);
    color: var(--rust);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.gold-text { color: var(--gold); }
.hidden { display: none !important; }
/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 2px;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink);
    margin-right: 24px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
/* Buttons */
button {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--ink);
    color: var(--cream);
    padding: 10px 24px;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
    transition: transform 0.4s ease;
}
.btn-primary:hover::after { transform: translateX(200%); }
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 10px 24px;
}
.btn-secondary:hover {
    background: rgba(10, 10, 15, 0.05);
}
.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 20px;
}
.btn-dark {
    background: var(--ink);
    color: white;
}
.btn-dark:hover {
    background: #1a1a24;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--ink);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.6);
}
.btn-full { width: 100%; padding: 14px; margin-bottom: 12px; }
/* Hero Section */
.hero {
    padding: 140px 10% 80px 10%;
    display: flex;
    gap: 60px;
    min-height: 90vh;
    align-items: center;
}
.hero-left { flex: 1; }
.hero-title {
    font-family: var(--font-title);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title i { font-style: italic; color: var(--gold); }
.hero-subtext {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 60px; }
.stats-row { display: flex; gap: 40px; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--ink);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
}
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.mock-resume-card {
    background: var(--cream);
    width: 320px;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10,10,15,0.1);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
}
.skeleton-header { width: 60%; height: 24px; background: var(--border); border-radius: 4px; margin-bottom: 40px; }
.skeleton-line { width: 100%; height: 12px; background: rgba(216, 210, 196, 0.5); border-radius: 4px; margin-bottom: 16px; }
.skeleton-line:last-child { width: 80%; }
.badge {
    position: absolute;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.badge-green { top: 20px; right: -20px; background: var(--sage); color: white; }
.badge-red { bottom: 40px; left: -30px; background: var(--rust); color: white; }
/* Animations */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-anim { animation: floatY 6s ease-in-out infinite; }
.float-anim-delayed { animation: floatY 6s ease-in-out 1s infinite; }
.float-anim-delayed-2 { animation: floatY 6s ease-in-out 2s infinite; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}
/* How It Works Section */
.how-it-works {
    background: var(--ink);
    color: var(--paper);
    padding: 100px 10%;
}
.section-header { text-align: center; margin-bottom: 60px; }
.how-it-works .eyebrow { color: var(--gold); }
.how-it-works .section-title { font-family: var(--font-title); font-size: 3rem; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(216, 210, 196, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-8px); background: rgba(245, 240, 232, 0.06); }
.step-icon { font-size: 2.5rem; margin-bottom: 20px; }
.step-title { font-size: 1.2rem; margin-bottom: 12px; }
.step-desc { color: rgba(245, 240, 232, 0.7); margin-bottom: 20px; font-size: 0.95rem; }
.step-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border-radius: 4px;
}
/* Builder Section */
.builder { padding: 100px 10%; }
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}
.panel-header {
    background: var(--paper);
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.mac-dots { display: flex; gap: 8px; margin-right: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.panel-title { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); }
.panel-body { padding: 30px; }
.panel-subtitle { font-family: var(--font-mono); font-size: 1rem; margin: 30px 0 20px; color: var(--ink); }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.divider { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
/* Tag Input */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-height: 46px;
}
.tags-input-container:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.tags-input-container input {
    border: none !important; margin: 0; padding: 4px 8px !important; box-shadow: none !important; flex: 1; min-width: 150px; background: transparent;
}
.tag-chip {
    background: var(--ink);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tag-close { cursor: pointer; color: #aaa; }
.tag-close:hover { color: white; }
/* Research Panel */
.research-panel { display: flex; flex-direction: column; }
.empty-state { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-style: italic; min-height: 400px;}
.loading-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; }
.pulsing-dots { display: flex; gap: 8px; margin-bottom: 16px; }
.pulse-dot { width: 12px; height: 12px; background: var(--gold); border-radius: 50%; animation: pulse 1s infinite alternate; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.loaded-state { padding: 30px; animation: slideUp 0.5s ease; }
.company-info-row { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.company-initial { width: 48px; height: 48px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; border-radius: 8px; }
.company-meta h4 { font-size: 1.2rem; margin: 0; }
.company-meta p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.score-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.score-box { padding: 15px; border-radius: 8px; text-align: center; background: var(--paper); border-top: 3px solid; }
.score-green { border-color: var(--sage); }
.score-gold { border-color: var(--gold); }
.score-rust { border-color: var(--rust); }
.score-value { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--ink); line-height: 1; }
.score-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-family: var(--font-mono); }
.keywords-section h4, .values-section h4 { font-family: var(--font-mono); margin-bottom: 15px; font-size: 0.95rem; }
.keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.k-chip {
    padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; border: 1px solid;
}
.k-red { border-color: var(--rust); color: var(--rust); background: rgba(201, 76, 46, 0.05); }
.k-green { border-color: var(--sage); color: var(--sage); background: rgba(74, 103, 65, 0.05); }
.k-gold { border-color: var(--gold); color: var(--gold); background: rgba(201, 168, 76, 0.05); }
.keyword-legend { font-size: 0.75rem; display: flex; gap: 16px; margin-bottom: 30px; color: var(--muted); }
.legend-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-red { background: var(--rust); }
.legend-green { background: var(--sage); }
.legend-gold { background: var(--gold); }
.values-section ul { list-style: none; padding: 0; margin-bottom: 30px; }
.values-section ul li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 0.9rem; }
.values-section ul li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
/* Result Section */
.result { padding: 100px 10%; background: white; border-top: 1px solid var(--border); }
.result-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
/* Generated Resume View */
.rendered-resume {
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}
.resume-header { background: var(--ink); color: white; padding: 40px; }
.resume-header h1 { font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 5px; }
.resume-header h2 { font-family: var(--font-mono); font-size: 1rem; color: var(--gold); margin-bottom: 15px; }
.resume-divider { border: 0; border-top: 2px solid var(--gold); margin: 15px 0; }
.contact-info { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; opacity: 0.9; }
.resume-body { display: grid; grid-template-columns: 2.5fr 1fr; }
.resume-main { padding: 40px; }
.resume-sidebar { background: #fafafa; padding: 40px; border-left: 1px solid var(--border); }
.resume-section-title { font-family: var(--font-mono); color: var(--gold); font-size: 0.95rem; border-bottom: 1px solid var(--border); padding-bottom: 5px; margin-bottom: 15px; }
.resume-section { margin-bottom: 30px; }
.resume-text { font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.job-block { margin-bottom: 20px; }
.job-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.job-company { font-weight: bold; font-size: 1rem; }
.job-dates { font-size: 0.85rem; color: var(--muted); }
.job-title { font-style: italic; color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; border-left: 3px solid var(--gold); padding-left: 8px;}
.job-bullets { margin-left: 15px; }
.job-bullets li { font-size: 0.9rem; margin-bottom: 6px; list-style-type: none; position: relative;}
.job-bullets li::before { content: "▸"; position: absolute; left: -15px; color: var(--gold); }
.res-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.res-skill-tag { background: var(--ink); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; }
.resume-list, .resume-links { list-style: none; font-size: 0.85rem; }
.resume-list li { margin-bottom: 8px; }
/* ATS Panel */
.download-panel { display: flex; flex-direction: column; gap: 15px; }
.ats-card { background: var(--ink); color: white; padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 10px; }
.ats-gauge {
    width: 120px; height: 120px; border-radius: 50%;
    margin: 0 auto 20px;
    background: conic-gradient(var(--sage) 0% 95%, #333 95% 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ats-gauge::before {
    content: ""; position: absolute; inset: 10px; background: var(--ink); border-radius: 50%;
}
.ats-gauge span { position: relative; font-family: var(--font-heading); font-size: 2.5rem; color: white; }
.ats-label { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; margin-bottom: 15px; }
.ats-checklist { list-style: none; text-align: left; font-size: 0.9rem; color: #ccc; }
.ats-checklist li { margin-bottom: 8px; }
.pro-tip { background: var(--paper); padding: 15px; border-radius: 8px; font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--gold); }
/* Interview Intel */
.interview-intel { padding: 100px 10%; background: var(--paper); }
.interview-intel .section-header { text-align: left;}
.interview-intel .section-title { font-family: var(--font-title); font-size: 2.5rem; }
.intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.intel-card { background: white; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.intel-card-header { padding: 15px 20px; font-weight: bold; font-family: var(--font-mono); font-size: 0.95rem; }
.header-gold { background: var(--gold) !important; color: var(--ink); }
.header-sage { background: var(--sage) !important; color: white; }
.header-rust { background: var(--rust) !important; color: white; }
.intel-list { padding: 20px; list-style: none; }
.intel-list li { margin-bottom: 12px; font-size: 0.9rem; position: relative; padding-left: 20px; }
.intel-list li::before { content: "•"; position: absolute; left: 0; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.salary-range { background: var(--ink); color: white; padding: 20px; font-family: var(--font-heading); font-size: 2rem; text-align: center; }
.questions-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.questions-title { font-family: var(--font-title); margin-bottom: 24px; font-size: 1.5rem; }
.questions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.question-box { background: var(--paper); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.q-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; display: block; }
.q-text { font-weight: 600; font-size: 0.95rem; margin-bottom: 15px; }
.q-tag { font-size: 0.75rem; font-family: var(--font-mono); padding: 3px 8px; border-radius: 4px; display: inline-block; }
.q-type-Technical { background: rgba(201, 76, 46, 0.1); color: var(--rust); }
.q-type-Behavioural { background: rgba(74, 103, 65, 0.1); color: var(--sage); }
.q-type-Situational { background: rgba(201, 168, 76, 0.1); color: var(--gold); }
/* Footer */
.footer { background: var(--ink); color: white; padding: 80px 10% 40px 10%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-desc { color: #aaa; font-size: 0.9rem; margin-top: 15px; }
.footer-col h4 { font-family: var(--font-mono); margin-bottom: 20px; color: var(--gold); }
.footer-col a { display: block; color: #aaa; text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.85rem; color: #888; }
.powered-by { font-family: var(--font-mono); }
/* Loading Overlay */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(245, 240, 232, 0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.loading-content { text-align: center; max-width: 400px; width: 100%; }
.spinner { width: 50px; height: 50px; border: 4px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { text-align: left; }
.load-step { font-family: var(--font-mono); font-size: 0.95rem; margin-bottom: 15px; opacity: 0; transform: translateY(10px); transition: all 0.5s ease; display:flex; gap: 10px;}
.load-step.active { opacity: 1; transform: translateY(0); color: var(--ink); font-weight: bold; }
.load-step.done { opacity: 0.5; }
/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; border-left: 4px solid #333; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 15px 20px; border-radius: 4px; font-family: var(--font-body); font-size: 0.9rem; animation: slideInRight 0.3s ease; display: flex; align-items: center; justify-content: space-between;}
.toast-error { border-left-color: var(--rust); }
.toast-success { border-left-color: var(--sage); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* Responsive */
@media (max-width: 1024px) {
    .builder-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-subtext { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .stats-row { justify-content: center; }
    .result-grid { grid-template-columns: 1fr; }
    .resume-body { grid-template-columns: 1fr; }
    .resume-sidebar { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
    .steps-grid, .intel-grid, .questions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row.two-col { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .navbar { padding: 15px 20px; }
}
