/* getjob4u — design system */

:root {
  --bg: #0b0f1a;
  --bg-soft: #111726;
  --bg-card: #161d2f;
  --bg-hover: #1c2440;
  --border: #232b44;
  --text: #e6e9f2;
  --text-muted: #97a0b8;
  --text-dim: #6b7591;
  --accent: #7c5cff;
  --accent-2: #00d4b4;
  --accent-warn: #ffaa3c;
  --accent-danger: #ff5a6b;
  --grad: linear-gradient(135deg, #7c5cff 0%, #00d4b4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 212, 180, 0.08));
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.18), 0 8px 30px rgba(124, 92, 255, 0.15);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(at 20% 0%, rgba(124, 92, 255, 0.10), transparent 50%),
    radial-gradient(at 80% 10%, rgba(0, 212, 180, 0.08), transparent 50%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--accent-2); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 0.8rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #0b0f1a;
  border-radius: 8px;
  font-weight: 800; font-size: 0.8rem;
}
.primary-nav { display: flex; gap: 0.4rem; align-items: center; }
.primary-nav a {
  padding: 0.5rem 0.9rem; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.primary-nav a:hover { background: var(--bg-hover); color: var(--text); }
.nav-cta {
  background: var(--grad);
  color: #0b0f1a !important;
  font-weight: 600 !important;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; position: absolute; top: 100%; right: 1rem; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; min-width: 220px; box-shadow: var(--shadow-md); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 0.7rem 1rem; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #0b0f1a; box-shadow: 0 4px 18px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 6px 22px rgba(124, 92, 255, 0.5); color: #0b0f1a; }
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ----- Hero ----- */
.hero { padding: 4rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero-text .pill { margin-bottom: 1.3rem; }
.hero-text h1 { margin-bottom: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.6rem; }
/* Social share strip under the hero CTAs */
.share-row { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0; flex-wrap: wrap; }
.share-label { font-size: 0.82rem; color: var(--text-muted); margin-right: 0.25rem; }
.share-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-weight: 700; font-size: 0.95rem;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
}
.share-btn:hover { transform: translateY(-2px); color: var(--text); }
.share-btn.share-twitter:hover  { background: #15171c; border-color: #2a2c33; }
.share-btn.share-linkedin       { color: #0a66c2; font-family: var(--mono); font-style: italic; font-size: 1rem; }
.share-btn.share-linkedin:hover { background: rgba(10,102,194,0.12); border-color: rgba(10,102,194,0.4); }
.share-btn.share-whatsapp       { color: #25d366; }
.share-btn.share-whatsapp:hover { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.4); }
.share-btn.share-copy:hover     { background: var(--bg-hover); border-color: rgba(124,92,255,0.4); }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.hero-meta span { font-size: 0.82rem; color: var(--text-muted); }

.hero-card { display: grid; place-items: center; }
.daily-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-md); max-width: 440px; width: 100%; position: relative; overflow: hidden;
}
.daily-card::before {
  content: ''; position: absolute; inset: -2px;
  background: var(--grad); z-index: -1; border-radius: var(--radius);
  filter: blur(40px); opacity: 0.18;
}
.card-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); font-weight: 600; }
.daily-card h3 { font-size: 1.25rem; margin: 0.7rem 0 1.2rem; line-height: 1.4; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Sections ----- */
.features { padding: 4rem 0; }
.features .section-head { margin-bottom: 2.2rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
  color: var(--text); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; display: block;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.4); box-shadow: var(--shadow-glow); color: var(--text); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.cta-band { padding: 3rem 0 5rem; }
.cta-band-inner {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background-image: var(--grad-soft);
}
.cta-band-inner h2 { margin-bottom: 0.3rem; }
.cta-band-inner p { color: var(--text-muted); margin: 0; }

/* ----- Page hero (sub pages) ----- */
.page-hero { padding: 3rem 0 2rem; }
.page-hero .pill { margin-bottom: 1rem; }

/* ----- Cards / forms ----- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }

/* ----- ATS Scanner ----- */
.ats-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; padding-bottom: 4rem; }
.ats-form h3 { margin-top: 1.4rem; margin-bottom: 0.6rem; font-size: 1.05rem; }
.ats-form h3:first-of-type { margin-top: 0; }
.ats-form select { width: 100%; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem 1rem;
  background: var(--bg-soft); cursor: pointer; transition: background 0.15s, border-color 0.15s;
  text-align: center; min-height: 180px;
}
.dropzone:hover, .dropzone.dragover { background: var(--bg-hover); border-color: var(--accent); }
.dz-icon { font-size: 2rem; }
.dz-title { font-weight: 600; margin: 0.5rem 0 0.2rem; }
.dz-sub { color: var(--text-muted); font-size: 0.85rem; }
.dz-filename { display: block; margin-top: 0.8rem; color: var(--accent-2); font-weight: 500; }

.placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; }
.placeholder-icon { font-size: 3rem; margin-bottom: 1rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.checklist li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--text-muted); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* score circle */
.score-circle {
  width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0%, var(--bg-soft) 0%);
  margin: 0 auto 1.2rem;
  position: relative;
}
.score-circle::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-card);
}
.score-num { font-size: 2.6rem; font-weight: 800; position: relative; z-index: 1; line-height: 1; }
.score-label { font-size: 0.85rem; color: var(--text-muted); position: relative; z-index: 1; margin-top: 0.2rem; }

.breakdown { display: grid; gap: 0.7rem; margin-bottom: 1.4rem; }
.bd-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; background: var(--bg-soft); border-radius: var(--radius-sm); }
.bd-name { font-weight: 500; }
.bd-meta { color: var(--text-muted); font-size: 0.85rem; }
.bd-bar { grid-column: 1 / -1; height: 6px; background: var(--bg-hover); border-radius: 4px; overflow: hidden; margin-top: 0.4rem; }
.bd-bar-fill { height: 100%; background: var(--grad); border-radius: 4px; transition: width 0.5s; }

