/* Course Point BD — Web & Software Development */
:root {
  --brand: #3090f0;
  --brand-600: #1f78d6;
  --brand-50: #eef6ff;
  --ink: #0f1b2d;
  --ink-2: #26364d;
  --muted: #5b6b82;
  --line: #e3eaf3;
  --bg: #ffffff;
  --soft: #f5f8fc;
  --navy: #0b1626;
  --navy-2: #12233a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand-sub { color: var(--muted); font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand-600); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  font: inherit; font-weight: 600; font-size: .9rem; min-width: 44px; height: 38px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-600); }
.nav-toggle { display: none; width: 42px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #c9d6e8;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(48,144,240,.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(48,144,240,.18), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  padding: 88px 0 96px;
}
.hero h1 { color: #fff; }
.hero h1 span { display: block; }
.hero .accent { color: #7cc0ff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.hero .eyebrow { color: #7cc0ff; }
.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #7cc0ff; font-weight: 700; margin-right: 6px; }

.hero-visual { position: relative; }
.code-card {
  background: #0d1b2e; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden;
}
.code-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.code-top i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-top i:nth-child(2) { background: #febc2e; }
.code-top i:nth-child(3) { background: #28c840; }
.code-top span { margin-left: 10px; font-size: .8rem; color: #7f93ad; font-family: ui-monospace, Consolas, monospace; }
.code-card pre { margin: 0; padding: 20px 22px 36px;overflow-x: auto; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92rem; line-height: 1.7; color: #d7e3f4; }
.code-card .k { color: #c792ea; } .code-card .s { color: #a5e07a; } .code-card .b { color: #f78c6c; }
.code-card .f { color: #82aaff; } .code-card .c { color: #6c819c; font-style: italic; }
.float-chip {
  position: absolute; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.chip-a { top: -16px; right: 18px; }
.chip-b { bottom: -16px; left: 18px; }

/* ===== Sections ===== */
.section { padding: 88px 0; scroll-margin-top: 56px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #b7c6da; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #7cc0ff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }
.section-dark .section-head p:last-child { color: #b7c6da; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfe2f8; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 24px 24px 20px; border-left: 4px solid var(--brand); }
.feature p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e3ecf8; font-weight: 500; }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { margin-bottom: 8px; }
.contact-form { background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid #cfd9e6; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(48,144,240,.18); }
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1e8e4f; }
.form-status.err { color: #c43c3c; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #8fa3bd; padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner strong { color: #fff; margin-right: 8px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #b9d9ff; text-decoration: none; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 80px; }
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .features, .steps, .field-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .contact-form { padding: 22px; }
  .code-card pre { font-size: .8rem; padding: 16px; }
  .chip-a { right: 8px; } .chip-b { left: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
