/* ========== JIBAN STUDIO GLOBAL STYLE SYSTEM ========== */

:root {
  --bg: #0a0a0a;
  --card-bg: #141414;
  --card-border: #222;
  --text-main: #e5e5e5;
  --text-muted: #a8a8a8;
  --brand: #10b981;
  --accent-exit: #ef4444;
  --accent-entry: #3b82f6;
  --accent-power: #d4af37;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* VISUAL UPGRADE: Cinematic Grain & Vignette */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

/* VISUAL UPGRADE: Subtle Vignette */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========== HEADER & NAV ========== */
header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1000;
  transition: all 0.4s var(--ease);
}

header.scrolled {
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#share-btn:hover {
  color: var(--brand);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  display: none;
}

.nav-link:hover {
  color: #fff;
}

.nav-btn {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid #3a3a3a;
  padding: 6px 16px;
  border-radius: 100px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.nav-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.nav-btn::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }

  .nav-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-link {
    display: inline-flex;
    font-size: 13px;
  }

  .nav-btn {
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .nav-link {
    display: block;
  }
}

/* ========== HERO SECTION (Shared) ========== */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px;
  z-index: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  filter: grayscale(100%) contrast(1.2);
}

.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 1;
  /* Updated for new anim system */
}

h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 56px;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.highlight {
  color: var(--brand);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--brand);
  opacity: 0.2;
  transform: skewX(-10deg);
}

.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* ========== CARDS & GRIDS ========== */
.grid-title {
  text-align: center;
  font-size: 12px;
  color: #8c8c8c;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 60px;
  position: relative;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
}

.grid-title::before {
  content: '///';
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  opacity: 0.5;
  font-size: 10px;
  letter-spacing: 2px;
}

.grid-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #333;
  margin: 10px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 100px;
  opacity: 1;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
  border-color: #555;
}

.card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.8);
  transition: all 0.6s var(--ease);
}

.card:hover .card-image img {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.05);
}

.module-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  z-index: 2;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: #b8b8b8;
  margin: 0 0 24px;
  flex-grow: 1;
  line-height: 1.7;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 13px;
  color: #d0d0d0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.card ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.card ul li::before {
  content: '•';
  margin-right: 10px;
  color: #7a7a7a;
  font-weight: bold;
}

.card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Module colors */
.module-a .module-tag {
  border-color: var(--accent-exit);
  color: var(--accent-exit);
}

.module-a .card-link {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-exit);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent);
}

.module-a .card-link:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--accent-exit);
}

.module-a.card:hover {
  border-color: var(--accent-exit);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3), 0 10px 40px -10px rgba(239, 68, 68, 0.4);
}

.module-b .module-tag {
  border-color: var(--accent-entry);
  color: var(--accent-entry);
}

.module-b .card-link {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-entry);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
}

.module-b .card-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-entry);
}

.module-b.card:hover {
  border-color: var(--accent-entry);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3), 0 10px 40px -10px rgba(59, 130, 246, 0.4);
}

.module-c .module-tag {
  border-color: var(--accent-power);
  color: var(--accent-power);
}

.module-c .card-link {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--accent-power);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.05), transparent);
}

.module-c .card-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-power);
}

.module-c.card:hover {
  border-color: var(--accent-power);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), 0 10px 40px -10px rgba(212, 175, 55, 0.4);
}

/* ========== CHART CONTAINER & SCANNER ========== */
.chart-container {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: 1px solid #222;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand), 0 0 12px var(--brand);
  opacity: 0.22;
  animation: scanMove 8s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scanMove {

  0%,
  100% {
    top: 10%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  50% {
    top: 90%;
  }
}

/* ========== FOUNDER DOSSIER ========== */
.dossier-card {
  background: linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 24px 56px -32px rgba(0, 0, 0, 0.9);
}

.dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.45;
}

.dossier-content {
  padding: 46px 42px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.02) 20px);
}

.dossier-header {
  border-bottom: 1px solid #2f2f2f;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 24px;
  padding-bottom: 14px;
  align-items: flex-start;
  gap: 8px;
}

.dossier-kicker {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #7f7f7f;
  text-transform: uppercase;
}

.dossier-title {
  font-family: "Noto Serif SC", serif;
  font-size: 27px;
  letter-spacing: 0.5px;
  color: #f2f2f2;
}

.founder-quote {
  font-size: 22px;
  font-weight: 400;
  color: #f3f3f3;
  margin: 0 0 18px;
  line-height: 1.7;
  border-left: 3px solid var(--brand);
  padding-left: 18px;
  font-family: "Noto Serif SC", serif;
}