.suggestions { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.suggestions li { margin-bottom: 0.5rem; }

.keyword-details summary { cursor: pointer; padding: 0.5rem 0; font-weight: 600; }
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 0.8rem; }
.kw-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kw-list span {
  background: rgba(0, 212, 180, 0.12);
  color: var(--accent-2);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid rgba(0, 212, 180, 0.25);
}
.kw-list.missing span {
  background: rgba(255, 90, 107, 0.10);
  color: var(--accent-danger);
  border-color: rgba(255, 90, 107, 0.25);
}

@media (max-width: 900px) { .ats-grid { grid-template-columns: 1fr; } }

/* ----- Inputs ----- */
input[type='text'], input[type='email'], select, textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; color: var(--text); font-family: var(--font); font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-hover); }
label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.9rem; }
label > input, label > select, label > textarea { margin-top: 0.35rem; }
textarea { resize: vertical; min-height: 100px; }

/* ----- Tabs ----- */
.tab-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.6rem; }
.tab {
  padding: 0.6rem 1rem; border: none; background: transparent; color: var(--text-muted); font-weight: 500;
  cursor: pointer; border-radius: 8px; font-size: 0.9rem; transition: background 0.15s, color 0.15s; font-family: var(--font);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #0b0f1a; }
.tip-panel { display: none; }
.tip-panel.active { display: block; }

.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.tip-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.tip-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--accent-2); }
.tip-card p { color: var(--text); font-size: 0.95rem; margin: 0; }
.tip-card.highlight { background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.3); }
.tip-card ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.tip-card li { margin-bottom: 0.4rem; }

@media (max-width: 720px) { .tip-grid { grid-template-columns: 1fr; } }

/* ----- Resources ----- */
.resource-section { margin-bottom: 3rem; }
.channel-grid, .course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.channel-card, .course-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem;
  color: var(--text); transition: transform 0.15s, border-color 0.15s; display: flex; flex-direction: column;
}
.channel-card:hover, .course-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.4); color: var(--text); }
.channel-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 0, 0, 0.12); color: #ff5a5a; display: grid; place-items: center; margin-bottom: 0.6rem; font-size: 1rem; }
.channel-card h3, .course-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.channel-card p, .course-card p { color: var(--text-muted); font-size: 0.88rem; flex: 1; margin: 0 0 0.7rem; }
.link-arrow { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; }

@media (max-width: 860px) { .channel-grid, .course-grid { grid-template-columns: 1fr; } }

/* ----- Email generator ----- */
.email-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem; padding-bottom: 4rem; }
.medium-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.4rem; background: var(--bg-soft); border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.med-btn { padding: 0.6rem; background: transparent; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; border-radius: 6px; font-family: var(--font); }
.med-btn.active { background: var(--grad); color: #0b0f1a; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 1rem 0; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

.msg-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; min-height: 240px; font-family: var(--mono); font-size: 0.88rem; white-space: pre-wrap; line-height: 1.55; }
.msg-box .placeholder { font-family: var(--font); text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.msg-subject { font-family: var(--font); font-size: 0.95rem; font-weight: 600; padding-bottom: 0.6rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--border); white-space: normal; }
.output-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

@media (max-width: 860px) {
  .email-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; }
}

