/* ==========================================================================
   Way2Automation — Shared Design System
   Light theme · White background · Blue + Red accent palette
   ========================================================================== */

:root {
  /* Brand palette */
  --blue-900: #0b2a6b;
  --blue-800: #11337f;
  --blue-700: #1742a3;
  --blue-600: #1e54c8;
  --blue-500: #2563eb;
  --blue-100: #e7efff;
  --blue-50:  #f3f7ff;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fde4e4;
  --red-50:  #fff5f5;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #eef2f7;

  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;

  --grad-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--red-600) 120%);
  --grad-blue: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  --grad-red: linear-gradient(135deg, var(--red-600), var(--red-500));

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --shadow-blue: 0 14px 34px rgba(37, 84, 200, .28);
  --shadow-red: 0 14px 34px rgba(220, 38, 38, .26);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1200px;
  --header-h: 74px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 7px 14px; border-radius: 100px;
}
.eyebrow.red { color: var(--red-600); background: var(--red-50); border-color: var(--red-100); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 18px 0 14px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37,84,200,.36); }
.btn-red { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(220,38,38,.34); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-login { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn-login:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--ink-900); }
.brand .logo-mark {
  position: relative; overflow: hidden;
  width: 42px; height: 42px; border-radius: 12px; flex: none; margin-right: 12px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.4), rgba(255,255,255,0) 46%),
    var(--grad-brand);
  color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem; letter-spacing: .3px;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* green "test-pass" status accent */
.brand .logo-mark::after {
  content: ""; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: #28c840; box-shadow: 0 0 0 2px rgba(255,255,255,.92);
}
/* sheen sweep on hover */
.brand .logo-mark::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.brand:hover .logo-mark { transform: translateY(-1px) scale(1.04); box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.45); }
.brand:hover .logo-mark::before { left: 130%; }
.brand b { color: var(--red-600); }
.brand-logo { height: clamp(34px, 5vw, 44px); width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-links > a, .nav-links > .nav-dropdown { flex: none; }
.nav-links a {
  font-weight: 500; font-size: .96rem; color: var(--ink-700); white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Resources dropdown */
.nav-dropdown { position: relative; }
.nav-drop-toggle { display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; }
.nav-drop-toggle .caret { font-size: .62rem; transition: transform .2s ease; }
.nav-dropdown:hover .caret, .nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-dropdown .dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 244px; background: #fff; border: 1px solid var(--ink-100);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 200;
}
.nav-dropdown:hover .dropdown, .nav-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown .dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--ink-700); white-space: nowrap;
}
.nav-dropdown .dropdown a:hover { background: var(--blue-50); color: var(--blue-600); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink-100);
  background: #fff; border-radius: 11px; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(220,38,38,.10), transparent 60%),
    radial-gradient(820px 520px at 8% 4%, rgba(37,84,200,.12), transparent 58%),
    var(--bg);
  padding: 70px 0 84px;
}
/* Animated background orbs */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-orbs .orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; will-change: transform; }
.orb-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: radial-gradient(circle, rgba(37,84,200,.45), transparent 70%); animation: orbFloat 16s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; top: 20%; right: -90px; background: radial-gradient(circle, rgba(220,38,38,.40), transparent 70%); animation: orbFloat 20s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; bottom: -120px; left: 38%; background: radial-gradient(circle, rgba(124,92,255,.34), transparent 70%); animation: orbFloat 24s ease-in-out infinite; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,24px) scale(.95); }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 20px 0 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-500); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-trust .ht { }
.hero-trust .ht b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-900); }
.hero-trust .ht span { font-size: .85rem; color: var(--ink-500); }

