/* Sachin Tekriwal AI Academy — shared styles */
:root {
  --bg: #f4f6ff; --bg-soft: #eef1ff; --surface: #ffffff; --text: #0f172a; --muted: #64748b;
  --line: #e2e8f0; --purple: #6d28d9; --purple-2: #7c3aed; --cyan: #06b6d4; --green: #10b981;
  --radius: 16px; --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(109, 40, 217, 0.12); --header-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo {
  height: 44px; width: auto; max-width: min(260px, 42vw); object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px 8px; border: 1px solid var(--line);
}
.brand-logo.is-hidden { display: none; }
.brand-fallback {
  display: none; align-items: center; gap: 0.55rem; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 7px; max-width: min(280px, 70vw);
}
.brand-fallback.is-visible { display: flex; }
.brand-fallback-mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899, #7c3aed);
}
.brand-fallback-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-fallback-text strong { font-size: 0.8rem; }
.brand-fallback-text small { font-size: 0.6rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 0.35rem 0.95rem; flex-wrap: wrap; }
.nav a {
  font-size: 0.86rem; font-weight: 500; color: #334155; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--purple); border-bottom-color: var(--purple); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; transition: 0.2s ease; font-size: 0.95rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff; padding: 0.85rem 1.35rem; box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--text); padding: 0.85rem 1.25rem; border: 1px solid var(--line); }
.btn-outline:hover { border-color: #c4b5fd; color: var(--purple); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.875rem; }
.btn-light {
  background: #fff; color: var(--purple); padding: 0.85rem 1.3rem; border-radius: 999px;
  font-weight: 700; border: none; cursor: pointer; font-family: inherit; display: inline-flex;
}
.header-cta { display: flex; align-items: center; gap: 0.5rem; }

.page-hero {
  padding: 3.1rem 0 2.1rem;
  background: radial-gradient(700px 360px at 15% 0%, rgba(167,139,250,0.22), transparent 60%),
    linear-gradient(180deg, #f8f7ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.55rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 0.55rem;
}
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.7rem; }
.breadcrumb a { color: var(--purple); font-weight: 600; }

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(900px 500px at 10% 0%, rgba(167,139,250,0.25), transparent 60%),
    radial-gradient(700px 400px at 90% 20%, rgba(34,211,238,0.15), transparent 55%),
    linear-gradient(180deg, #f8f7ff 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid #ddd6fe;
  color: var(--purple); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.15rem; box-shadow: 0 4px 16px rgba(109,40,217,0.08);
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.95rem;
}
.hero h1 .g1 { color: #2563eb; } .hero h1 .g2 { color: var(--cyan); }
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 540px; margin-bottom: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.35rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.stat-num { font-size: 1.35rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.12rem; }

.terminal {
  background: #0f172a; color: #e2e8f0; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid #1e293b;
}
.terminal-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; background: #1e293b; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 0.75rem; color: #94a3b8; }
.terminal-body {
  padding: 1.2rem 1.3rem 1.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem; line-height: 1.75;
}
.t-cmd { color: #94a3b8; } .t-ok { color: #4ade80; } .t-accent { color: #a78bfa; } .t-cyan { color: #22d3ee; }
.hero-visual { position: relative; }
.float-badge {
  position: absolute; right: -8px; top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow);
}

section { padding: 4rem 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 0.55rem;
}
.section-title {
  font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.2; margin-bottom: 0.55rem;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: 0 4px 20px rgba(15,23,42,0.04); transition: 0.2s ease; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd6fe; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ede9fe, #e0f2fe); font-size: 1.15rem; margin-bottom: 0.8rem;
}
.card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.91rem; }
.card .card-link { display: inline-block; margin-top: 0.8rem; font-size: 0.88rem; font-weight: 700; color: var(--purple); }

.program-banner {
  background: linear-gradient(135deg, #4c1d95, #6d28d9 50%, #0891b2);
  color: #fff; border-radius: 24px; padding: 2.15rem;
}
.program-banner h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.5rem; }
.program-banner p { opacity: 0.92; max-width: 560px; margin-bottom: 1.1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.05rem; }
.chip {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 0.32rem 0.75rem; font-size: 0.78rem; font-weight: 600;
}

.phase {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 1rem; overflow: hidden;
}
.phase-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.95rem 1.2rem; background: linear-gradient(90deg, #f5f3ff, #ecfeff);
  border-bottom: 1px solid var(--line);
}
.phase-header h3 { font-size: 0.98rem; }
.phase-hours {
  font-size: 0.76rem; font-weight: 700; color: var(--purple); background: #fff;
  border: 1px solid #ddd6fe; padding: 0.28rem 0.65rem; border-radius: 999px;
}
.week-row {
  display: grid; grid-template-columns: 90px 70px 1fr; gap: 0.7rem;
  padding: 0.95rem 1.2rem; border-bottom: 1px solid #f1f5f9; align-items: start;
}
.week-row:last-child { border-bottom: none; }
.week-num { font-weight: 700; font-size: 0.84rem; color: var(--purple); }
.week-hrs {
  font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--bg-soft);
  padding: 0.18rem 0.48rem; border-radius: 999px; width: fit-content;
}
.week-content h4 { font-size: 0.94rem; margin-bottom: 0.18rem; }
.week-content p { font-size: 0.87rem; color: var(--muted); }
.week-output {
  display: inline-block; margin-top: 0.3rem; font-size: 0.76rem; font-weight: 600;
  color: var(--green); background: #ecfdf5; padding: 0.18rem 0.5rem; border-radius: 6px;
}

.prose { max-width: 720px; }
.prose p { color: #334155; margin-bottom: 0.95rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.95rem; margin: 1.4rem 0; }
.stat-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem; text-align: center;
}
.stat-box .n { font-size: 1.35rem; font-weight: 800; color: var(--purple); }
.stat-box .l { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.principle {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; margin-bottom: 0.8rem;
}
.principle h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.principle p { color: var(--muted); font-size: 0.91rem; }
.principle .num { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--purple); margin-bottom: 0.25rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.tag {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.32rem 0.75rem; font-size: 0.8rem; font-weight: 600; color: #334155;
}

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.55rem; box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 0.45rem; }
.contact-card p { color: var(--muted); margin-bottom: 0.95rem; font-size: 0.94rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-list li { padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.94rem; }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.contact-list span { color: var(--text); font-weight: 600; }

details.faq {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.95rem 1.15rem; margin-bottom: 0.65rem;
}
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--purple); font-weight: 700; }
details.faq[open] summary::after { content: "−"; }
.faq-body { color: var(--muted); margin-top: 0.65rem; font-size: 0.91rem; }

