/* ============================================================
   Cloud Institute — core stylesheet
   1. Tokens  2. Base  3. Layout  4. Header  5. Buttons
   6. Cards   7. Hero  8. Sections 9. Pages  10. Footer & UI
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #ff7a00;
  --secondary: #ff9e1a;
  --dark: #181818;
  --bg: #f8f8f8;
  --card: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #eaeaea;

  --surface-2: #ffffff;
  --surface-alt: #f1f1f1;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --header-bg: rgba(248, 248, 248, 0.82);
  --hero-bg: linear-gradient(160deg, #fff7ef 0%, #f8f8f8 45%, #fdf1e3 100%);
  --on-primary: #ffffff;

  --gradient: linear-gradient(120deg, var(--primary), var(--secondary));
  --gradient-soft: linear-gradient(120deg, rgba(255, 122, 0, 0.14), rgba(255, 158, 26, 0.08));

  --shadow-sm: 0 2px 8px rgba(24, 24, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(24, 24, 24, 0.08);
  --shadow-lg: 0 24px 60px rgba(24, 24, 24, 0.12);
  --shadow-glow: 0 18px 40px rgba(255, 122, 0, 0.28);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.32s var(--ease);
}

[data-theme="dark"] {
  --dark: #f4f4f4;
  --bg: #101114;
  --card: #191b1f;
  --text: #f1f1f1;
  --muted: #a0a0a8;
  --border: #26282e;

  --surface-2: #1f2127;
  --surface-alt: #16181c;
  --glass: rgba(25, 27, 31, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(16, 17, 20, 0.82);
  --hero-bg: linear-gradient(160deg, #1a1206 0%, #101114 48%, #1c1204 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--primary); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

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

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { font-size: 1.03rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Header ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: var(--gradient);
  z-index: 120;
  transition: width 0.08s linear;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.header.is-stuck {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.is-active { color: var(--primary); }
.nav-menu a.is-active::after,
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), top var(--t);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 22px 48px rgba(255, 122, 0, 0.36); }

.btn--ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 122, 0, 0.5);
  color: var(--primary);
}
.btn--outline:hover { background: rgba(255, 122, 0, 0.08); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.btn--ghost .ripple,
.btn--outline .ripple { background: rgba(255, 122, 0, 0.25); }

/* ---------- 6. Cards & shared UI ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 0, 0.34);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: rgba(255, 122, 0, 0.12);
  color: var(--primary);
}
.badge--success { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.badge--dark { background: rgba(24, 24, 24, 0.08); color: var(--text); }

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}
.field .error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #dc2626;
}
.field.has-error input,
.field.has-error textarea { border-color: #dc2626; }
.field.has-error .error { display: block; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 96px;
  background: var(--hero-bg);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead {
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero__proof div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}
.hero__proof div span { font-size: 0.85rem; color: var(--muted); }

.typing-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  min-height: 1.6em;
  margin-bottom: 14px;
}
.typing-line::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--primary);
  vertical-align: -0.14em;
  animation: caret 1s steps(2) infinite;
}

.hero__visual { position: relative; }
.hero__panel {
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero__panel-top strong { font-family: var(--font-display); font-size: 0.95rem; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.hero__dots i:first-child { background: var(--primary); }

.progress-row { margin-bottom: 16px; }
.progress-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.progress-row__top span:last-child { color: var(--primary); font-weight: 600; }
.progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  overflow: hidden;
}
[data-theme="dark"] .progress { background: #2a2c31; }
.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient);
  transition: width 1.2s var(--ease);
}

.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}
.hero__chip i { color: var(--primary); }
.hero__chip--a { top: -22px; right: 18px; }
.hero__chip--b { bottom: -26px; left: -18px; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.blob--1 { width: 420px; height: 420px; top: -120px; right: -80px; background: rgba(255, 122, 0, 0.4); }
.blob--2 { width: 340px; height: 340px; bottom: -140px; left: -60px; background: rgba(255, 158, 26, 0.32); }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }

/* ---------- 8. Sections ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  padding: 32px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

.course-card { display: flex; flex-direction: column; overflow: hidden; }
.course-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__media .badge { position: absolute; top: 14px; left: 14px; background: rgba(24, 24, 24, 0.7); color: #fff; backdrop-filter: blur(6px); }
.course-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-card__body h3 { margin-bottom: 10px; }
.course-card__body p { font-size: 0.93rem; flex: 1; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 18px;
  font-size: 0.84rem;
  color: var(--muted);
}
.course-meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-meta i { color: var(--primary); }
.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.course-card__foot small { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.course-card__foot small i { color: #16a34a; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(255, 158, 26, 0.12));
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--primary);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.timeline__item h3 { margin: 4px 0 8px; }
.timeline__item p { margin: 0; font-size: 0.94rem; }

.value-card { padding: 30px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { margin: 0; font-size: 0.93rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0 0 14px 34px;
  color: var(--muted);
  font-size: 0.96rem;
}
.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
}
.checklist li strong { color: var(--text); }

/* Instructors */
.instructor-card { padding: 26px; text-align: center; }
.instructor-card img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 122, 0, 0.25);
}
.instructor-card h3 { margin-bottom: 2px; }
.instructor-card .role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.instructor-card p { font-size: 0.9rem; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 18px; }
.instructor-tags span {
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--muted);
}
[data-theme="dark"] .instructor-tags span { background: #22242a; }
.social-row { display: flex; justify-content: center; gap: 10px; }
.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--t-fast);
}
.social-row a:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* Testimonials */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform 0.55s var(--ease); }
.slider__slide { min-width: 100%; padding: 6px; }
.testimonial { padding: 38px; text-align: center; max-width: 780px; margin-inline: auto; }
.testimonial .stars { color: var(--secondary); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 1.12rem;
  line-height: 1.75;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
}
.testimonial__person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial__person img { width: 54px; height: 54px; border-radius: 50%; }
.testimonial__person strong { display: block; font-family: var(--font-display); }
.testimonial__person span { font-size: 0.84rem; color: var(--muted); }

