/* ===== RESET & VARIABLES ===== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg-darkest: #06080c;
      --bg-darker: #0a0e14;
      --bg-card: #10161f;
      --bg-card-hover: #151d2a;
      --bg-card-glass: rgba(16, 22, 31, 0.82);
      --bg-surface: #17212e;
      
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-card: rgba(255, 255, 255, 0.1);
      --border-green: rgba(16, 185, 129, 0.35);
      --border-green-bright: rgba(0, 255, 157, 0.65);

      --primary-green: #10b981;
      --primary-green-glow: #00ff9d;
      --primary-green-dark: #059669;
      --primary-green-dim: rgba(16, 185, 129, 0.12);

      --accent-cyan: #06b6d4;
      --accent-purple: #8b5cf6;
      --accent-gold: #fbbf24;

      --text-white: #f8fafc;
      --text-light: #e2e8f0;
      --text-muted: #94a3b8;
      --text-dim: #64748b;

      --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --container-max: 1240px;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --radius-full: 9999px;

      --shadow-3d-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.12);
      --shadow-3d-hover: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 255, 157, 0.25);
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      /* `clip` (not `hidden`) contains overflow WITHOUT creating a scroll
         container — `hidden` here would break the sticky navbar. */
      overflow-x: clip;
    }

    body {
      font-family: var(--font-family);
      background-color: var(--bg-darkest);
      color: var(--text-light);
      line-height: 1.8;
      overflow-x: clip;
      max-width: 100%;
      /* long Latin tokens (AutoSubtitle, Remotion…) must not blow out the width */
      overflow-wrap: break-word;
      direction: rtl;
      text-align: right;
    }

    /* Fallback for browsers without `overflow-x: clip` */
    @supports not (overflow-x: clip) {
      html, body {
        overflow-x: hidden;
      }
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-darkest);
    }
    ::-webkit-scrollbar-thumb {
      background: #1e293b;
      border-radius: 5px;
      border: 2px solid var(--bg-darkest);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-green-dark);
    }

    /* ===== UTILITY & TYPOGRAPHY ===== */
    a {
      text-decoration: none;
      color: inherit;
    }

    img, video {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .container {
      width: 100%;
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 24px;
    }

    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: var(--radius-full);
      background: var(--primary-green-dim);
      border: 1px solid var(--border-green);
      color: var(--primary-green-glow);
      font-size: 0.875rem;
      font-weight: 700;
      margin-bottom: 18px;
      backdrop-filter: blur(10px);
    }

    .section-badge::before {
      content: "";
      display: inline-block;
      flex-shrink: 0;
      width: 8px;
      height: 8px;
      background: var(--primary-green-glow);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--primary-green-glow);
    }

    .section-title {
      font-size: clamp(1.85rem, 3.8vw, 2.7rem);
      font-weight: 900;
      color: var(--text-white);
      line-height: 1.35;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }

    .section-title span.highlight {
      color: var(--primary-green-glow);
      text-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
    }

    .section-title span.highlight-gold {
      color: var(--accent-gold);
      text-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
    }

    .section-desc {
      font-size: 1.1rem;
      color: var(--text-muted);
      max-width: 760px;
      margin-bottom: 40px;
      line-height: 1.85;
    }

    .text-center {
      text-align: center;
    }

    .center-block {
      margin-left: auto;
      margin-right: auto;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 15px 32px;
      border-radius: var(--radius-md);
      font-size: 1.05rem;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      outline: none;
      font-family: inherit;
    }

    .btn-primary {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #03140d;
      box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
      box-shadow: 0 10px 35px rgba(0, 255, 157, 0.65);
      transform: translateY(-3px);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-light);
      border: 1px solid var(--border-subtle);
      backdrop-filter: blur(8px);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--border-green);
      color: var(--text-white);
      transform: translateY(-2px);
    }

    .btn-lg {
      padding: 18px 40px;
      font-size: 1.15rem;
      border-radius: var(--radius-md);
    }

    /* Compact CTA buttons (navbar + mobile sticky bar) */
    .nav-cta-btn {
      padding: 10px 22px;
      font-size: 0.925rem;
      white-space: nowrap;
    }

    .sticky-bar-btn {
      padding: 10px 22px;
      font-size: 0.95rem;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* 3D Glass Card Utility */
    .card-3d {
      background: var(--bg-card-glass);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow-3d-card);
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .card-3d:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-3d-hover);
      border-color: var(--border-green);
    }

    /* ===== NAVBAR ===== */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(6, 8, 12, 0.88);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-subtle);
      padding: 14px 0;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-avatar-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1.5px solid var(--primary-green);
      overflow: hidden;
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
      flex-shrink: 0;
    }

    .nav-avatar-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .nav-brand-title {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.25;
    }

    .nav-brand-sub {
      font-size: 0.78rem;
      color: var(--primary-green-glow);
      font-weight: 500;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .nav-badge-date {
      display: none;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: var(--text-light);
      padding: 6px 14px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
    }

    @media (min-width: 768px) {
      .nav-badge-date {
        display: flex;
      }
    }

    /* ===== HERO SECTION ===== */
    .hero-section {
      position: relative;
      padding: 60px 0 90px;
      /* photo sits at the bottom of the stack and is heavily darkened so the
         headline stays legible on top of it */
      background-image:
        linear-gradient(180deg, rgba(6, 8, 12, 0.93) 0%, rgba(6, 8, 12, 0.87) 45%, rgba(6, 8, 12, 0.97) 100%),
        radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
        url('../images/hero-bg.webp');
      background-size: 100% 100%, 100% 100%, cover;
      background-position: center, center, center;
      background-repeat: no-repeat;
      border-bottom: 1px solid var(--border-subtle);
      overflow: hidden;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
      align-items: center;
    }

    @media (min-width: 992px) {
      .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 56px;
      }
    }

    .hero-headline {
      font-size: clamp(2.1rem, 4.4vw, 3.4rem);
      font-weight: 900;
      color: var(--text-white);
      line-height: 1.25;
      margin-bottom: 20px;
      /* avoids single-word orphan lines; ignored by browsers that lack it */
      text-wrap: balance;
    }

    .hero-headline .glow-word {
      color: var(--primary-green-glow);
      text-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
    }

    .hero-subheadline {
      font-size: 1.15rem;
      color: var(--text-light);
      line-height: 1.85;
      margin-bottom: 24px;
    }

    .hero-highlight-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 28px;
    }

    .hero-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: var(--bg-surface);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      color: var(--text-light);
      font-weight: 600;
    }

    .hero-chip svg {
      color: var(--primary-green);
      flex-shrink: 0;
    }

    /* Hero differentiator callout: the tools are home-made gifts */
    .hero-gift-callout {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-top: 22px;
      padding: 16px 18px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.09) 0%, rgba(0, 255, 157, 0.05) 100%);
      border: 1px solid rgba(251, 191, 36, 0.35);
      border-right: 3px solid var(--accent-gold);
    }

    .hero-gift-icon {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.14);
      border: 1px solid rgba(251, 191, 36, 0.4);
    }

    .hero-gift-body {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .hero-gift-body strong {
      font-size: 0.98rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.6;
    }

    .hero-gift-body span {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.75;
    }

    .hero-gift-body em {
      font-style: normal;
      font-weight: 800;
      color: var(--accent-gold);
    }

    .hero-cta-group {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 10px;
    }

    @media (min-width: 540px) {
      .hero-cta-group {
        flex-direction: row;
        align-items: center;
      }
    }

    /* Hero Video Phone Frame */
    .hero-phone-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .hero-phone-frame {
      width: 100%;
      max-width: 320px;
      aspect-ratio: 9 / 16;
      background: #0d131a;
      border: 3px solid rgba(16, 185, 129, 0.5);
      border-radius: 36px;
      padding: 10px;
      box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85),
                  0 0 35px rgba(16, 185, 129, 0.25);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .phone-speaker-notch {
      width: 80px;
      height: 4px;
      background: #1e293b;
      border-radius: 10px;
      margin: 4px auto 10px;
      z-index: 5;
    }

    .phone-screen {
      flex: 1;
      border-radius: 26px;
      position: relative;
      overflow: hidden;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .phone-screen video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-play-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: opacity 0.3s ease;
      z-index: 3;
    }

    .hero-play-btn {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.3);
      border: 2px solid var(--primary-green-glow);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-green-glow);
      box-shadow: 0 0 25px rgba(0, 255, 157, 0.5);
      transition: transform 0.25s ease;
    }

    .hero-play-btn svg {
      width: 30px;
      height: 30px;
      margin-right: 4px;
    }

    .hero-play-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-white);
      background: rgba(0, 0, 0, 0.6);
      padding: 4px 12px;
      border-radius: var(--radius-full);
      border: 1px solid var(--border-subtle);
    }

    /* ===== REAL CASE STORIES: DOCTORS & DELVANEH ===== */
    .section-case-stories {
      padding: 90px 0;
      background-color: var(--bg-darker);
      border-bottom: 1px solid var(--border-subtle);
      position: relative;
    }

    .case-stories-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;
    }

    @media (min-width: 992px) {
      .case-stories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
      }
    }

    .case-card {
      padding: 36px 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .case-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8rem;
      font-weight: 800;
      padding: 4px 12px;
      border-radius: var(--radius-full);
      margin-bottom: 18px;
      align-self: flex-start;
    }

    .case-badge.badge-doctor {
      background: rgba(6, 182, 212, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(6, 182, 212, 0.35);
    }

    .case-badge.badge-delvaneh {
      background: rgba(251, 191, 36, 0.15);
      color: #fde047;
      border: 1px solid rgba(251, 191, 36, 0.35);
    }

    .case-title {
      font-size: 1.45rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.4;
      margin-bottom: 14px;
    }

    .case-story-text {
      font-size: 1.025rem;
      color: var(--text-light);
      line-height: 1.9;
      margin-bottom: 24px;
    }

    .case-metric-box {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .case-metric-val {
      font-size: 1.6rem;
      font-weight: 900;
      color: var(--primary-green-glow);
    }

    .case-metric-val.gold {
      color: var(--accent-gold);
    }

    .case-metric-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    /* ===== REAL 9:16 VIDEOS GALLERY (9 VIDEOS) ===== */
    .section-videos {
      padding: 100px 0;
      background-color: var(--bg-darkest);
      border-bottom: 1px solid var(--border-subtle);
    }

    .videos-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    /* 3 columns only from tablet-landscape up; below that 3 tiny 9:16
       thumbnails per row are unreadable. */
    @media (min-width: 768px) {
      .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
    }

    @media (min-width: 1100px) {
      .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
      }
    }

    .video-item-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-3d-card);
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .video-item-card:hover {
      transform: translateY(-6px);
      border-color: var(--border-green);
      box-shadow: var(--shadow-3d-hover);
    }

    .video-media-container {
      width: 100%;
      aspect-ratio: 9 / 16;
      background: #000;
      position: relative;
      overflow: hidden;
    }

    .video-media-container video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-play-btn-circle {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: rgba(16, 185, 129, 0.25);
      border: 2px solid var(--primary-green-glow);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-green-glow);
      box-shadow: 0 0 25px rgba(0, 255, 157, 0.45);
      transition: all 0.25s ease;
      z-index: 4;
      pointer-events: none;
    }

    .video-item-card:hover .video-play-btn-circle {
      transform: translate(-50%, -50%) scale(1.15);
      background: rgba(16, 185, 129, 0.45);
    }

    .video-play-btn-circle svg {
      width: 24px;
      height: 24px;
      margin-right: 3px;
    }

    .video-tag-pill {
      position: absolute;
      top: 14px;
      right: 14px;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border-green);
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      color: var(--primary-green-glow);
      font-weight: 700;
      z-index: 4;
    }

    .video-card-meta {
      padding: 16px 18px;
      background: var(--bg-card);
      border-top: 1px solid var(--border-subtle);
    }

    .video-card-title {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--text-white);
      margin-bottom: 4px;
    }

    .video-card-sub {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* ===== SECTION: WORKSHOP SYLLABUS (40% AVATAR & 60% AUTOMATION) ===== */
    .section-syllabus {
      padding: 100px 0;
      background-color: var(--bg-darker);
      border-bottom: 1px solid var(--border-subtle);
    }

    /* 2-Pillar Master Grid on Desktop */
    .syllabus-pillars-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;
    }

    @media (min-width: 992px) {
      .syllabus-pillars-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: stretch;
      }
    }

    .pillar-column {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .pillar-header {
      border-radius: var(--radius-lg);
      padding: 28px 24px;
      margin-bottom: 20px;
      border: 1px solid var(--border-card);
      position: relative;
      overflow: hidden;
    }

    /* Each pillar gets its own artwork; the 270deg overlay darkens the right-hand
       side (where the RTL text sits) and leaves the artwork visible on the left. */
    .pillar-header.pillar-avatar {
      background-image:
        linear-gradient(270deg, rgba(6, 8, 12, 0.95) 0%, rgba(6, 8, 12, 0.74) 48%, rgba(6, 8, 12, 0.4) 100%),
        radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.2) 0%, transparent 55%),
        url('../images/learn-avatar.webp');
      background-size: 100% 100%, 100% 100%, cover;
      background-position: center, center, center;
      background-repeat: no-repeat;
      border-color: rgba(6, 182, 212, 0.4);
    }

    .pillar-header.pillar-automation {
      background-image:
        linear-gradient(270deg, rgba(6, 8, 12, 0.95) 0%, rgba(6, 8, 12, 0.74) 48%, rgba(6, 8, 12, 0.4) 100%),
        radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.2) 0%, transparent 55%),
        url('../images/learn-roadmap.webp');
      background-size: 100% 100%, 100% 100%, cover;
      background-position: center, center, center;
      background-repeat: no-repeat;
      border-color: var(--border-green);
    }

    .pillar-ratio-badge {
      font-size: 0.85rem;
      font-weight: 900;
      padding: 4px 14px;
      border-radius: var(--radius-full);
      display: inline-block;
      margin-bottom: 10px;
    }

    .pillar-avatar .pillar-ratio-badge {
      background: rgba(6, 182, 212, 0.25);
      color: #38bdf8;
    }

    .pillar-automation .pillar-ratio-badge {
      background: rgba(16, 185, 129, 0.25);
      color: var(--primary-green-glow);
    }

    .pillar-title {
      font-size: 1.45rem;
      font-weight: 900;
      color: var(--text-white);
      line-height: 1.35;
    }

    .pillar-sub {
      font-size: 0.92rem;
      color: var(--text-muted);
      margin-top: 6px;
    }

    .pillar-cards-stack {
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
    }

    .syll-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 22px 20px;
      display: flex;
      gap: 16px;
      transition: all 0.25s ease;
    }

    .syll-card:hover {
      border-color: var(--border-green);
      transform: translateX(-4px);
      background: var(--bg-card-hover);
    }

    .syll-number {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--bg-surface);
      border: 1px solid var(--border-card);
      color: var(--primary-green-glow);
      font-size: 1rem;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .syll-content h4 {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text-white);
      margin-bottom: 6px;
      line-height: 1.4;
    }

    .syll-content p {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.75;
    }

    .syll-tag {
      display: inline-block;
      font-size: 0.75rem;
      color: var(--primary-green-glow);
      font-weight: 700;
      margin-bottom: 4px;
    }

    /* Live Demo Highlight Box */
    .live-demo-banner {
      margin-top: 40px;
      background: linear-gradient(135deg, rgba(16, 22, 31, 0.95) 0%, rgba(13, 30, 24, 0.95) 100%);
      border: 2px solid var(--primary-green);
      border-radius: var(--radius-lg);
      padding: 32px 28px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), var(--shadow-3d-card);
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;
    }

    @media (min-width: 768px) {
      .live-demo-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 36px 40px;
      }
    }

    .live-demo-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.35);
      color: #f87171;
      padding: 4px 12px;
      border-radius: var(--radius-full);
      font-size: 0.8rem;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .live-demo-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      background: #f87171;
      border-radius: 50%;
      box-shadow: 0 0 8px #f87171;
    }

    /* ===== SPECIAL INCENTIVE: AUTOSUBTITLE 1.9.8 FREE LICENSE ===== */
    .section-autosubtitle-gift {
      padding: 90px 0;
      background-color: var(--bg-darkest);
      position: relative;
      border-bottom: 1px solid var(--border-subtle);
    }

    /* 3D License Token Card Visual */
    .license-token-card {
      background: rgba(16, 25, 36, 0.75);
      border: 1px solid var(--border-green);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      text-align: center;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.2);
      backdrop-filter: blur(12px);
    }

    .license-token-icon {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: linear-gradient(135deg, #10b981, #06b6d4);
      color: #03140d;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 18px;
      box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
    }

    .license-token-icon svg {
      width: 38px;
      height: 38px;
    }

    .license-version-badge {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 800;
      color: var(--primary-green-glow);
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid var(--border-green);
      padding: 4px 14px;
      border-radius: var(--radius-full);
      margin-bottom: 12px;
    }

    .license-token-title {
      font-size: 1.4rem;
      font-weight: 900;
      color: var(--text-white);
      margin-bottom: 8px;
    }

    /* ===== GIFT CARDS ===== */
    .gifts-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 26px;
    }

    @media (min-width: 992px) {
      .gifts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
      }
    }

    .gift-card {
      display: flex;
      flex-direction: column;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: var(--shadow-3d-card);
    }

    .gift-media {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #08111a;
      border-bottom: 1px solid var(--border-subtle);
    }

    .gift-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* the licence uses the existing 3D token card instead of a photo */
    .gift-media.is-token {
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: auto;
      padding: 30px 20px;
      background: radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.16) 0%, #0a1218 70%);
    }

    .gift-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 26px 26px 24px;
    }

    .gift-tag {
      align-self: flex-start;
      margin-bottom: 12px;
      font-size: 0.72rem;
      font-weight: 900;
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.14);
      border: 1px solid rgba(251, 191, 36, 0.4);
      padding: 3px 12px;
      border-radius: var(--radius-full);
    }

    .gift-title {
      margin-bottom: 10px;
      font-size: 1.3rem;
      font-weight: 900;
      color: var(--text-white);
      line-height: 1.45;
    }

    .gift-desc {
      margin-bottom: 18px;
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.85;
    }

    .gift-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 22px;
      font-size: 0.9rem;
      color: var(--text-light);
    }

    .gift-list li {
      position: relative;
      padding-right: 22px;
      line-height: 1.7;
    }

    .gift-list li::before {
      content: "";
      position: absolute;
      right: 0;
      top: 0.62em;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--primary-green-glow);
      box-shadow: 0 0 8px var(--primary-green-glow);
    }

    .gift-value {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 18px;
      border-radius: var(--radius-md);
      background: rgba(0, 0, 0, 0.35);
      border: 1px dashed rgba(251, 191, 36, 0.4);
    }

    .gift-value-label {
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .gift-value-num {
      white-space: nowrap;
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--accent-gold);
    }

    .gift-value-num small {
      margin-right: 3px;
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--text-dim);
    }

    .gifts-total {
      margin-top: 28px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px 18px;
      padding: 22px 26px;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(0, 255, 157, 0.07) 100%);
      border: 1px solid rgba(251, 191, 36, 0.4);
      text-align: center;
    }

    .gifts-total-label {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-light);
    }

    .gifts-total-num {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--accent-gold);
    }

    .gifts-total-free {
      font-size: 0.85rem;
      font-weight: 800;
      color: #03140d;
      background: linear-gradient(135deg, #10b981, #00ff9d);
      padding: 4px 14px;
      border-radius: var(--radius-full);
    }

    /* ===== SECTION: INSTRUCTOR (SADEGH SAMANI) ===== */
    .section-instructor {
      padding: 100px 0;
      background-color: var(--bg-darker);
      border-bottom: 1px solid var(--border-subtle);
    }

    .instructor-box {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-xl);
      padding: 44px 32px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 36px;
      align-items: center;
      box-shadow: var(--shadow-3d-card);
    }

    @media (min-width: 992px) {
      .instructor-box {
        grid-template-columns: 340px 1fr;
        padding: 56px 48px;
        gap: 56px;
      }
    }

    .instructor-photo-frame {
      max-width: 340px;
      margin: 0 auto;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 2px solid var(--primary-green);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.3);
      position: relative;
    }

    .instructor-photo-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .instructor-verified-pill {
      position: absolute;
      bottom: 14px;
      right: 14px;
      background: rgba(6, 10, 16, 0.85);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border-green);
      color: var(--primary-green-glow);
      padding: 4px 12px;
      border-radius: var(--radius-full);
      font-size: 0.78rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .instructor-name {
      font-size: clamp(1.8rem, 3.2vw, 2.4rem);
      font-weight: 900;
      color: var(--text-white);
      margin-bottom: 8px;
    }

    .instructor-role {
      font-size: 1.1rem;
      color: var(--primary-green-glow);
      font-weight: 700;
      margin-bottom: 20px;
    }

    .instructor-bio {
      font-size: 1.05rem;
      color: var(--text-light);
      line-height: 1.95;
      margin-bottom: 18px;
    }

    .instructor-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .instructor-badge-item {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      padding: 6px 16px;
      font-size: 0.85rem;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* ===== PRICING & COUNTDOWN ===== */
    .section-pricing {
      padding: 100px 0;
      background-color: var(--bg-darkest);
      border-bottom: 1px solid var(--border-subtle);
    }

    .countdown-card {
      background: var(--bg-card);
      border: 1px solid var(--border-green);
      border-radius: var(--radius-lg);
      padding: 24px 30px;
      max-width: 680px;
      margin: 0 auto 40px;
      text-align: center;
      box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
    }

    .countdown-title {
      font-size: 0.95rem;
      color: var(--text-muted);
      margin-bottom: 14px;
      font-weight: 600;
    }

    .countdown-timer-row {
      display: flex;
      justify-content: center;
      gap: 14px;
      direction: ltr;
    }

    .countdown-segment {
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 10px 16px;
      min-width: 75px;
    }

    .countdown-val {
      font-size: 1.9rem;
      font-weight: 900;
      color: var(--primary-green-glow);
      line-height: 1.1;
      font-variant-numeric: tabular-nums;
    }

    .countdown-txt {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 4px;
      direction: rtl;
    }

    /* ===== VALUE STACK (what you actually get) ===== */
    .value-stack-card {
      max-width: 880px;
      margin: 0 auto 32px;
      background: linear-gradient(135deg, #0e1724 0%, #0a1410 100%);
      border: 1px solid var(--border-green);
      border-radius: var(--radius-xl);
      padding: 34px 32px;
      box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.12);
    }

    .value-stack-head {
      text-align: center;
      margin-bottom: 22px;
    }

    .value-stack-badge {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--primary-green-glow);
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid var(--border-green);
      padding: 4px 14px;
      border-radius: var(--radius-full);
      margin-bottom: 10px;
    }

    .value-stack-title {
      font-size: clamp(1.25rem, 2.2vw, 1.6rem);
      font-weight: 900;
      color: var(--text-white);
    }

    .value-rows {
      list-style: none;
      display: flex;
      flex-direction: column;
    }

    .value-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 15px 0;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
    }

    .value-row-label {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 0.98rem;
      color: var(--text-light);
    }

    .value-row-amount {
      flex-shrink: 0;
      white-space: nowrap;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-white);
    }

    .value-row-amount small,
    .value-total-amount small {
      margin-right: 3px;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-dim);
    }

    .value-gift-tag {
      font-size: 0.68rem;
      font-weight: 900;
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.14);
      border: 1px solid rgba(251, 191, 36, 0.4);
      padding: 2px 9px;
      border-radius: var(--radius-full);
    }

    .value-row.is-gift .value-row-amount {
      color: var(--accent-gold);
    }

    .value-total {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: 20px;
      padding: 18px 22px;
      border-radius: var(--radius-md);
      background: rgba(0, 255, 157, 0.07);
      border: 1px solid var(--border-green);
    }

    .value-total-label {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-white);
    }

    .value-total-amount {
      white-space: nowrap;
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 900;
      color: var(--primary-green-glow);
      text-shadow: 0 0 22px rgba(0, 255, 157, 0.4);
    }

    /* ===== VALUE TEASER — زیر «ارزش کل» تا کاربر از دیدن عدد شوک نشود ===== */
    .value-teaser {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-top: 22px;
      padding: 20px 22px;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(251, 191, 36, 0.07) 100%);
      border: 1px solid var(--border-green);
      box-shadow: 0 0 26px rgba(16, 185, 129, 0.14);
    }

    .value-teaser-icon {
      flex-shrink: 0;
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.14);
      border: 1px solid rgba(251, 191, 36, 0.42);
    }

    .value-teaser-body {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .value-teaser-tag {
      align-self: flex-start;
      font-size: 0.7rem;
      font-weight: 900;
      color: #03140d;
      background: linear-gradient(135deg, #10b981, #00ff9d);
      padding: 3px 11px;
      border-radius: var(--radius-full);
    }

    .value-teaser-body strong {
      font-size: 1rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.6;
    }

    .value-teaser-body p {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .value-teaser-body p strong {
      font-size: inherit;
      color: var(--primary-green-glow);
    }

    .value-teaser-btn {
      flex-shrink: 0;
      white-space: nowrap;
      gap: 8px;
    }

    @media (max-width: 768px) {
      .value-teaser {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
      }
      .value-teaser-icon {
        align-self: flex-start;
      }
      .value-teaser-btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* ===== TIER CARD DETAILS ===== */
    .tier-status {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 900;
      padding: 3px 11px;
      border-radius: var(--radius-full);
    }

    .tier-status-done {
      color: #f87171;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.35);
    }

    .tier-status-live {
      color: #03140d;
      background: linear-gradient(135deg, #10b981, #00ff9d);
      box-shadow: 0 0 16px rgba(0, 255, 157, 0.45);
    }

    .tier-status-wait {
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
    }

    .tier-name {
      margin-top: 12px;
      font-size: 1.2rem;
      font-weight: 900;
      color: var(--text-white);
    }

    .tier-range {
      margin-top: 3px;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-light);
    }

    .tier-range-alert {
      color: var(--primary-green-glow);
    }

    .tier-deadline {
      margin-top: 6px;
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    .tier-discount {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin: 10px 0 0;
    }

    .tier-discount-pct {
      white-space: nowrap;
      font-size: 0.8rem;
      font-weight: 900;
      color: #03140d;
      background: linear-gradient(135deg, #10b981, #00ff9d);
      padding: 3px 11px;
      border-radius: var(--radius-full);
    }

    .tier-discount.is-done .tier-discount-pct {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text-muted);
    }

    .tier-discount-save {
      font-size: 0.76rem;
      color: var(--text-muted);
    }

    .tier-bullet-item.is-gift {
      color: var(--accent-gold);
      font-weight: 700;
    }

    .pricing-footnote {
      max-width: 760px;
      margin: 32px auto 0;
      text-align: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.85;
    }

    /* Tiers 4-Column Grid */
    .pricing-tiers-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 768px) {
      .pricing-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1100px) {
      .pricing-tiers-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .tier-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 30px 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      transition: all 0.3s ease;
    }

    .tier-card.tier-completed {
      opacity: 0.65;
      background: rgba(12, 16, 21, 0.5);
      border-style: dashed;
    }

    .tier-card.tier-active {
      border: 2px solid var(--primary-green);
      background: linear-gradient(180deg, #121e2b 0%, #0d1620 100%);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.35);
      z-index: 2;
    }

    /* The scale() "pop" only works when the tiers sit side by side;
       in the 1- and 2-column layouts it would push the card out of the viewport. */
    @media (min-width: 1100px) {
      .tier-card.tier-active {
        transform: scale(1.03);
      }
    }

    .tier-floating-badge {
      position: absolute;
      top: -14px;
      right: 50%;
      transform: translateX(50%);
      background: linear-gradient(135deg, #10b981, #00ff9d);
      color: #03140d;
      padding: 4px 18px;
      border-radius: var(--radius-full);
      font-size: 0.8rem;
      font-weight: 900;
      box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
      white-space: nowrap;
    }

    .tier-price-row {
      margin: 18px 0 20px;
      padding: 16px 0;
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
    }

    /* "full value, struck through" line — the tiers sell a DISCOUNT, not a price */
    .tier-value-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 4px 10px;
      margin-bottom: 8px;
    }

    .tier-value-label {
      font-size: 0.75rem;
      color: var(--text-dim);
    }

    .tier-value-original {
      white-space: nowrap;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-dim);
      text-decoration: line-through;
      text-decoration-color: rgba(248, 113, 113, 0.85);
      text-decoration-thickness: 2px;
    }

    .tier-pay-line {
      display: flex;
      align-items: baseline;
      gap: 5px;
    }

    .tier-amount {
      font-size: 2.1rem;
      font-weight: 900;
      color: var(--text-white);
    }

    .tier-active .tier-amount {
      color: var(--primary-green-glow);
    }

    .tier-currency {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-right: 4px;
    }

    .tier-bullets {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 24px;
      font-size: 0.9rem;
    }

    .tier-bullet-item {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .tier-bullet-item svg {
      color: var(--primary-green);
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    /* ===== FAQ ACCORDION ===== */
    .section-faq {
      padding: 100px 0;
      background-color: var(--bg-darker);
      border-bottom: 1px solid var(--border-subtle);
    }

    .faq-stack {
      max-width: 820px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .faq-row {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: border-color 0.25s ease;
    }

    .faq-row.open {
      border-color: var(--border-green);
    }

    .faq-trigger {
      width: 100%;
      padding: 22px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: transparent;
      border: none;
      color: var(--text-white);
      font-size: 1.05rem;
      font-weight: 800;
      cursor: pointer;
      text-align: right;
      font-family: inherit;
    }

    .faq-icon-rotator {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-green-glow);
      flex-shrink: 0;
      transition: transform 0.3s ease, background 0.3s ease;
    }

    .faq-row.open .faq-icon-rotator {
      transform: rotate(45deg);
      background: var(--primary-green-dim);
      border-color: var(--primary-green);
    }

    .faq-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-body-inner {
      padding: 0 24px 24px;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.85;
      border-top: 1px solid rgba(255, 255, 255, 0.04);
      padding-top: 16px;
    }

    /* ===== INSTRUCTOR CV (collapsed by default) ===== */
    .section-cv {
      padding: 100px 0;
      background-color: var(--bg-darkest);
      border-bottom: 1px solid var(--border-subtle);
    }

    .cv-body {
      position: relative;
      max-height: 520px;
      overflow: hidden;
      transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* gradient veil over the clipped bottom edge — disappears when expanded */
    .cv-body::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 210px;
      pointer-events: none;
      background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 12, 0.78) 48%, var(--bg-darkest) 100%);
      transition: opacity 0.4s ease;
    }

    .cv-body.is-expanded::after {
      opacity: 0;
    }

    .cv-subhead {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 0 0 24px;
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--text-white);
    }

    .cv-subhead::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--border-green), transparent);
    }

    .portfolio-grid + .cv-subhead {
      margin-top: 54px;
    }

    /* --- portfolio --- */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 22px;
    }

    @media (min-width: 640px) {
      .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1100px) {
      .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
      }
    }

    .portfolio-card {
      display: flex;
      flex-direction: column;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .portfolio-card:hover {
      border-color: var(--border-green);
      transform: translateY(-4px);
      box-shadow: var(--shadow-3d-hover);
    }

    .portfolio-media {
      position: relative;
      aspect-ratio: 16 / 10;
      background: #0a1017;
      overflow: hidden;
      border-bottom: 1px solid var(--border-subtle);
    }

    .portfolio-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .portfolio-card:hover .portfolio-media img {
      transform: scale(1.05);
    }

    .portfolio-tag {
      position: absolute;
      right: 12px;
      bottom: 12px;
      font-size: 0.7rem;
      font-weight: 800;
      color: var(--primary-green-glow);
      background: rgba(6, 10, 16, 0.85);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border-green);
      padding: 3px 10px;
      border-radius: var(--radius-full);
    }

    /* card with no artwork */
    .portfolio-card.is-textonly .portfolio-media {
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.14) 0%, #0a1218 70%);
    }

    .portfolio-icon {
      color: var(--primary-green);
      opacity: 0.85;
    }

    .portfolio-icon svg {
      width: 62px;
      height: 62px;
    }

    .portfolio-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 20px 20px 18px;
    }

    .portfolio-body h4 {
      margin-bottom: 8px;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.55;
    }

    .portfolio-body p {
      margin-bottom: 16px;
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .portfolio-actions {
      margin-top: auto;
    }

    .portfolio-dl {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.85rem;
      font-weight: 800;
      color: var(--primary-green-glow);
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid var(--border-green);
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      transition: all 0.25s ease;
    }

    .portfolio-dl::after {
      content: "↓";
      font-size: 1rem;
      line-height: 1;
    }

    .portfolio-dl:hover {
      background: rgba(16, 185, 129, 0.18);
      box-shadow: 0 0 18px rgba(0, 255, 157, 0.3);
    }

    /* --- certificates --- */
    .cert-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 992px) {
      .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
      }
    }

    .cert-card {
      display: flex;
      gap: 16px;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 24px 22px;
      transition: border-color 0.3s ease, transform 0.3s ease;
    }

    .cert-card:hover {
      border-color: var(--border-green);
      transform: translateY(-3px);
    }

    .cert-icon {
      flex-shrink: 0;
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-surface);
      border: 1px solid var(--border-card);
    }

    .cert-icon svg {
      width: 26px;
      height: 26px;
    }

    .cert-icon-vray {
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.12);
      border-color: rgba(251, 191, 36, 0.45);
    }

    .cert-icon-award {
      color: #38bdf8;
      background: rgba(6, 182, 212, 0.12);
      border-color: rgba(6, 182, 212, 0.45);
    }

    .cert-icon-teach {
      color: var(--primary-green-glow);
      background: rgba(16, 185, 129, 0.12);
      border-color: var(--border-green);
    }

    .cert-main {
      min-width: 0;
    }

    .cert-badge {
      display: inline-block;
      margin-bottom: 9px;
      font-size: 0.68rem;
      font-weight: 900;
      color: var(--accent-gold);
      background: rgba(251, 191, 36, 0.14);
      border: 1px solid rgba(251, 191, 36, 0.4);
      padding: 2px 9px;
      border-radius: var(--radius-full);
    }

    .cert-main h4 {
      margin-bottom: 5px;
      font-size: 1.02rem;
      font-weight: 800;
      color: var(--text-white);
      line-height: 1.55;
    }

    .cert-issuer {
      margin-bottom: 10px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--primary-green-glow);
    }

    .cert-main p {
      margin-bottom: 12px;
      font-size: 0.87rem;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .cert-main p.cert-note {
      margin-bottom: 12px;
      font-size: 0.8rem;
      color: var(--accent-gold);
    }

    .cert-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.83rem;
      font-weight: 800;
      color: var(--primary-green-glow);
      border-bottom: 1px solid var(--border-green);
      padding-bottom: 2px;
      transition: color 0.2s ease;
    }

    .cert-link:hover {
      color: var(--text-white);
    }

    /* --- expand / collapse control --- */
    .cv-toggle-wrap {
      display: flex;
      justify-content: center;
      margin-top: 28px;
    }

    .cv-toggle {
      gap: 9px;
    }

    .cv-toggle-chevron {
      transition: transform 0.3s ease;
    }

    .cv-toggle[aria-expanded="true"] .cv-toggle-chevron {
      transform: rotate(180deg);
    }

    /* ===== FINAL CTA ===== */
    .section-final-cta {
      padding: 110px 0;
      background: linear-gradient(180deg, var(--bg-darkest) 0%, #080d14 100%);
      position: relative;
    }

    .final-cta-box {
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-green);
      padding: 60px 32px;
      text-align: center;
      /* cta-bg.jpg has a bright ring dead-centre, so the overlay is strong
         enough to keep the headline readable straight over it */
      background-image:
        linear-gradient(180deg, rgba(6, 8, 12, 0.9) 0%, rgba(6, 8, 12, 0.82) 45%, rgba(6, 8, 12, 0.95) 100%),
        radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.18) 0%, transparent 62%),
        url('../images/cta-bg.webp');
      background-size: 100% 100%, 100% 100%, cover;
      background-position: center, center, center;
      background-repeat: no-repeat;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.2);
      overflow: hidden;
    }

    /* ===== FOOTER ===== */
    .footer {
      padding: 40px 0 100px;
      background: #040608;
      border-top: 1px solid var(--border-subtle);
      font-size: 0.88rem;
      color: var(--text-dim);
      text-align: center;
    }

    @media (min-width: 768px) {
      .footer {
        padding: 40px 0;
      }
    }

    /* ===== MOBILE STICKY BAR ===== */
    .sticky-mobile-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 110;
      background: rgba(8, 12, 17, 0.95);
      backdrop-filter: blur(16px);
      border-top: 1px solid var(--border-green);
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    }

    @media (min-width: 768px) {
      .sticky-mobile-bar {
        display: none;
      }
    }

    .sticky-bar-gift {
      display: flex;
      flex-direction: column;
      gap: 1px;
      min-width: 0;
    }

    .sticky-bar-gift-title {
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--accent-gold);
      line-height: 1.5;
    }

    .sticky-bar-gift-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* ===== VIDEO MODAL LIGHTBOX ===== */
    .video-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.88);
      backdrop-filter: blur(16px);
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .video-modal-backdrop.active {
      display: flex;
    }

    .video-modal-container {
      width: 100%;
      /* Keeps the 9:16 ratio while never growing taller than the viewport —
         `min()` shrinks the width as the screen gets shorter. */
      max-width: min(380px, calc((100vh - 40px) * 9 / 16));
      aspect-ratio: 9 / 16;
      background: #000;
      border: 2px solid var(--border-green-bright);
      border-radius: 28px;
      overflow: hidden;
      position: relative;
      box-shadow: 0 0 50px rgba(0, 255, 157, 0.4);
    }

    .video-modal-container video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-modal-close {
      position: absolute;
      top: 14px;
      left: 14px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.7);
      border: 1px solid var(--border-subtle);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      transition: background 0.2s ease;
    }

    .video-modal-close:hover {
      background: rgba(239, 68, 68, 0.8);
    }

    /* ============================================================
       RESPONSIVE LAYER — phones & small tablets
       The desktop rules above assume wide cards; these scale the
       paddings/typography down and stop the few fixed widths
       (countdown segments, tier scale, nav CTA) from forcing the
       page wider than the viewport.
       ============================================================ */
    @media (max-width: 640px) {
      .container {
        padding: 0 16px;
      }

      /* --- Navbar --- */
      .navbar {
        padding: 10px 0;
      }
      .nav-inner {
        gap: 10px;
      }
      .nav-brand {
        gap: 9px;
        min-width: 0;
      }
      .nav-avatar-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
      }
      .nav-brand-title {
        font-size: 0.88rem;
      }
      .nav-brand-sub {
        font-size: 0.68rem;
      }
      .nav-actions {
        flex-shrink: 0;
      }

      /* --- Vertical rhythm --- */
      .hero-section {
        padding: 40px 0 56px;
      }
      .section-case-stories,
      .section-videos,
      .section-syllabus,
      .section-autosubtitle-gift,
      .section-instructor,
      .section-pricing,
      .section-faq {
        padding: 56px 0;
      }
      .section-final-cta {
        padding: 64px 0;
      }

      /* --- Badges & intro copy --- */
      .section-badge {
        max-width: 100%;
        padding: 6px 14px;
        font-size: 0.8rem;
        line-height: 1.6;
      }
      .section-desc {
        font-size: 1rem;
        margin-bottom: 28px;
      }

      /* --- Buttons (order matters: the compact ones must come last) --- */
      .btn {
        padding: 13px 20px;
        font-size: 0.95rem;
      }
      .btn-lg {
        padding: 15px 22px;
        font-size: 1rem;
      }
      .nav-cta-btn {
        padding: 8px 13px;
        font-size: 0.78rem;
      }
      .sticky-bar-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
      }

      /* --- Cards: shrink the desktop-scale padding --- */
      .case-card {
        padding: 26px 20px;
      }
      .pillar-header {
        padding: 22px 18px;
      }
      .syll-card {
        padding: 18px 16px;
        gap: 12px;
      }
      .gift-body {
        padding: 22px 20px 20px;
      }
      .section-cv {
        padding: 56px 0;
      }
      .cv-body {
        max-height: 420px;
      }
      .cv-body::after {
        height: 170px;
      }
      .portfolio-body {
        padding: 18px 16px 16px;
      }
      .cert-card {
        padding: 20px 18px;
      }
      .cv-toggle {
        width: 100%;
      }
      .instructor-box {
        padding: 26px 18px;
        gap: 26px;
      }
      .license-token-card {
        padding: 26px 18px;
      }
      .live-demo-banner {
        padding: 24px 18px;
      }
      .value-stack-card {
        padding: 24px 18px;
      }
      .value-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
      }
      .value-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px;
      }
      .final-cta-box {
        padding: 38px 20px;
      }
      .faq-trigger {
        padding: 18px 16px;
        font-size: 1rem;
      }
      .faq-body-inner {
        padding: 14px 16px 18px;
      }
      .tier-card {
        padding: 26px 20px;
      }
      .tier-floating-badge {
        font-size: 0.72rem;
        padding: 4px 14px;
      }
      .hero-phone-frame {
        max-width: 290px;
      }
      .hero-headline {
        font-size: 1.85rem;
      }
      .hero-subheadline {
        font-size: 1.05rem;
      }

      /* --- Countdown: 4 x min-width:75px + gaps needed ~400px --- */
      .countdown-card {
        padding: 20px 14px;
      }
      .countdown-timer-row {
        gap: 8px;
      }
      .countdown-segment {
        min-width: 0;
        flex: 1 1 0;
        padding: 8px 6px;
      }
      .countdown-val {
        font-size: 1.55rem;
      }
      .countdown-txt {
        font-size: 0.7rem;
      }

    }

    /* Extra-narrow phones (iPhone SE, 360px Androids) */
    @media (max-width: 400px) {
      .nav-brand-title {
        font-size: 0.8rem;
      }
      .nav-brand-sub {
        display: none;
      }
      .sticky-mobile-bar {
        padding: 10px 14px;
        gap: 10px;
      }
      .sticky-bar-gift-title {
        font-size: 0.75rem;
      }
      .sticky-bar-gift-sub {
        font-size: 0.65rem;
      }
      .sticky-bar-btn {
        padding: 9px 13px;
        font-size: 0.82rem;
      }
      .countdown-val {
        font-size: 1.35rem;
      }
      .tier-floating-badge {
        font-size: 0.68rem;
        padding: 4px 11px;
      }
    }