.cta-band {
  background: linear-gradient(135deg, #4c1d95, #7c3aed); color: #fff;
  border-radius: 24px; padding: 2.15rem; text-align: center;
}
.cta-band h2 { margin-bottom: 0.45rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.1rem; }
.notices { display: grid; gap: 0.55rem; margin-bottom: 1.1rem; }
.notice {
  display: flex; gap: 0.6rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem;
  font-size: 0.87rem; color: #334155;
}
.notice strong { color: var(--text); }
.poster-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0.7rem;
  box-shadow: var(--shadow); max-width: 720px; margin: 0 auto;
}
.poster-wrap img { width: 100%; border-radius: 12px; }
.poster-caption { text-align: center; color: var(--muted); font-size: 0.84rem; margin-top: 0.7rem; }

.article-item {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 0.8rem; transition: 0.2s ease;
}
.article-item:hover { border-color: #ddd6fe; box-shadow: var(--shadow); transform: translateY(-2px); }
.article-item .meta { font-size: 0.76rem; font-weight: 700; color: var(--purple); margin-bottom: 0.3rem; }
.article-item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.article-item p { color: var(--muted); font-size: 0.9rem; }

footer {
  padding: 2.4rem 0 1.9rem; border-top: 1px solid var(--line); margin-top: auto;
  color: var(--muted); font-size: 0.9rem; background: #fff;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.4rem; }
.footer-inner strong { color: var(--text); display: block; margin-bottom: 0.4rem; }
.footer-inner a { color: var(--purple); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 0.38rem; }
.footer-bottom {
  margin-top: 1.6rem; padding-top: 1.15rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; font-size: 0.8rem;
}
.float-wa {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; border: none; cursor: pointer; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4); display: grid; place-items: center; font-size: 1.45rem;
}
.mobile-nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem;
}
@media (max-width: 980px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; position: absolute;
    top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 4%; gap: 0.7rem; box-shadow: var(--shadow);
  }
  .mobile-nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .contact-grid, .footer-inner, .stat-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .week-row { grid-template-columns: 70px 1fr; }
  .week-hrs { grid-column: 1; }
}

/* Research journal */
.status-chip {
  display: inline-block; font-size: 0.76rem; font-weight: 700; color: #065f46;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 0.25rem 0.7rem;
}
.status-chip.status-muted { color: var(--muted); background: var(--bg-soft); border-color: var(--line); }
.num-badge {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #ede9fe; color: var(--purple); font-weight: 800; font-size: 0.85rem; margin-bottom: 0.6rem;
}
.log { border-left: 2px solid #ddd6fe; margin-left: 0.4rem; }
.log li {
  position: relative; padding: 0 0 1rem 1.1rem; display: flex; gap: 0.9rem;
  font-size: 0.93rem; color: #334155;
}
.log li::before {
  content: ""; position: absolute; left: -6px; top: 0.45rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--purple);
}
.log-date { flex: 0 0 72px; font-weight: 700; color: var(--purple); font-size: 0.82rem; padding-top: 0.1rem; }
@media (max-width: 900px) { .log li { flex-direction: column; gap: 0.1rem; } }