/* ----- Resume preview ----- */
.resume-meta { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1rem; }
.resume-content { background: #fff; color: #1a1f2e; border-radius: var(--radius); padding: 2rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; max-height: 600px; overflow-y: auto; box-shadow: var(--shadow-md); }
.resume-tips { margin-top: 2rem; }

/* ----- Roadmap ----- */
.roadmap-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.roadmap-list { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: stage; }
.roadmap-stage { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.roadmap-stage h3 { font-size: 1.05rem; color: var(--accent-2); margin-bottom: 0.5rem; }
.roadmap-stage ul { padding-left: 1.2rem; margin: 0.4rem 0 0; }
.roadmap-stage li { margin-bottom: 0.3rem; color: var(--text); }

/* ----- Feedback ----- */
.feedback-form { max-width: 760px; margin: 0 auto 4rem; }
.rating-field { border: none; padding: 0; margin: 0 0 1rem; }
.rating-field legend { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.rating-stars { display: flex; gap: 0.3rem; }
.star { background: none; border: none; font-size: 2rem; color: var(--bg-hover); cursor: pointer; transition: color 0.12s, transform 0.12s; padding: 0; line-height: 1; }
.star:hover, .star.active { color: var(--accent-warn); transform: scale(1.1); }
.form-status { margin-top: 1rem; padding: 0.8rem; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-status.success { display: block; background: rgba(0, 212, 180, 0.12); color: var(--accent-2); border: 1px solid rgba(0, 212, 180, 0.3); }
.form-status.error { display: block; background: rgba(255, 90, 107, 0.10); color: var(--accent-danger); border: 1px solid rgba(255, 90, 107, 0.3); }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 4rem; background: rgba(11, 15, 26, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.92rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.footer-grid a { display: block; color: var(--text-muted); padding: 0.25rem 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.88rem; }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ----- ATS mode toggle ----- */
.ats-mode-toggle { margin-bottom: 1.4rem; }
.ats-mode-panel textarea { width: 100%; min-height: 160px; font-family: var(--mono); font-size: 0.85rem; }

/* ----- Blogs page ----- */
.blogs-page { padding-bottom: 4rem; }
.blog-category { margin-bottom: 3rem; }
.blog-category h2 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.blog-cat-icon { font-size: 1.6rem; line-height: 1; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.newsletter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; color: var(--text); display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.4); box-shadow: var(--shadow-glow); color: var(--text); }
.blog-source {
  display: inline-block;
  font-size: 0.72rem; color: var(--accent-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.blog-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.blog-author { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 0.6rem; }
.blog-desc { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin: 0 0 0.9rem; }
.newsletter-card .blog-source { display: none; }

@media (max-width: 900px) {
  .blog-grid, .newsletter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid, .newsletter-grid { grid-template-columns: 1fr; }
}

/* ----- Admin ----- */
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-logout { margin: 0; }
.admin-login-form { max-width: 460px; margin: 0 auto 4rem; }
.admin-page { padding-bottom: 4rem; }
.admin-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem;
  margin-bottom: 2.2rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card strong { font-size: 1.5rem; font-weight: 700; }

.admin-section { margin-bottom: 2.5rem; }
.admin-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.admin-section-head h2 { font-size: 1.3rem; margin: 0; }

.table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--bg-soft); color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-sub td { background: var(--bg-soft); font-size: 0.82rem; color: var(--text-muted); border-top: 0; }

.tag {
  display: inline-block; padding: 0.18rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(0, 212, 180, 0.12); color: var(--accent-2);
  border: 1px solid rgba(0, 212, 180, 0.25);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-jd { background: rgba(124, 92, 255, 0.14); color: var(--accent); border-color: rgba(124, 92, 255, 0.3); }

.feedback-list { display: grid; gap: 1rem; }
.feedback-item { padding: 1.2rem 1.4rem; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.fb-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fb-rating { color: var(--accent-warn); letter-spacing: 0.04em; font-size: 0.95rem; }
.fb-msg { margin: 0; color: var(--text); }

@media (max-width: 900px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   ATS Demo Animation (home hero)
   ============================================================ */
.ats-demo-stage.hero-demo {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem; box-shadow: var(--shadow-md);
  background-image: var(--grad-soft);
  max-width: 460px; width: 100%; margin: 0 auto;
  position: relative;
  transition: box-shadow 0.4s;
}
.ats-demo-stage.hero-demo.is-scanning {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,212,180,0.35), 0 0 40px rgba(0,212,180,0.25);
  animation: stageBreath 2.4s ease-in-out infinite;
}
.ats-demo-stage.hero-demo.is-done {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124,92,255,0.5), 0 0 50px rgba(124,92,255,0.35);
}
@keyframes stageBreath {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,212,180,0.30), 0 0 28px rgba(0,212,180,0.20); }
  50%      { box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,212,180,0.55), 0 0 48px rgba(0,212,180,0.40); }
}

.hero-demo-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.hero-demo-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; color: var(--accent-2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-demo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0,212,180,0.18);
  animation: heroDot 1.4s ease-in-out infinite;
}
@keyframes heroDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Live score chip (top-right) */
.live-score-chip {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  transition: border-color 0.3s, transform 0.25s, background 0.3s;
}
.live-score-chip.is-pop {
  animation: scorePop 0.4s ease;
  border-color: rgba(0,212,180,0.6);
}
@keyframes scorePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.live-score-label {
  font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.live-score-num {
  font-size: 1rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-demo-steps {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem;
}
.hero-demo-steps .demo-step {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
  opacity: 0.55; transition: opacity 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.hero-demo-steps .demo-step.is-active {
  opacity: 1; background: var(--bg-hover); border-color: rgba(124,92,255,0.5); color: var(--text);
}
.hero-demo-steps .demo-step.is-done { opacity: 1; color: var(--text); }
.hero-demo-steps .demo-step.is-done .demo-step-num { background: var(--accent-2); color: #0b0f1a; }
.hero-demo-steps .demo-step-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-hover); color: var(--text-muted);
  display: inline-grid; place-items: center;
  font-size: 0.68rem; font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.hero-demo-steps .demo-step.is-active .demo-step-num { background: var(--grad); color: #0b0f1a; }

/* Question-of-the-day strip (below hero) */
.daily-strip { padding: 0 0 1.6rem; }
.daily-strip-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.4rem; box-shadow: var(--shadow-sm);
}
.daily-strip-inner .card-label { white-space: nowrap; }
.daily-strip-inner h3 { font-size: 1rem; margin: 0; flex: 1; min-width: 220px; color: var(--text); font-weight: 500; line-height: 1.4; }
.daily-strip-inner .btn { margin-left: auto; }
@media (max-width: 640px) {
  .daily-strip-inner .btn { margin-left: 0; }
}

.resume-mock {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem 2rem;
  min-height: 340px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.resume-header-bar { height: 14px; width: 55%; background: #1a1f2e; border-radius: 3px; margin-bottom: 0.6rem; }
.resume-subheader-bar { height: 8px; width: 38%; background: #6b7591; border-radius: 3px; margin-bottom: 1.4rem; }
.resume-block { margin-bottom: 1rem; }
.resume-block .rb-line {
  height: 7px; background: #e3e6ef; border-radius: 3px; margin-bottom: 0.5rem;
  position: relative;
  transition: background 0.4s, box-shadow 0.4s;
}
/* While scanning, bars look "needs work" (orange-ish) */
.resume-mock.is-scanning .rb-line { background: #fbd9be; }
/* When a chip lands and matches this bar, flash green and stay green */
.rb-line.is-matched {
  background: #b6f0e1 !important;
  box-shadow: 0 0 0 1px rgba(0,212,180,0.45);
  animation: barFlash 0.6s ease;
}
@keyframes barFlash {
  0%   { background: #ffe8a3; box-shadow: 0 0 0 0 rgba(0,212,180,0); }
  50%  { background: #4be3c1; box-shadow: 0 0 14px rgba(0,212,180,0.7); }
  100% { background: #b6f0e1; box-shadow: 0 0 0 1px rgba(0,212,180,0.45); }
}
.rb-line.w-95 { width: 95%; }
.rb-line.w-90 { width: 90%; }
.rb-line.w-85 { width: 85%; }
.rb-line.w-80 { width: 80%; }
.rb-line.w-75 { width: 75%; }
.rb-line.w-70 { width: 70%; }
.rb-line.w-65 { width: 65%; }
.rb-line.w-60 { width: 60%; }

/* Scanline + scanner head */
.resume-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,212,180,0) 0%,
    rgba(0,212,180,0.30) 45%,
    rgba(124,92,255,0.30) 55%,
    rgba(124,92,255,0) 100%);
  box-shadow: 0 0 18px rgba(0, 212, 180, 0.55);
  transform: translateY(-100%);
  opacity: 0;
}
.resume-scanline .scan-head {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,212,180,0.7) 20%,
    #00ffd4 50%,
    rgba(124,92,255,0.7) 80%,
    transparent 100%);
  box-shadow: 0 0 12px rgba(0,255,212,0.9), 0 0 22px rgba(124,92,255,0.7);
}
.resume-mock.is-scanning .resume-scanline { animation: scanSweep 2.2s ease-in-out infinite; opacity: 1; }
@keyframes scanSweep {
  0%   { transform: translateY(-15%); }
  100% { transform: translateY(380%); }
}

/* Keyword chips — fly in from edges with a comet trail */
.kw-chip {
  position: absolute;
  padding: 0.32rem 0.72rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,92,255,0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  --tx: 0px;   /* per-chip entrance offset, set per-class below */
  --ty: 0px;
}
.kw-chip::before {
  content: ''; position: absolute; inset: 50% auto auto 50%;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,180,0.9));
  transform: translate(-100%, -50%);
  border-radius: 2px;
  opacity: 0;
  filter: blur(0.6px);
}
.kw-chip-1 { top: 18%;  left: 8%;   --tx: -60px; --ty: -10px; }
.kw-chip-2 { top: 30%;  right: 6%;  --tx:  60px; --ty: -10px; }
.kw-chip-3 { top: 50%;  left: 6%;   --tx: -70px; --ty:   0px; }
.kw-chip-4 { top: 62%;  right: 8%;  --tx:  70px; --ty:   0px; }
.kw-chip-5 { top: 76%;  left: 18%;  --tx: -50px; --ty:  10px; }
.kw-chip-6 { top: 84%;  right: 16%; --tx:  50px; --ty:  10px; }

.kw-chip.is-visible {
  animation: kwFly 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.kw-chip.is-visible::before {
  animation: kwTrail 0.7s ease-out forwards;
}
@keyframes kwFly {
  0%   { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.7); filter: blur(2px); }
  55%  { opacity: 1; transform: translate(0, -4px) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}
@keyframes kwTrail {
  0%   { opacity: 0; width: 0;   }
  40%  { opacity: 1; width: 70px; }
  100% { opacity: 0; width: 0;   }
}

/* Status ticker below the resume */
.hero-demo-status {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.55rem 0.8rem;
  background: rgba(11, 15, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  min-height: 38px;
}
.hd-status-icon {
  color: var(--accent-2);
  font-size: 0.65rem;
  animation: heroDot 1.4s ease-in-out infinite;
}
.hero-demo-status.is-success .hd-status-icon { color: var(--accent-2); animation: none; }
.hero-demo-status.is-flash { animation: statusFlash 0.45s ease; }
@keyframes statusFlash {
  0%   { background: rgba(11, 15, 26, 0.55); }
  40%  { background: rgba(0, 212, 180, 0.18); }
  100% { background: rgba(11, 15, 26, 0.55); }
}
.hd-status-text .pt { color: var(--accent-2); font-weight: 700; }

/* Sparkle / confetti burst on final reveal */
.sparkle-burst {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden;
}
.sparkle-burst .sparkle {
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(0,212,180,0.9);
  opacity: 0;
}
.sparkle-burst.is-bursting .sparkle {
  animation: sparkleFly 0.9s cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
}
@keyframes sparkleFly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, 0px))) scale(0.2); }
}

/* Final score badge */
.ats-score-badge {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.ats-score-badge.is-visible { opacity: 1; }

.score-ring {
  width: 170px; height: 170px; border-radius: 50%;
  background: conic-gradient(#00d4b4 0%, #7c5cff 98%, #e3e6ef 0%);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(124,92,255,0.25), 0 12px 30px rgba(124,92,255,0.35);
}
.score-ring::before {
  content: ''; position: absolute; inset: 12px; background: #fff; border-radius: 50%;
}
.score-ring-num {
  position: relative; z-index: 1; font-size: 3rem; font-weight: 800; color: #0b0f1a; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-ring-label {
  position: relative; z-index: 1; font-size: 0.72rem; color: #4a5375;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 0.2rem;
}
.score-ring-tag {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #0b0f1a; font-weight: 800; font-size: 0.82rem;
  padding: 0.4rem 1rem; border-radius: 999px; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(124,92,255,0.45);
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.score-ring-tag .boost-arrow { font-size: 0.7rem; }

@media (max-width: 860px) {
  .ats-demo-stage.hero-demo { padding: 1rem 1rem 1.2rem; }
  .resume-mock { min-height: 300px; }
  .score-ring { width: 140px; height: 140px; }
  .score-ring-num { font-size: 2.4rem; }
}

/* ============================================================
   Python Coding Questions page
   ============================================================ */
.pyq-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.pyq-stats div { display: flex; flex-direction: column; }
.pyq-stats strong { font-size: 1.5rem; font-weight: 800; }
.pyq-stats span { font-size: 0.82rem; color: var(--text-muted); }

.pyq-page { padding-bottom: 4rem; }

/* Filter bar */
.pyq-filters {
  display: grid; gap: 1rem; margin-bottom: 1.6rem;
}
.pyq-filter-group { display: flex; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; }
.pyq-filter-label {
  flex: 0 0 auto; padding: 0.3rem 0;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  min-width: 70px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip {
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}
.filter-chip:hover { background: var(--bg-hover); color: var(--text); transform: translateY(-1px); }
.filter-chip.is-active { background: var(--grad); color: #0b0f1a; border-color: transparent; }

.pyq-search-wrap { display: flex; align-items: center; gap: 0.8rem; }
.pyq-search { flex: 1; max-width: 360px; }
.pyq-count { font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono); }

/* Question list */
.pyq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.pyq-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pyq-card:hover { border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow-glow); }

.pyq-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.pyq-num {
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim);
  background: var(--bg-soft); padding: 0.2rem 0.5rem; border-radius: 6px;
}
.pyq-title { font-size: 1.05rem; margin: 0; flex: 1; min-width: 220px; }

.pyq-diff {
  font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.7rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.pyq-diff-easy   { background: rgba(0,212,180,0.14);  color: var(--accent-2);      border: 1px solid rgba(0,212,180,0.3); }
.pyq-diff-medium { background: rgba(255,170,60,0.14); color: var(--accent-warn);   border: 1px solid rgba(255,170,60,0.3); }
.pyq-diff-hard   { background: rgba(255,90,107,0.12); color: var(--accent-danger); border: 1px solid rgba(255,90,107,0.3); }

.pyq-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.6rem 0 0.5rem; }
.pyq-cat {
  background: rgba(124,92,255,0.14); color: var(--accent);
  border: 1px solid rgba(124,92,255,0.3);
  font-size: 0.72rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 6px;
}
.pyq-companies { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; }
.pyq-co {
  font-size: 0.72rem; color: var(--text-muted);
  background: var(--bg-soft); padding: 0.15rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--border);
}

.pyq-approach { color: var(--text); font-size: 0.92rem; margin: 0.4rem 0 0.7rem; line-height: 1.55; }
.pyq-approach strong { color: var(--accent-2); margin-right: 0.2rem; }

/* Reveal button */
.pyq-reveal { margin-top: 0.4rem; }
.pyq-reveal[open] { border-top: 1px solid var(--border); padding-top: 0.6rem; }
.pyq-reveal-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  list-style: none; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 8px;
  background: var(--bg-hover); color: var(--text);
  font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  user-select: none;
}
.pyq-reveal-btn:hover { background: rgba(124,92,255,0.12); border-color: rgba(124,92,255,0.4); transform: translateY(-1px); }
.pyq-reveal-btn::-webkit-details-marker { display: none; }
.pyq-reveal-hide { display: none; }
.pyq-reveal[open] .pyq-reveal-show { display: none; }
.pyq-reveal[open] .pyq-reveal-hide { display: inline; }
.pyq-reveal[open] .pyq-reveal-btn { background: var(--grad); color: #0b0f1a; border-color: transparent; }

.pyq-solution { margin-top: 0.9rem; }
.pyq-code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.9rem;
  background: #0a0d18; border: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
}
.pyq-code-lang {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.pyq-copy-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 0.25rem 0.65rem; border-radius: 6px; cursor: pointer;
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pyq-copy-btn:hover { color: var(--text); border-color: rgba(124,92,255,0.4); background: var(--bg-hover); }
.pyq-copy-btn.is-copied { color: var(--accent-2); border-color: rgba(0,212,180,0.4); }

.pyq-code {
  margin: 0;
  background: #0a0d18;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  color: #e6e9f2;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  tab-size: 4;
}
.pyq-code code { background: transparent; padding: 0; color: inherit; font-family: inherit; }

.pyq-complexity {
  margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  display: inline-block;
}
.pyq-leetcode {
  display: inline-block; margin: 0.7rem 0 0 0.6rem;
  color: var(--accent-2); font-size: 0.85rem; font-weight: 600;
}
.pyq-leetcode:hover { color: var(--text); }

.pyq-empty {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
  background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius);
}

@media (max-width: 720px) {
  .pyq-head { gap: 0.5rem; }
  .pyq-title { font-size: 1rem; }
  .pyq-code { font-size: 0.76rem; padding: 0.85rem; }
  .pyq-filter-label { min-width: 0; }
  .pyq-search { max-width: none; }
}

/* ============================================================
   Section heading (shared across home-page sections)
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.4rem;
}
.section-head .pill { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head .section-sub { margin-bottom: 0; }

/* ============================================================
   How To Do section
   ============================================================ */
.how-to { padding: 4rem 0; }
.how-to-head { text-align: center; max-width: 760px; margin: 0 auto 2.4rem; }
.how-to-head .pill { margin-bottom: 1rem; }
.how-to-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  counter-reset: how-step;
}
.how-to-step {
  display: flex; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.how-to-step:hover { transform: translateY(-2px); border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow-glow); }
.how-to-num {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: #0b0f1a; font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
}
.how-to-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.how-to-body p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.how-to-body a { color: var(--accent-2); border-bottom: 1px dashed rgba(0,212,180,0.4); }
.how-to-body a:hover { color: var(--text); }

@media (max-width: 860px) { .how-to-list { grid-template-columns: 1fr; } }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { padding: 4rem 0; background: rgba(11,15,26,0.5); }
.testimonials-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.testimonials-head .pill { margin-bottom: 1rem; }
.testimonials-stat { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.ts-stars { color: var(--accent-warn); font-size: 1.2rem; letter-spacing: 0.08em; }
.ts-stat-text { color: var(--text-muted); font-size: 0.95rem; }
.ts-stat-text strong { color: var(--text); margin-right: 0.2rem; }

.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.testimonial-grid > .testimonial-card:nth-child(4),
.testimonial-grid > .testimonial-card:nth-child(5) { grid-column: span 1; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.testimonial-card:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow-glow); }
.t-stars { color: var(--accent-warn); font-size: 1.05rem; letter-spacing: 0.06em; }
.t-star-dim { color: var(--bg-hover); }
.t-body { color: var(--text); font-size: 0.95rem; margin: 0; flex: 1; line-height: 1.55; }
.t-author { display: flex; align-items: center; gap: 0.8rem; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #0b0f1a; font-weight: 800; font-size: 0.95rem;
  background: var(--grad);
}
.t-author strong { display: block; font-size: 0.95rem; color: var(--text); }
.t-author span { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 980px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 4rem 0; }
.faq-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.faq-head .pill { margin-bottom: 1rem; }

.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 0.7rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.3rem; transition: border-color 0.15s, background 0.15s;
}
.faq-item[open] { border-color: rgba(124,92,255,0.4); background: var(--bg-hover); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--text);
  list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent-2);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  color: var(--text-muted); font-size: 0.94rem; margin: 0.8rem 0 0; line-height: 1.65;
}
.faq-item a { color: var(--accent-2); border-bottom: 1px dashed rgba(0,212,180,0.4); }
.faq-item a:hover { color: var(--text); }

