/* ============================================
   Rigora Scientific Editing — Premium Academic Theme
   ============================================ */

:root {
    --primary: #1B3A4B;
    --primary-light: #2C5F7C;
    --primary-dark: #0F2630;
    --accent: #C17817;
    --accent-hover: #A8660F;
    --bg: #FFFFFF;
    --bg-subtle: #F8F9FB;
    --bg-card: #FFFFFF;
    --border: #E4E7EC;
    --border-light: #EEF1F6;
    --text: #1A1D23;
    --text-secondary: #555B66;
    --text-muted: #8C939F;
    --success: #2B7A4B;
    --danger: #B83333;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 68px;
    --container: 1060px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
    font-family: inherit; font-size: 15px;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 14px; width: 100%; background: var(--bg); color: var(--text);
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(27,58,75,0.08);
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23555B66' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
h4 { font-size: 1.05rem; margin-bottom: 6px; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-subtle { background: var(--bg-subtle); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-top: 8px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-light);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.centered-block { text-align: center; max-width: 640px; margin: 0 auto; }
.centered-block p { margin-bottom: 12px; color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 15px; border-radius: var(--radius);
    padding: 10px 22px; transition: all 0.2s; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; line-height: 1.4;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============ NAVIGATION ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border-light);
    height: var(--nav-height); transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-container {
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: 100%; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 6px; background: var(--primary);
    color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.logo-text { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
    display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); transition: color 0.2s; text-decoration: none;
}
.nav-link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 2px 0; }
.mobile-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 999; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-inner { padding: 24px; }
.mobile-link {
    display: block; padding: 14px 0; font-size: 16px; font-weight: 600;
    color: var(--text); border-bottom: 1px solid var(--border-light); text-decoration: none;
}
.mobile-cta { margin-top: 24px; }

/* ============ HERO ============ */
.hero {
    position: relative; padding: calc(var(--nav-height) + 72px) 0 88px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #F2F5F8 0%, #FAFBFC 40%, #FFF8F0 100%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 660px; }
.hero-eyebrow {
    font-size: 13px; font-weight: 600; color: var(--primary-light);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.hero-title { font-size: 2.8rem; margin-bottom: 20px; color: var(--primary-dark); line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.hero-trust-item svg { color: var(--success); flex-shrink: 0; }

/* ============ DELIVERABLES ============ */
.deliverables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deliverable-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; transition: box-shadow 0.2s;
}
.deliverable-card:hover { box-shadow: var(--shadow-md); }
.deliverable-number {
    font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
    color: var(--border); margin-bottom: 12px; line-height: 1;
}
.deliverable-card h3 { font-size: 1.1rem; }
.deliverable-card p { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }

/* ============ SCOPE COLUMNS ============ */
.scope-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.scope-col h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.scope-yes h4 { color: var(--success); }
.scope-no h4 { color: var(--danger); }
.scope-col ul { list-style: none; padding: 0; }
.scope-col li {
    position: relative; padding: 5px 0 5px 20px; font-size: 14px; color: var(--text-secondary);
}
.scope-yes li::before { content: '+'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.scope-no li::before { content: '\2013'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* ============ EDIT DEMO ============ */
.edit-demo {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.edit-demo-header {
    display: flex; align-items: center; gap: 6px; padding: 12px 16px;
    background: var(--bg-subtle); border-bottom: 1px solid var(--border);
}
.edit-demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.edit-demo-dot.red { background: #ef4444; }
.edit-demo-dot.yellow { background: #f59e0b; }
.edit-demo-dot.green { background: #22c55e; }
.edit-demo-title { margin-left: 8px; font-size: 13px; color: var(--text-muted); }
.edit-demo-body { padding: 20px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8; }
.edit-line { padding: 2px 0; }
.edit-line.deleted { color: var(--danger); text-decoration: line-through; opacity: 0.7; }
.edit-line.added { color: var(--success); background: rgba(43,122,75,0.06); padding: 2px 4px; border-radius: 3px; }
.edit-marker { font-weight: 700; margin-right: 6px; }
.edit-comment {
    margin-top: 12px; padding: 10px 14px; background: #FFF9F0;
    border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-sans); font-size: 13px; color: var(--text-secondary);
}

/* ============ REPORT MOCKUP ============ */
.report-mockup { display: flex; justify-content: center; padding: 20px; }
.report-page {
    width: 220px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-md); position: relative;
}
.report-header-bar { height: 8px; background: var(--primary); border-radius: 4px; margin-bottom: 16px; }
.report-badge {
    position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700;
    color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
}
.report-line { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 8px; }
.report-line.w100 { width: 100%; } .report-line.w90 { width: 90%; } .report-line.w85 { width: 85%; }
.report-line.w80 { width: 80%; } .report-line.w70 { width: 70%; } .report-line.w60 { width: 60%; }
.report-line.w50 { width: 50%; }
.report-spacer { height: 12px; }

.download-buttons { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ============ CREDENTIALS ============ */
.credentials-grid { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.credential-link {
    display: flex; align-items: center; gap: 8px; padding: 12px 24px;
    border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px;
    font-weight: 500; color: var(--primary); transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.credential-link:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; position: relative;
}
.pricing-featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-md); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.pricing-header { margin-bottom: 20px; }
.pricing-header h3 { font-size: 1.3rem; }
.pricing-desc { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.pricing-price { margin-bottom: 24px; display: flex; align-items: baseline; gap: 6px; }
.price-currency { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.price-amount { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--text); }
.custom-price { font-size: 1.6rem; }
.pricing-features { margin-bottom: 24px; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
    font-size: 14px; color: var(--text-secondary);
}
.pricing-features svg { flex-shrink: 0; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--text);
    text-align: left; gap: 16px;
}
.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 20px; color: var(--text-secondary); line-height: 1.7; }

/* ============ ETHICS ============ */
.ethics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ethics-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.ethics-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.ethics-card p { color: var(--text-secondary); font-size: 15px; }

/* ============ CONTACT / REQUEST FORM ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-text h2 { margin-bottom: 16px; }
.contact-text p { color: var(--text-secondary); margin-bottom: 24px; }
.process-steps { display: flex; flex-direction: column; gap: 12px; }
.process-step-mini { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.step-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg-subtle);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 4px; }

/* ============ FOOTER ============ */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-mark { background: rgba(255,255,255,0.15); }
.footer-logo-text { color: #fff; }
.footer-desc { font-size: 14px; margin-top: 12px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-links h4 {
    font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: #fff;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 13px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); z-index: 900;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); }

/* ============ ANIMATIONS ============ */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .two-col.reverse { direction: ltr; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 56px 0; }
    .nav-menu, .nav-actions { display: none; }
    .mobile-toggle { display: flex; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .ethics-grid { grid-template-columns: 1fr; }
    .scope-columns { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .download-buttons { flex-direction: column; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.7rem; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 44px 0; }
}