.dossier-brief {
  margin: 0 0 28px;
  color: #b7b7b7;
  font-size: 15px;
  line-height: 1.9;
}

.dossier-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-family: "Noto Sans SC", sans-serif;
  border-top: 1px solid #2a2a2a;
  padding-top: 22px;
}

.dossier-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 14px 12px;
}

.dossier-item-label {
  display: block;
  font-size: 12px;
  color: #919191;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.dossier-item-value {
  display: block;
  font-size: 15px;
  color: #ececec;
  font-weight: 500;
  line-height: 1.5;
}

/* ========== ACTION DECK ========== */
.action-deck {
  margin: 80px auto;
  max-width: 600px;
  padding: 40px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-primary {
  justify-content: center;
  padding: 14px 0;
  background: var(--brand);
  border-color: var(--brand) !important;
  color: #002116 !important;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #059669;
  /* Slightly darker/richer brand color */
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  justify-content: center;
  padding: 14px 0;
  border-color: #fff !important;
  background: #fff;
  color: #000 !important;
  font-weight: bold;
}

.btn-secondary:hover {
  background: #e5e5e5;
  border-color: #ccc !important;
  color: #000 !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .action-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .wrap {
    padding: 0 18px;
  }

  .hero {
    padding: 88px 0 64px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.15;
  }

  .sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .grid-title {
    margin-bottom: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 64px;
  }

  .chart-container {
    margin-top: 36px;
    padding: 36px 20px;
    background-size: 28px 28px;
  }

  .action-deck {
    margin: 56px auto;
    padding: 28px 20px;
  }

  .founder-section {
    padding: 56px 0 !important;
  }

  .dossier-content {
    padding: 28px 20px;
  }

  .dossier-title {
    font-size: 23px;
  }

  .founder-quote {
    font-size: 17px;
    margin-bottom: 14px;
    padding-left: 14px;
  }

  .dossier-brief {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .dossier-data {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  footer {
    padding: 28px 0;
    margin-top: 24px;
  }
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px 0;
  color: #666;
  font-size: 12px;
  border-top: 1px solid #111;
  margin-top: 40px;
}

/* ========== ANIMATION UTILITIES ========== */
.mask-reveal-wrapper {
  overflow: hidden;
  display: block;
  line-height: 1.2;
}

.mask-reveal-text {
  display: block;
  transform: none;
  opacity: 1;
}

.motion-ready .mask-reveal-text {
  transform: translateY(110%) rotateX(-20deg);
  opacity: 0;
  transform-origin: top center;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
  will-change: transform, opacity;
}

.motion-ready .is-visible .mask-reveal-text {
  transform: translateY(0) rotateX(0);
  opacity: 1;
}

.fade-up-trigger {
  opacity: 1;
  transform: none;
}

.motion-ready .fade-up-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}

.motion-ready .is-visible.fade-up-trigger,
.motion-ready .is-visible .fade-up-trigger {
  opacity: 1;
  transform: translateY(0);
}

.stagger-group .fade-up-trigger:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-group .fade-up-trigger:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-group .fade-up-trigger:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-group .fade-up-trigger:nth-child(4) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {

  .motion-ready .mask-reveal-text,
  .motion-ready .fade-up-trigger {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .scanner-line {
    animation: none !important;
    opacity: 0 !important;
  }

  .card:hover,
  .btn-secondary:hover {
    transform: none !important;
  }
}

/* ========== DOCUMENT / PRIVACY PAGE SPECIFICS ========== */
.doc-header h1 {
  font-family: "Noto Serif SC", serif;
  color: #fff;
  font-size: 32px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.doc-content h2 {
  font-family: "Noto Serif SC", serif;
  color: #fff;
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.doc-content p {
  margin-bottom: 16px;
  text-align: justify;
  color: #ccc;
}

.brand-text {
  color: var(--brand);
  font-weight: bold;
}

.footer-note {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  color: #666;
  font-size: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #666;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
}


/* OPTIMIZATION: Disable heavy effects on Mobile */
@media (max-width: 768px) {

  /* Disable Grain and Vignette */
  body::before,
  body::after {
    display: none !important;
  }

  /* Disable Header Line scanning animation if present */
  .header-line,
  .scan-line,
  .scanner-line,
  /* Added scanner-line */
  *[class*="scan"] {
    animation: none !important;
    display: none !important;
  }

  /* Disable heavy SVG filters on mobile */
  .methodology img,
  .chart-container img {
    filter: none !important;
  }
}

/* Desktop-only: Add heavy filter back for larger screens */
@media (min-width: 769px) {
  .chart-svg {
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.05));
  }
}