/* ============================================================
   Useful Links section
   ============================================================ */
.useful-links { padding: 4rem 0; background: rgba(11,15,26,0.5); }

.ul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.ul-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ul-card:hover { border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.ul-head {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.ul-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(124,92,255,0.25);
  border-radius: 10px;
  font-size: 1.15rem;
}
.ul-card h3 { font-size: 1rem; margin: 0; font-weight: 700; }

.ul-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.ul-list li { margin: 0; }
.ul-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, transform 0.12s;
  position: relative;
}
.ul-list a:hover {
  background: var(--bg-hover);
  color: var(--text);
  transform: translateX(2px);
}
.ul-list a strong {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.ul-list a strong::after {
  content: '↗';
  color: var(--accent-2);
  font-size: 0.78rem;
  opacity: 0.55;
  transition: opacity 0.12s, transform 0.12s;
}
.ul-list a:hover strong::after { opacity: 1; transform: translate(2px, -2px); }
.ul-list a span {
  display: block;
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1.45;
}

.ul-footnote {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.ul-footnote a {
  color: var(--accent-2);
  font-weight: 600;
  border-bottom: 1px dashed rgba(0,212,180,0.4);
}
.ul-footnote a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .ul-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ul-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Visual Roadmap Flowchart
   ============================================================= */
.roadmap-tab { display: inline-flex; align-items: center; gap: 0.45rem; }
.rt-icon { font-size: 1.05rem; }

.roadmap-hero {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.rh-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #0b0f1a;
  border-radius: 16px;
  font-size: 2rem;
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.4);
  flex-shrink: 0;
}
.rh-meta h2 { margin: 0 0 0.3rem; }
.rh-tagline { color: var(--text-muted); margin: 0 0 0.6rem; font-size: 1rem; }
.rh-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rh-pills .pill { background: rgba(11, 15, 26, 0.6); }

.flowchart {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 0 2rem;
}
.flow-node {
  position: relative;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-node-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #0b0f1a;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.45), 0 0 0 4px rgba(11, 15, 26, 1), 0 0 0 5px rgba(124, 92, 255, 0.2);
  position: relative;
  z-index: 2;
  margin-bottom: -14px;
}
.flow-node-badge--goal {
  background: linear-gradient(135deg, #ffaa3c, #ff5a6b);
  font-size: 1.6rem;
  box-shadow: 0 6px 22px rgba(255, 90, 107, 0.45), 0 0 0 4px rgba(11, 15, 26, 1), 0 0 0 5px rgba(255, 170, 60, 0.3);
}
.fn-num { line-height: 1; }
.flow-node-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem 1.3rem;
  box-shadow: var(--shadow-md);
  padding-top: 2rem;
  position: relative;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.flow-node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: var(--shadow-glow);
}
.flow-node-card h3 {
  font-size: 1.1rem;
  color: var(--accent-2);
  margin: 0 0 0.7rem;
  text-align: center;
}
.flow-node-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}
.flow-node-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.45;
}
.flow-node-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
  top: 1px;
}
.flow-node-card--goal {
  background: linear-gradient(135deg, rgba(255, 170, 60, 0.12), rgba(255, 90, 107, 0.10));
  border-color: rgba(255, 170, 60, 0.35);
}
.flow-node-card--goal h3 { color: var(--accent-warn); }
.flow-node-card--goal p { text-align: center; color: var(--text); margin: 0; }

