/* ============================================================
   GLOBAL
   ============================================================ */
:root {
  --navy: navy;
  --navy-soft: #132553;
  --primary: #2f6fff;
  --primary-hover: #1e55d6;
  --accent: #00d1b2;
  --text: #1a1f2e;
  --muted: #6b7688;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e3e8ef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 26, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 63, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR — fixed
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 2000px;        /* was 1200px — 33% wider */
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.nav-brand {
  flex-shrink: 0;           /* don't let the logo shrink */
  white-space: nowrap;
}

/* .nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
} */
.nav-brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;                 /* was 4px — tighter */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;        /* prevent wrapping to a second line */
}

.nav-links > li {
  white-space: nowrap;      /* each link stays on one line */
}

.nav-links a {
  display: block;
  padding: 8px 10px;        /* was 8px 14px — tighter horizontal */
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;        /* was 0.95rem — slightly smaller */
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(47, 111, 255, 0.08);
}

/* Shrink further between 992–1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 0.85rem; }
  .nav-auth-toggle { padding: 6px 10px !important; font-size: 0.85rem; }
  .nav-cta .btn { padding: 6px 12px; font-size: 0.85rem; }
}

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    gap: 2px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { margin: 8px 0 0; }
}

/* Main offset for fixed nav */
main { padding-top: var(--nav-height); }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 10;
}
.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px; }
  .hero-visual { order: -1; }
}

/* ============================================================
   CAROUSELS (apps + partners)
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.carousel-track {
  display: flex;
  gap: 20px;
  animation: slide-left 40s linear infinite;
  width: max-content;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
@keyframes slide-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.app-card {
  flex: 0 0 auto;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.app-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
}
.app-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.app-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.partner-logo {
  flex: 0 0 auto;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
.partner-logo img { max-height: 40px; object-fit: contain; }

/* ============================================================
   TESTIMONIALS — smooth fading
   ============================================================ */
.testimonials {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
  text-align: center;
}
.testimonials .section-title { color: var(--white); }

.testimonial-stage {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  pointer-events: none;
  padding: 0 24px;
}
.testimonial.active { opacity: 1; pointer-events: auto; }
.testimonial blockquote {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 800px;
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.9;
}
.testimonial cite strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.testimonial-dots button.active { background: var(--accent); transform: scale(1.3); }

/* ============================================================
   FAQ — smooth fading with progress bar
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { background: rgba(47, 111, 255, 0.04); }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, opacity 400ms ease, padding 400ms ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 24px 20px;
}

.faq-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.faq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  transition: width 300ms ease;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.card-image {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(47, 111, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 600; font-size: 0.95rem; margin-top: auto; }

/* ============================================================
   LAYOUT WITH SIDEBAR
   ============================================================ */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 991px) { .layout-2col { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* AdSense placeholder */
.ad-slot {
  background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 10px, #f0f4f9 10px, #f0f4f9 20px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.article-mini {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.article-mini:last-child { border-bottom: none; }
.article-mini-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.article-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-mini h5 { margin: 0 0 4px; font-size: 0.9rem; color: var(--navy); line-height: 1.35; }
.article-mini span { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  margin-top: 88px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   BACK-TO-TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.page-header p { max-width: 640px; margin: 0 auto; opacity: 0.85; font-size: 1.05rem; }

/* ============================================================
   PROSE (article/tutorial detail)
   ============================================================ */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--navy); }
.prose h3 { font-size: 1.25rem; margin: 32px 0 12px; color: var(--navy); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--white);
  color: var(--muted);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  background: #f1f4f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--navy);
}
.prose pre {
  background: var(--navy);
  color: #e6edf3;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0 0 20px;
}

/* ============================================================
   FORMS (contact page)
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.15); }
textarea.form-control { resize: vertical; min-height: 140px; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.ticket-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
  .ticket-modal.open { display: block; }
  .ticket-modal-backdrop {
    position: absolute; inset: 0; background: rgba(10, 26, 63, 0.5);
    backdrop-filter: blur(4px);
  }
  .ticket-modal-panel {
    position: relative; margin: 5vh auto; max-width: 640px;
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh; display: flex; flex-direction: column;
  }
  .ticket-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #e3e8ef;
  }
  .ticket-modal-header h3 { margin: 0; color: #0a1a3f; font-size: 1.15rem; }
  .ticket-modal-close {
    background: none; border: none; font-size: 1.75rem; line-height: 1;
    cursor: pointer; color: #6b7688;
  }
  .ticket-modal-body { padding: 20px; overflow-y: auto; }


  /* Partner CTA in nav */
.nav-partner-link { margin-left: 4px; }

.nav-partner-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-partner-cta:hover {
  background: var(--accent);
  color: var(--navy);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .nav-partner-cta { padding: 6px 10px; font-size: 0.82rem; }
}

@media (max-width: 991px) {
  .nav-partner-link { width: 100%; margin: 8px 0 0; }
  .nav-partner-cta { display: flex; width: 100%; justify-content: center; }
}


/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */
.password-wrapper {
  position: relative;
  display: block;
}

.password-wrapper .form-control {
  padding-right: 44px;   /* leave room for the eye icon */
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}

.password-toggle:hover {
  color: var(--primary);
  background: rgba(47, 111, 255, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.password-toggle .mdi {
  pointer-events: none;
}