.slider__nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}
.slider__dots button.is-active { width: 26px; border-radius: var(--radius-pill); background: var(--gradient); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq__item.is-open { border-color: rgba(255, 122, 0, 0.4); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.faq__q i { color: var(--primary); transition: transform var(--t); flex-shrink: 0; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq__a p { padding: 0 24px 22px; margin: 0; font-size: 0.95rem; }

/* Newsletter + CTA */
.newsletter {
  padding: 54px;
  border-radius: 26px;
  background: linear-gradient(120deg, #181818, #35210b);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.newsletter::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.35);
  filter: blur(60px);
}
.newsletter form { position: relative; z-index: 2; display: flex; gap: 12px; }
.newsletter input {
  flex: 1;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter input:focus { outline: none; border-color: var(--secondary); }

/* ---------- 9. Page-specific ---------- */
.page-hero {
  padding: calc(var(--header-h) + 74px) 0 62px;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero p { max-width: 620px; margin-inline: auto; font-size: 1.04rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.breadcrumb a:hover { color: var(--primary); }

/* Verify */
.verify-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: start; }
.verify-box { padding: 34px; }
.verify-box .hint { font-size: 0.84rem; margin-top: -6px; }
.sample-ids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sample-ids button {
  border: 1px dashed var(--border);
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--muted);
  transition: all var(--t-fast);
}
.sample-ids button:hover { color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .sample-ids button { background: #1f2127; }

.result { min-height: 320px; }
.result__empty {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.result__empty i { font-size: 2rem; color: var(--border); }

.certificate {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--gradient);
}
.certificate.is-invalid::before { background: #dc2626; }
.certificate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.certificate__head img { width: 62px; height: 62px; }
.certificate__rows { display: grid; gap: 14px; }
.certificate__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.94rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.certificate__row:last-child { border-bottom: 0; padding-bottom: 0; }
.certificate__row span { color: var(--muted); }
.certificate__row strong { font-family: var(--font-display); text-align: right; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.info-card { padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.info-card .feature-icon { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: 0.92rem; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-frame img { width: 100%; }

/* Portal */
.portal { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.portal-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}
.portal-user { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.portal-user img { width: 46px; height: 46px; border-radius: 50%; }
.portal-user strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.portal-user span { font-size: 0.78rem; color: var(--muted); }
.portal-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.portal-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--t-fast);
}
.portal-nav button i { width: 18px; color: var(--muted); transition: color var(--t-fast); }
.portal-nav button:hover { background: var(--surface-alt); }
.portal-nav button.is-active { background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.portal-nav button.is-active i { color: #fff; }
[data-theme="dark"] .portal-nav button:hover { background: #22242a; }

.portal-panel { display: none; }
.portal-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease) both; }
.portal-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.portal-head h2 { margin: 0; font-size: 1.5rem; }
.panel-block { padding: 24px; margin-bottom: 24px; }
.panel-block h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel-block h3 i { color: var(--primary); }

.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row .when {
  min-width: 92px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}
.list-row strong { display: block; font-size: 0.96rem; font-family: var(--font-display); }
.list-row small { color: var(--muted); font-size: 0.84rem; }

.announcement { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-alt); margin-bottom: 12px; }
[data-theme="dark"] .announcement { background: #22242a; }
.announcement strong { display: block; font-family: var(--font-display); font-size: 0.94rem; }
.announcement p { margin: 4px 0 0; font-size: 0.88rem; }

/* ---------- 10. Footer & floating UI ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 74px 0 0;
}
[data-theme="dark"] .footer { background: #0b0c0e; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: rgba(255, 255, 255, 0.5); }
.footer p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 0.92rem; transition: color var(--t-fast), padding-left var(--t-fast); }
.footer ul a:hover { color: var(--secondary); padding-left: 5px; }
.footer .social-row { justify-content: flex-start; margin-top: 18px; }
.footer .social-row a { border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.8); }
.footer__bottom {
  margin-top: 54px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
}
.footer__bottom a:hover { color: var(--secondary); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: var(--shadow-glow);
  transition: all var(--t);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

.toasts {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 130;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 48px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.35s var(--ease) both;
}
.toast.is-out { animation: toastOut 0.3s var(--ease) forwards; }
.toast i { color: var(--primary); margin-top: 3px; }
.toast.is-success { border-left-color: #16a34a; }
.toast.is-success i { color: #16a34a; }
.toast.is-error { border-left-color: #dc2626; }
.toast.is-error i { color: #dc2626; }
.toast strong { display: block; font-family: var(--font-display); font-size: 0.92rem; }
.toast span { font-size: 0.85rem; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
  float: right;
  border: 0;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
}
.modal__close:hover { color: var(--primary); }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader img { width: 56px; height: 56px; animation: float 2.4s ease-in-out infinite; }
.loader__bar { width: 180px; height: 4px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--gradient); animation: loading 1.1s var(--ease) infinite; }
.loader span { font-family: var(--font-display); font-size: 0.84rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- 11. Pricing ---------- */
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.price small { font-size: 0.76rem; color: var(--muted); }

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 122, 0, 0.22);
}
.modal-price b { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); }
.modal-price span { font-size: 0.86rem; color: var(--muted); }

.pricing {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.pricing__main {
  padding: 44px 38px;
  background: linear-gradient(150deg, #181818, #35210b);
  color: #fff;
}
.pricing__main .badge { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pricing__amount { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.pricing__amount b {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing__amount span { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.pricing__note { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; margin-bottom: 26px; }
.pricing__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pricing__list { padding: 44px 38px; margin: 0; }
.pricing__list li:last-child { padding-bottom: 0; }

/* ---------- 12. AI tool cards ---------- */
.tool-card { padding: 28px; display: flex; flex-direction: column; }
.tool-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tool-card__head h3 { margin: 0 0 2px; font-size: 1.12rem; }
.tool-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--surface-alt);
  flex-shrink: 0;
}
[data-theme="dark"] .tool-logo { background: #22242a; }
.tool-vendor {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.tool-card > p { font-size: 0.93rem; }
.tool-learn {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.tool-learn span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.trademark-note {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}
