/* ===== Playwright Labs — Design System =====
   Palette inspired by Playwright's own brand: dark navy surface, terminal green accent.
*/
:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --surface: #141f3c;
  --surface-2: #1b2a4d;
  --border: #263258;
  --text: #eef2ff;
  --text-dim: #a7b3d6;
  --text-faint: #74809f;
  --primary: #2ead33;
  --primary-dim: #1f7a26;
  --primary-glow: rgba(46, 173, 51, 0.25);
  --accent: #45d6c4;
  --warn: #ff9d45;
  --danger: #ff8f8f;
  --danger-dim: rgba(224, 72, 72, 0.35);
  --danger-glow: rgba(224, 72, 72, 0.12);
  --navbar-glass: rgba(11, 18, 32, 0.85);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
  font-size: 16px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --border: #dde3ee;
  --text: #101828;
  --text-dim: #475467;
  --text-faint: #667085;
  --primary: #1f9e28;
  --primary-dim: #187a1e;
  --primary-glow: rgba(31, 158, 40, 0.14);
  --accent: #0d8f83;
  --warn: #b54d0e;
  --danger: #b42318;
  --danger-dim: rgba(180, 35, 24, 0.3);
  --danger-glow: rgba(180, 35, 24, 0.08);
  --navbar-glass: rgba(255, 255, 255, 0.85);
  --shadow: 0 20px 60px -20px rgba(16, 24, 40, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-dim); margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--primary); color: #04150a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--primary-glow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  max-width: 1400px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.brand .dot { color: var(--primary); }
.brand-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { padding: 11px 18px; font-size: 0.88rem; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1220px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-alt); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links a { white-space: normal; font-size: 0.95rem; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
  .nav-cta .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 0.85rem; }
}
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-logo { height: 28px; }
}

/* Hero */
.hero { padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(closest-side, var(--primary-glow), transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--text); font-family: "Poppins", sans-serif; }
.hero-stats div span { font-size: 0.85rem; color: var(--text-faint); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Always dark, like a real code editor — deliberately does not follow the light/dark site theme. */
.code-window {
  background: #141f3c;
  border: 1px solid #263258;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-window .titlebar { display: flex; gap: 8px; padding: 14px 16px; background: #1b2a4d; border-bottom: 1px solid #263258; }
.code-window .titlebar span { width: 11px; height: 11px; border-radius: 50%; background: #263258; }
.code-window .titlebar span:nth-child(1) { background: #ff6159; }
.code-window .titlebar span:nth-child(2) { background: #ffbd2e; }
.code-window .titlebar span:nth-child(3) { background: #28c93f; }
.code-window pre { margin: 0; padding: 22px 20px; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86rem; color: #cbd5f5; overflow-x: auto; }
.code-window .c1 { color: #74809f; }
.code-window .c2 { color: #45d6c4; }
.code-window .c3 { color: #2ead33; }
.code-window .c4 { color: #ff9d45; }

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

/* Cards grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-dim); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}

/* Course card */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.course-card ul { margin: 14px 0 20px; }
.course-card li { color: var(--text-dim); font-size: 0.92rem; padding-left: 22px; position: relative; margin-bottom: 8px; }
.course-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.course-card .meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto; }

/* Batch schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.batch-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.batch-table th, .batch-table td { padding: 16px 18px; text-align: left; font-size: 0.92rem; white-space: nowrap; }
.batch-table thead th { background: var(--surface-2); color: var(--text-faint); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--border); }
.batch-table tbody tr { border-bottom: 1px solid var(--border); }
.batch-table tbody tr:last-child { border-bottom: none; }
.batch-table tbody tr:hover { background: var(--surface-2); }
.batch-table td { color: var(--text-dim); }
.batch-table td strong { color: var(--text); }
.batch-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.batch-tag.weekday { color: var(--accent); background: rgba(69, 214, 196, 0.12); }
.batch-tag.weekend { color: var(--primary); background: var(--primary-glow); }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 26px 18px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 700; font-family: "Poppins", sans-serif; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* Stats band */
.stats-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-band .grid-4 { text-align: center; }
.stats-band strong { display: block; font-size: 2.1rem; color: var(--primary); font-family: "Poppins", sans-serif; }
.stats-band span { color: var(--text-faint); font-size: 0.9rem; }

/* Testimonials */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote-card p { color: var(--text-dim); font-style: italic; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #04150a; font-family: "Poppins", sans-serif; }
.avatar-img { object-fit: cover; flex-shrink: 0; }
.quote-person strong { display: block; color: var(--text); font-size: 0.92rem; }
.quote-person span { color: var(--text-faint); font-size: 0.82rem; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.logo-chip { border: 1px solid var(--border); border-radius: 8px; padding: 14px 22px; color: var(--text-faint); font-weight: 600; font-family: "Poppins", sans-serif; letter-spacing: 0.02em; background: var(--surface); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .plus { color: var(--primary); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band .btn-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem; margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 0.8rem; color: var(--text-faint); }

/* Footer */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 0.85rem; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.social-row a:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Page header (interior pages) */
.page-header { padding: 60px 0 50px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumb { color: var(--text-faint); font-size: 0.88rem; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb .sep { margin: 0 6px; }

/* Misc */
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; color: var(--text-dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.value-list li { display: flex; gap: 12px; margin-bottom: 16px; color: var(--text-dim); }
.value-list li .check { color: var(--primary); font-weight: 700; }
.timeline { border-left: 2px solid var(--border); padding-left: 26px; margin-left: 6px; }
.timeline .tl-item { position: relative; padding-bottom: 32px; }
.timeline .tl-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 620px) { .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; } .whatsapp-float svg { width: 26px; height: 26px; } }

/* Theme toggle (light/dark) — floats opposite the WhatsApp button to avoid overlap */
.theme-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle-btn:hover { transform: scale(1.08); border-color: var(--primary); }
@media (max-width: 620px) { .theme-toggle-btn { width: 44px; height: 44px; bottom: 16px; left: 16px; font-size: 1.1rem; } }