.flow-arrow {
  width: 40px;
  height: 56px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 4px 0;
}
.flow-arrow svg { width: 100%; height: 100%; }

@media (max-width: 700px) {
  .flow-node-card ul { grid-template-columns: 1fr; }
  .roadmap-hero { flex-direction: column; text-align: center; }
}

.roadmap-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0 3rem;
}

/* =============================================================
   Resource section head (shared)
   ============================================================= */
.resource-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

/* =============================================================
   Free AI Tools grid
   ============================================================= */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}
.tool-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tool-icon {
  width: 36px; height: 36px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tool-card h3 { margin: 0; font-size: 1rem; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.link-arrow {
  margin-top: auto;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }

/* =============================================================
   Free Courses grid (rich card)
   ============================================================= */
.course-grid-rich {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.course-card-rich {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.course-card-rich:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}
.cc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}
.cc-head h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.course-card-rich p { margin: 0; color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.cert-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.cb-strong { background: rgba(0, 212, 180, 0.15); color: var(--accent-2); border: 1px solid rgba(0, 212, 180, 0.35); }
.cb-mid    { background: rgba(124, 92, 255, 0.18); color: #b5a3ff; border: 1px solid rgba(124, 92, 255, 0.4); }
.cb-soft   { background: rgba(255, 170, 60, 0.14); color: var(--accent-warn); border: 1px solid rgba(255, 170, 60, 0.35); }
.cb-none   { background: rgba(150, 150, 165, 0.1); color: var(--text-muted); border: 1px solid var(--border); }

@media (max-width: 700px) { .course-grid-rich { grid-template-columns: 1fr; } }

/* =============================================================
   About page
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 1rem 0 3rem;
}
.about-photo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(124, 92, 255, 0.35);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.25);
  background: var(--bg-card);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo-fallback {
  width: 100%;
  height: 100%;
  background: var(--grad);
  color: #0b0f1a;
  font-size: 5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.05em;
}
.about-photo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.about-text h2 { margin-bottom: 0.7rem; }
.about-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.about-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.4rem; }
.about-links .btn span { font-size: 1.05rem; }
.about-meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.about-meta-list li { color: var(--text-muted); font-size: 0.94rem; }
.about-meta-list strong { color: var(--text); margin-right: 0.4rem; }

.about-mission {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 3rem;
}
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.mission-card h3 { color: var(--accent-2); margin-bottom: 0.5rem; font-size: 1.05rem; }
.mission-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

.about-cta {
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.about-cta h2 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.about-cta p { margin: 0; color: var(--text-muted); }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-text { text-align: center; }
  .about-links { justify-content: center; }
  .about-mission { grid-template-columns: 1fr; }
  .about-cta { flex-direction: column; text-align: center; }
}

/* =============================================================
   Contact page
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: var(--shadow-glow);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.contact-card h3 { margin: 0; }
.contact-link {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 1rem;
  word-break: break-all;
}
.contact-link.disabled-link {
  color: var(--text-muted);
  text-decoration: line-through;
  pointer-events: none;
}
.contact-tag {
  display: inline-block;
  margin-top: auto;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 170, 60, 0.14);
  color: var(--accent-warn);
  border: 1px solid rgba(255, 170, 60, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}
.contact-tag--live {
  background: rgba(0, 212, 180, 0.15);
  color: var(--accent-2);
  border-color: rgba(0, 212, 180, 0.35);
}
.contact-card--cta {
  background: var(--grad-soft);
  border-color: rgba(124, 92, 255, 0.3);
}
.contact-btn { margin-top: 0.4rem; align-self: flex-start; }
.contact-banner {
  margin: 1rem 0 3rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 170, 60, 0.10);
  border: 1px solid rgba(255, 170, 60, 0.3);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}
.contact-banner strong { color: var(--accent-warn); }
.contact-banner a { color: var(--accent-2); border-bottom: 1px dashed rgba(0, 212, 180, 0.4); }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Related Resources block (internal linking, every new page)
   ============================================================= */
.related-block {
  margin: 3rem 0 4rem;
  padding: 1.8rem 1.8rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.related-block h2 {
  font-size: 1.3rem;
  margin: 0 0 1.1rem;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--bg-hover);
  color: var(--text);
}
.related-card strong {
  color: var(--accent-2);
  font-size: 0.94rem;
  font-weight: 700;
}
.related-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
@media (max-width: 860px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-block { padding: 1.3rem 1.2rem; margin: 2rem 0 2.4rem; }
}

/* Founder mini-card inside Contact page */
.contact-card--founder { gap: 0.45rem; }
.contact-founder-row { display: flex; align-items: center; gap: 0.85rem; }
.contact-founder-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124, 92, 255, 0.4);
  flex-shrink: 0;
  background: var(--bg-soft);
}
.contact-founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-founder-fallback {
  width: 100%; height: 100%;
  background: var(--grad);
  color: #0b0f1a;
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

/* =================================================================
   MOBILE RESPONSIVE — global polish
   Prevents horizontal scroll, tightens spacing, increases tap
   targets, prevents iOS zoom on form focus, fixes overlap issues.
   ================================================================= */

/* Hard stop on any horizontal overflow (most common cause of "stretched
   on phone" — a single wide element pushes the body wider than viewport) */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }

/* Tablet & below */
@media (max-width: 860px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.4rem 0 1.4rem; }
  .hero-grid { gap: 1.6rem; }
  .features { padding: 2.4rem 0; }
  .how-to { padding: 2.4rem 0; }
  .page-hero { padding: 2rem 0 1.4rem; }
  .cta-band { padding: 1.8rem 0 3rem; }
  .cta-band-inner { padding: 1.6rem 1.4rem; flex-direction: column; text-align: center; align-items: stretch; }
  .cta-band-inner .btn { width: 100%; }
  .site-footer { padding: 2rem 0 1.4rem; margin-top: 2.4rem; }
  .footer-bottom { text-align: center; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --radius: 12px; }
  .container { padding: 0 0.9rem; }

  /* Prevent iOS Safari auto-zoom on focus by ensuring input font ≥16px */
  input[type='text'], input[type='email'], input[type='url'], input[type='number'],
  input[type='password'], input[type='search'], input[type='tel'], select, textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  /* Tighter hero */
  .hero { padding: 1.8rem 0 1rem; }
  .hero-text h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero-text .lead { font-size: 1rem; }
  .hero-ctas { gap: 0.6rem; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; padding: 0.85rem 1rem; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.4rem; padding-top: 1.2rem; }
  .hero-meta strong { font-size: 1.3rem; }

  /* Larger tap targets on share strip */
  .share-row { gap: 0.45rem; }
  .share-btn { width: 40px; height: 40px; font-size: 1rem; }

  /* ATS demo card scales down */
  .ats-demo-stage.hero-demo { padding: 0.9rem 0.9rem 1.1rem; max-width: 100%; }
  .hero-demo-topbar { gap: 0.4rem; }
  .hero-demo-label { font-size: 0.66rem; letter-spacing: 0.06em; }
  .resume-mock { padding: 1rem 1.1rem 1.6rem; min-height: 260px; }
  .score-ring { width: 120px; height: 120px; }
  .score-ring-num { font-size: 2rem; }
  .hero-demo-steps .demo-step { font-size: 0.7rem; padding: 0.3rem 0.55rem; }

  /* Daily strip stacks cleanly */
  .daily-strip-inner { padding: 0.9rem 1rem; gap: 0.6rem; }
  .daily-strip-inner h3 { font-size: 0.98rem; min-width: 0; }
  .daily-strip-inner .btn { width: 100%; }

  /* Section spacing */
  .section-head { margin-bottom: 1.6rem; }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  /* Feature/how-to cards full width */
  .feature-card, .how-to-step { padding: 1.2rem 1.1rem; }
  .how-to-num { flex: 0 0 36px; width: 36px; height: 36px; font-size: 1rem; }

  /* Useful links cards */
  .ul-card { padding: 1.1rem 1.1rem; }
  .ul-list a strong { font-size: 0.95rem; }

  /* Testimonials */
  .testimonial-card { padding: 1.2rem 1.1rem; }

  /* Buttons — slightly bigger tap area */
  .btn { padding: 0.8rem 1.2rem; }
  .btn-small { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

  /* Nav — larger tap targets in dropdown */
  .primary-nav { right: 0.9rem; left: 0.9rem; min-width: 0; width: auto; }
  .primary-nav a { padding: 0.85rem 1rem; font-size: 1rem; }

  /* Footer: 2-col compact */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* Page hero h1 tighter */
  .page-hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .page-hero .lead { font-size: 1rem; }

  /* ===== Roadmap (flowchart) — mobile polish ===== */
  .tab-bar {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  .roadmap-tab { gap: 0.35rem; }
  .rt-icon { font-size: 1rem; }

  .roadmap-hero { padding: 1.1rem 1.1rem; gap: 0.9rem; }
  .rh-icon { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 12px; }
  .rh-meta h2 { font-size: 1.3rem; margin-bottom: 0.2rem; }
  .rh-tagline { font-size: 0.92rem; }

  .flow-node-card { padding: 1.7rem 1.1rem 1.1rem; }
  .flow-node-card h3 { font-size: 1rem; }
  .flow-node-card li { font-size: 0.9rem; }
  .flow-node-badge { width: 44px; height: 44px; font-size: 0.95rem; margin-bottom: -12px; }
  .flow-arrow { width: 32px; height: 44px; }

  .roadmap-cta { gap: 0.6rem; margin: 1rem 0 2rem; }
  .roadmap-cta .btn { width: 100%; }

  /* ===== Free AI tools / Free courses cards ===== */
  .tool-card, .course-card-rich { padding: 1rem 1.1rem; }
  .tool-card h3, .course-card-rich .cc-head h3 { font-size: 0.98rem; }
  .tool-card p, .course-card-rich p { font-size: 0.88rem; }
  .resource-section-head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .resource-section { margin-bottom: 2rem; }
  .cc-head { gap: 0.4rem; }
  .cert-badge { font-size: 0.68rem; padding: 0.2rem 0.55rem; }

  /* ===== About page ===== */
  .about-photo-wrap { width: 220px; height: 220px; border-radius: 20px; }
  .about-photo-fallback { font-size: 4rem; }
  .about-text h2 { font-size: 1.5rem; }
  .about-links .btn { flex: 1 1 100%; justify-content: center; }
  .about-meta-list li { font-size: 0.9rem; word-break: break-word; }
  .about-cta { padding: 1.4rem 1.2rem; }

  /* ===== Contact page ===== */
  .contact-card { padding: 1.2rem 1.2rem; }
  .contact-link { font-size: 0.95rem; }
  .contact-banner { padding: 0.9rem 1rem; font-size: 0.9rem; margin: 0.6rem 0 2rem; }

  /* ===== ATS / Email form pages ===== */
  .ats-grid, .email-grid { gap: 1rem; padding-bottom: 2.4rem; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; gap: 0; }
  .medium-toggle { grid-template-columns: 1fr 1fr; }

  /* Reduce cockroach swarm density / size — less intrusive on phones */
  .cockroach { transform: scale(0.7) rotate(var(--angle, 0deg)); }
  .cockroach-logo-bug { display: none !important; }
}

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }
  .brand-text { font-size: 1rem; }
  .hero-text h1 { font-size: 1.55rem; }
  .page-hero h1 { font-size: 1.55rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .about-photo-wrap { width: 180px; height: 180px; }
  .nav-wrap { padding: 0.7rem 0.9rem; }
  .feature-grid { gap: 0.8rem; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* Touch-device specific: remove hover lifts (they get "stuck") and
   bump minimum hit area on interactive elements */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover, .tool-card:hover, .course-card-rich:hover,
  .channel-card:hover, .course-card:hover, .ul-card:hover,
  .tip-card:hover, .pyq-card:hover, .testimonial-card:hover,
  .flow-node-card:hover, .contact-card:hover, .how-to-step:hover,
  .mission-card:hover {
    transform: none;
  }
  a, button, .btn, .tab, .filter-chip { min-height: 40px; }
}
