:root {
    --primary: #FF0000;
    --primary-hover: #CC0000;
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --input-bg: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-page); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; margin-left: 32px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero-section { position: relative; text-align: center; padding: 80px 0 60px; overflow: hidden; }
.hero-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,0,0,0.08) 0%, rgba(255,255,255,0) 70%); z-index: -1; }
.badge { background: rgba(255, 0, 0, 0.1); color: var(--primary); padding: 6px 16px; border-radius: 30px; font-size: 0.875rem; font-weight: 600; display: inline-block; margin-bottom: 24px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; color: #000; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

/* Forms */
.tool-section { padding-bottom: 80px; }
.generator-card { background: var(--bg-surface); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-icon-wrapper, .select-wrapper { position: relative; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px; background-color: var(--input-bg); border: 2px solid transparent; border-radius: var(--radius-md); font-size: 1rem; font-family: var(--font-body); transition: all 0.3s ease; color: var(--text-main); outline: none; }
.form-group input { padding-left: 48px; }
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background-color: var(--bg-surface); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1); }
.btn-primary { width: 100%; background: var(--primary); color: white; border: none; padding: 18px; font-size: 1.125rem; font-weight: 600; font-family: var(--font-heading); border-radius: var(--radius-md); cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: background 0.3s, transform 0.1s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }

/* Results */
.results-container { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 30px; }
.title-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-page); padding: 16px 20px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; font-weight: 500; font-size: 1.05rem; transition: all 0.2s ease; cursor: pointer; }
.title-item:hover { border-color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); transform: translateX(4px); }
.copy-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.2s; }
.copy-btn:hover { background: #f1f5f9; color: var(--primary); }

/* AdSense */
.ad-container { background: #f1f5f9; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; position: relative; margin: 40px auto; width: 100%; }
.ad-label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 8px; font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; }
.top-ad { min-height: 90px; max-width: 728px; }
.middle-ad { min-height: 250px; max-width: 970px; }

/* Content Sections */
.bg-white { background: var(--bg-surface); }
.content-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.25rem; margin-bottom: 12px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { background: var(--bg-page); padding: 32px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.step-number { width: 48px; height: 48px; background: var(--primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 24px; }
.article-content h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin: 32px 0 16px; }
.article-content p { margin-bottom: 16px; font-size: 1.125rem; color: #334155; }
.faq-accordion { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; }
.faq-item summary { padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); }

/* Digital Raasta Promo */
.promo-section { position: relative; padding: 100px 0; background-color: #0f172a; color: #ffffff; overflow: hidden; text-align: center; }
.promo-background { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(15, 23, 42, 0) 70%); z-index: 0; pointer-events: none; }
.relative-z { position: relative; z-index: 1; }
.badge-light { background: rgba(255, 255, 255, 0.1); color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.2); }
.promo-content h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -0.5px; }
.promo-subtitle { font-size: 1.15rem; color: #94a3b8; max-width: 750px; margin: 0 auto 50px; line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 50px; }
.service-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 30px 24px; border-radius: var(--radius-md); text-align: center; backdrop-filter: blur(10px); transition: transform 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(229, 9, 20, 0.5); background: rgba(255, 255, 255, 0.05); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; color: #ffffff; }
.service-card p { font-size: 0.95rem; color: #94a3b8; line-height: 1.5; }
.promo-cta-wrapper { margin-top: 40px; }
.btn-large { display: inline-flex; padding: 20px 40px; font-size: 1.25rem; border-radius: 50px; text-decoration: none; max-width: fit-content; margin: 0 auto; }
.btn-glow { box-shadow: 0 0 25px rgba(229, 9, 20, 0.4); }
.btn-glow:hover { box-shadow: 0 0 35px rgba(229, 9, 20, 0.6); }
.cta-microcopy { margin-top: 16px; font-size: 0.9rem; color: #64748b; }

/* Footer */
.main-footer { background: #0f172a; color: #f8fafc; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; font-size: 0.95rem; max-width: 300px; }
.footer-links-col h4 { font-family: var(--font-heading); margin-bottom: 24px; font-size: 1.1rem; }
.footer-links-col ul { list-style: none; }
.footer-links-col li { margin-bottom: 12px; }
.footer-links-col a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-links-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 32px; display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 0.9rem; }
.powered-by strong { color: white; }

/* Utilities / Loader / Toast */
#loader { text-align: center; margin-top: 30px; }
.spinner { width: 40px; height: 40px; border: 4px solid #f1f5f9; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #10b981; color: white; padding: 16px 24px; border-radius: 8px; font-weight: 500; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 1000; }
.toast.show { transform: translateY(0); opacity: 1; }
.success-badge { background-color: #10b981; color: #ffffff; padding: 16px; border-radius: 8px; margin-bottom: 24px; font-weight: 500; text-align: center; }

/* Mobile */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .steps-grid, .footer-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; gap: 32px; }
    .footer-brand p { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .nav-links { display: none; }
    .generator-card { padding: 24px; }
    .promo-content h2 { font-size: 2rem; }
    .btn-large { font-size: 1.1rem; padding: 16px 24px; width: 100%; justify-content: center; }
}