/* Rotating keyword */
.rotator { display: inline-block; position: relative; }
.rotator::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--red-500); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.rotator.swap { animation: rotSwap .5s ease; }
@keyframes rotSwap { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* Hero entrance animations */
.hero-copy > * { opacity: 0; animation: heroUp .7s ease forwards; }
.hero-copy > .eyebrow { animation-delay: .05s; }
.hero-copy > h1 { animation-delay: .15s; }
.hero-copy > .lead { animation-delay: .28s; }
.hero-copy > .hero-actions { animation-delay: .40s; }
.hero-copy > .hero-trust { animation-delay: .52s; }
.hero-visual { opacity: 0; animation: heroUp .8s ease .35s forwards; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Code mock visual */
.hero-visual { position: relative; }
.code-card {
  position: relative; z-index: 1;
  background: #0c1530; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid #1b2750; transform: rotate(.6deg);
  animation: cardSway 7s ease-in-out infinite;
}
@keyframes cardSway { 0%,100% { transform: rotate(.6deg) translateY(0); } 50% { transform: rotate(-.4deg) translateY(-8px); } }
.run-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #28c840; margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.code-card .cursor { color: #7ee0a5; animation: caretBlink 1s steps(1) infinite; }
.code-result {
  display: flex; align-items: center; gap: 14px; padding: 12px 22px;
  background: #0a1128; border-top: 1px solid #1b2750;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; color: #7ee0a5;
}
.code-result .tick {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(40,200,64,.18); color: #28c840; font-size: .8rem;
  animation: tickPop .5s 1.1s both;
}
@keyframes tickPop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.code-result i { width: 1px; height: 14px; background: #1b2750; font-style: normal; }
.code-result .rt { margin-left: auto; color: #5d6b9a; }
.code-card .bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #0a1128; }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card .bar .r { background: #ff5f57; } .code-card .bar .y { background: #febc2e; } .code-card .bar .g { background: #28c840; }
.code-card .bar small { margin-left: auto; color: #5d6b9a; font-size: .76rem; }
.code-card pre { margin: 0; padding: 20px 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem; line-height: 1.8; color: #c9d4f5; overflow-x: auto; }
.code-card .k { color: #6ea8fe; } .code-card .s { color: #7ee0a5; } .code-card .c { color: #5d6b9a; } .code-card .f { color: #ffb3b3; }

.hero-badge {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-900);
}
.hero-badge .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.hero-badge.b1 { top: 8%; right: -2%; animation: badgeFloat 5s ease-in-out infinite; } .hero-badge.b1 .ic { background: var(--grad-red); }
.hero-badge.b2 { bottom: 6%; left: -4%; animation: badgeFloat 6s ease-in-out .8s infinite; } .hero-badge.b2 .ic { background: var(--grad-blue); }
@keyframes badgeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3, .code-card, .hero-badge.b1, .hero-badge.b2,
  .run-dot, .hero-copy > *, .hero-visual { animation: none !important; }
  .hero-copy > *, .hero-visual { opacity: 1; }
}

/* Marquee logos ----------------------------------------------------------- */
.logos { padding: 38px 0; border-block: 1px solid var(--ink-100); background: #fff; }
.logos p { text-align: center; color: var(--ink-500); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logo-row span { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink-300); letter-spacing: -.02em; }

/* Stat band --------------------------------------------------------------- */
.stat-band { background: var(--grad-blue); color: #fff; }
.stat-band .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 46px 0; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); display: block; }
.stat span { opacity: .85; font-size: .92rem; }

/* Feature cards ----------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.feature .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; margin-bottom: 18px; background: var(--grad-blue);
}
.feature:nth-child(2n) .ic { background: var(--grad-red); }
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { color: var(--ink-500); font-size: .96rem; }

/* Course cards ------------------------------------------------------------ */
.course-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.course-thumb {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  color: #fff; font-size: 2.6rem; font-family: var(--font-display); font-weight: 800;
}
.course-thumb .cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92);
  color: var(--ink-900); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
}
/* Light logo tile (real brand logos) */
.course-thumb--logo {
  background: radial-gradient(130% 130% at 28% 12%, #ffffff 0%, #eef3fb 58%, #e6edf7 100%);
  border-bottom: 1px solid var(--ink-100);
}
.course-thumb--logo .course-logo {
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, .14));
  transition: transform .25s ease;
}
.course-card:hover .course-thumb--logo .course-logo { transform: scale(1.07); }
.course-thumb--logo .cat { background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm); }
/* Photo thumbnail (real course cover images) */
.course-thumb--photo { background: var(--ink-100); }
.course-thumb--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-thumb--photo img { transform: scale(1.06); }
.course-thumb--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.18) 0%, transparent 32%); }
.course-desc { color: var(--ink-500); font-size: .9rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results-count { text-align: center; color: var(--ink-500); font-size: .9rem; margin-bottom: 28px; }
.course-thumb .tag-live {
  position: absolute; top: 12px; right: 12px; background: var(--red-600); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase;
}
.course-thumb .tag-live::before { content:''; width: 7px; height: 7px; border-radius: 50%; background:#fff; animation: pulse 1.4s infinite; }
.course-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; }
.course-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-500); font-size: .85rem; margin-bottom: 14px; }
.course-meta .by { display: flex; align-items: center; gap: 7px; }
.course-meta .av { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-brand); color:#fff; display:grid; place-items:center; font-size:.7rem; font-weight:700; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--ink-100); }
.course-foot .price { font-family: var(--font-display); font-weight: 800; color: var(--ink-900); font-size: 1.05rem; }
.course-foot .price s { color: var(--ink-300); font-weight: 500; font-size: .85rem; margin-right: 6px; }
.course-foot a { font-weight: 600; color: var(--blue-600); font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }
.stars { color: #f59e0b; font-size: .82rem; }

/* Filters ----------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  border: 1px solid var(--ink-100); background: #fff; color: var(--ink-700);
  padding: 9px 18px; border-radius: 100px; cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: .18s;
}
.filter-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter-btn.active { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }

/* Batches table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.batches { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
table.batches th { background: var(--blue-50); color: var(--blue-800); text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding: 16px 20px; }
table.batches td { padding: 18px 20px; border-top: 1px solid var(--ink-100); font-size: .95rem; }
table.batches tr:hover td { background: var(--bg-soft); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .78rem; font-weight: 700; }
.pill-green { background: #e7f7ee; color: #138a51; }
.pill-red { background: var(--red-50); color: var(--red-600); }

/* Testimonials ------------------------------------------------------------ */
.testi { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testi .stars { margin-bottom: 12px; }
.testi p { color: var(--ink-700); font-size: .98rem; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color:#fff; display:grid; place-items:center; font-weight:700; }
.testi .who b { display: block; color: var(--ink-900); font-size: .95rem; }
.testi .who span { font-size: .82rem; color: var(--ink-500); }

/* FAQ --------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--ink-100); border-radius: var(--radius-sm); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-900); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; transition: .25s; font-size: 1.2rem; }
.faq-item.open .faq-q .pm { background: var(--grad-red); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a div { padding: 0 22px 22px; color: var(--ink-500); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content:''; position:absolute; inset:0; pointer-events: none; background: radial-gradient(600px 300px at 80% 0, rgba(255,255,255,.18), transparent 60%); }
.cta-band .hero-actions { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.5rem); margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .92; max-width: 560px; margin: 0 auto 26px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* Pricing (lifetime) ------------------------------------------------------ */
.price-card { background: #fff; border: 2px solid var(--blue-100); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); position: relative; }
.price-card .ribbon { position: absolute; top: 22px; right: -8px; background: var(--grad-red); color: #fff; font-weight: 700; font-size: .8rem; padding: 8px 18px; border-radius: 6px 0 0 6px; box-shadow: var(--shadow-red); }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; color: var(--ink-900); line-height: 1; }
.price-card .amount s { font-size: 1.4rem; color: var(--ink-300); font-weight: 500; margin-right: 10px; }
.price-card .amount small { font-size: 1rem; color: var(--ink-500); font-weight: 500; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; color: var(--ink-700); }
.check-list li .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 3px; }
.check-list.red li .ck { background: var(--red-50); color: var(--red-600); }

/* Page hero (inner) ------------------------------------------------------- */
.page-hero { background:
    radial-gradient(700px 300px at 90% -20%, rgba(220,38,38,.10), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(37,84,200,.12), transparent 58%), var(--bg-soft);
  padding: 56px 0; border-bottom: 1px solid var(--ink-100); text-align: center; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-500); max-width: 640px; margin: 0 auto; font-size: 1.06rem; }
.crumbs { font-size: .85rem; color: var(--ink-500); margin-bottom: 16px; }
.crumbs a { color: var(--blue-600); }

/* Blogs ------------------------------------------------------------------- */
.blog-search { max-width: 620px; margin: 26px auto 0; }
.blog-search input { width: 100%; padding: 15px 20px; border: 1px solid var(--ink-300); border-radius: 100px; font-family: var(--font); font-size: 1rem; color: var(--ink-900); background: #fff; box-shadow: var(--shadow-sm); }
.blog-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
.blog-results { display: flex; justify-content: space-between; color: var(--ink-500); margin-bottom: 22px; }
.blog-results b { color: var(--ink-900); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.blog-card-body { display: flex; flex-direction: column; width: 100%; padding: 26px; }
.blog-card h2 { font-size: 1.12rem; margin: 12px 0 10px; }
.blog-card h2 a:hover { color: var(--blue-600); }
.blog-card p { color: var(--ink-500); font-size: .92rem; margin-bottom: 20px; }
.blog-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-500); font-size: .8rem; }
.blog-read { color: var(--blue-600); font-weight: 700; font-size: .9rem; margin-top: auto; }
.blog-empty { display: none; text-align: center; color: var(--ink-500); padding: 40px 0; }
.article-hero { background: var(--bg-soft); border-bottom: 1px solid var(--ink-100); padding: 54px 0; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 14px 0; }
.article-container { max-width: 880px; }
.article-section { padding-top: 58px; }
.blog-content { overflow-wrap: anywhere; }
.blog-content > * + * { margin-top: 1.25em; }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 { margin-top: 1.7em; }
.blog-content h2 { font-size: 1.65rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content a { color: var(--blue-600); text-decoration: underline; }
.blog-content ul, .blog-content ol { list-style: revert; padding-left: 1.5rem; }
.blog-content img { height: auto; margin: 24px auto; border-radius: var(--radius-sm); }
.blog-content pre, .blog-content code { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.blog-content pre { overflow-x: auto; padding: 20px; background: #0c1530; color: #c9d4f5; border-radius: var(--radius-sm); }
.blog-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.blog-content th, .blog-content td { border: 1px solid var(--ink-300); padding: 9px 12px; }
.blog-content iframe { max-width: 100%; }
.article-back { margin-top: 50px; }

/* Contact ----------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-900); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .96rem; color: var(--ink-900); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info-card { background: var(--grad-blue); color: #fff; border-radius: var(--radius); padding: 34px; }
.contact-info-card .ci { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-card .ci .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.contact-info-card .ci b { display: block; }
.contact-info-card .ci span { opacity: .85; font-size: .92rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0b1228; color: #aeb9d6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: #aeb9d6; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .18s; }
.social a:hover { background: var(--grad-red); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* Utilities --------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.hide { display: none !important; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Gallery ----------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.45), rgba(15,23,42,0) 55%);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(15, 23, 42, .9);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .85;
}
.lightbox-close:hover { opacity: 1; }

/* Promo flyer popup ------------------------------------------------------- */
.flyer-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(15, 23, 42, .6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.flyer-overlay.open { display: flex; opacity: 1; }
.flyer {
  position: relative; width: 100%; max-width: 440px; text-align: center;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px 32px 30px; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0;
}
.flyer-overlay.open .flyer { animation: flyerIn .45s cubic-bezier(.2,.8,.25,1) forwards; }
@keyframes flyerIn { to { transform: translateY(0) scale(1); opacity: 1; } }
.flyer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--grad-red);
}
.flyer-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: var(--bg-soft); color: var(--ink-500); border-radius: 50%;
  font-size: 1.4rem; line-height: 1; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.flyer-close:hover { background: var(--red-50); color: var(--red-600); transform: rotate(90deg); }
.flyer-ribbon {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 100px;
  background: var(--red-50); color: var(--red-600); font-size: .8rem; font-weight: 700;
  letter-spacing: .02em;
}
.flyer-badge {
  position: absolute; top: 18px; left: -34px; transform: rotate(-45deg);
  background: var(--grad-blue); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 40px;
}
.flyer h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 4px 0 10px; }
.flyer-sub { color: var(--ink-500); font-size: .98rem; margin-bottom: 20px; }
.flyer-countdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.flyer-countdown .fc {
  min-width: 58px; padding: 10px 6px; border-radius: var(--radius-sm);
  background: #0c1530; color: #fff;
}
.flyer-countdown .fc b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.flyer-countdown .fc span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #93a3c9; }
.flyer-cta { width: 100%; justify-content: center; }
.flyer-note { color: var(--ink-500); font-size: .8rem; margin-top: 14px; }

/* Checkout / Buy Now ------------------------------------------------------ */
.checkout {
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.pay-tabs { display: flex; border-bottom: 1px solid var(--ink-100); }
.pay-tab {
  flex: 1; padding: 18px 16px; border: none; background: var(--bg-soft);
  font-family: inherit; font-size: .98rem; font-weight: 700; color: var(--ink-500);
  cursor: pointer; transition: background .2s ease, color .2s ease; border-bottom: 3px solid transparent;
}
.pay-tab:hover { color: var(--ink-900); }
.pay-tab.active { background: #fff; color: var(--red-600); border-bottom-color: var(--red-500); }
.pay-panel { padding: 36px; }
.pay-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.pay-grid--single { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
.pay-qr { text-align: center; }
.qr-box {
  display: inline-block; padding: 16px; background: #fff;
  border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.qr-box img { display: block; width: 240px; height: 240px; }
.qr-hint { margin-top: 14px; font-size: .82rem; color: var(--ink-500); line-height: 1.5; }
.pay-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink-900); margin: 10px 0 18px; }
.pay-amount s { color: var(--ink-400, #94a3b8); font-weight: 600; font-size: 1.2rem; margin-right: 8px; }
.pay-amount small { font-size: .9rem; font-weight: 500; color: var(--ink-500); }
.pay-details { list-style: none; padding: 0; margin: 0 0 22px; border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; }
.pay-details li {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100); font-size: .95rem;
}
.pay-details li:last-child { border-bottom: none; }
.pay-details li span { width: 80px; color: var(--ink-500); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.pay-details li b { color: var(--ink-900); font-size: 1.05rem; letter-spacing: .02em; }
.copy-btn {
  margin-left: auto; padding: 5px 12px; border: 1px solid var(--blue-100); border-radius: 100px;
  background: #fff; color: var(--blue-600); font-size: .76rem; font-weight: 600; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.copy-btn:hover { background: var(--blue-600); color: #fff; }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.pay-steps { margin: 0 0 24px; padding-left: 20px; color: var(--ink-500); }
.pay-steps li { margin-bottom: 10px; line-height: 1.55; }
.pay-steps li b { color: var(--ink-900); }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--ink-400, #94a3b8); font-size: .82rem; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--ink-100); }
.pay-foot { text-align: center; padding: 0 36px 30px; color: var(--ink-500); font-size: .9rem; }
.pay-foot a { color: var(--blue-600); font-weight: 600; }

/* Legal / general pages --------------------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--ink-500); font-size: .9rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal p { color: var(--ink-500); line-height: 1.75; margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { color: var(--ink-500); line-height: 1.7; margin-bottom: 8px; }
.legal a { color: var(--blue-600); font-weight: 600; }
.legal .callout {
  background: var(--red-50); border: 1px solid var(--red-100); border-left: 4px solid var(--red-500);
  border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; color: var(--ink-900); line-height: 1.7;
}
.legal .callout b { color: var(--red-600); }

/* Video embeds / demo videos --------------------------------------------- */
.video-embed {
  position: relative; width: 100%; max-width: 880px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.demo-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.demo-card .video-embed { max-width: none; border-radius: 0; box-shadow: none; }
.demo-card-body { padding: 20px 22px 24px; }
.demo-card-body .cat {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 100px;
  background: var(--blue-50, #eef2ff); color: var(--blue-700); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.demo-card-body h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.demo-card-body p { color: var(--ink-500); font-size: .92rem; line-height: 1.6; }

/* Click-to-play video facade */
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  cursor: pointer; background-color: #000; background-size: cover; background-position: center;
}
.video-facade::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); transition: background .2s ease;
}
.video-facade:hover::after { background: rgba(0, 0, 0, .12); }
.video-facade .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 76px; height: 76px; border-radius: 50%; background: rgba(220, 38, 38, .95);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .2s ease;
}
.video-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-facade .play::before {
  content: ""; border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff; margin-left: 5px;
}

/* In-page video lightbox */
.vlightbox {
  position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
  padding: 28px; background: rgba(15, 23, 42, .92); backdrop-filter: blur(3px);
}
.vlightbox.open { display: flex; }
.vlightbox-frame { width: 100%; max-width: 1000px; }
.vlightbox-frame .video-embed { max-width: 100%; }
.vlightbox-close {
  position: absolute; top: 18px; right: 26px; font-size: 2.4rem; line-height: 1;
  color: #fff; background: none; border: none; cursor: pointer; opacity: .85;
}
.vlightbox-close:hover { opacity: 1; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-band .container { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.show {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ink-100); padding: 14px 20px;
    box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.show a { padding: 12px 14px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 6px 14px; min-width: 0; display: none;
  }
  .nav-dropdown.open .dropdown { display: block; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cta-band { padding: 40px 24px; }
  .price-card { padding: 28px; }
  .hero-badge { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .flyer { padding: 36px 20px 26px; }
  .flyer h3 { font-size: 1.45rem; }
  .flyer-countdown { gap: 7px; }
  .flyer-countdown .fc { min-width: 0; flex: 1; padding: 9px 4px; }
  .flyer-countdown .fc b { font-size: 1.2rem; }
  .pay-grid { grid-template-columns: 1fr; gap: 28px; }
  .pay-qr { order: -1; }
  .pay-panel { padding: 26px 20px; }
  .pay-tab { padding: 14px 10px; font-size: .88rem; }
  .demo-grid { grid-template-columns: 1fr; }
}
