/*
  Just Study App — Landing Page Styles
  Light mode redesign aligned with brand guidelines
*/


:root {
  /* Brand teal scale */
  --brand-50:  #F0FDFC;
  --brand-100: #CCFBF7;
  --brand-200: #99FBEE;
  --brand-300: #5EEADE;
  --brand-400: #2DD4C5;
  --brand-500: #14BBA9;
  --brand-600: #0D9488; /* primary */
  --brand-700: #0F766D;
  --brand-800: #115E57;
  --brand-900: #134E49;
  --brand-950: #042F2B;

  /* Theme tokens */
  --bg: var(--brand-50);
  --panel: #ffffff;
  --text: var(--brand-900);
  --muted: var(--brand-700);
  --border: color-mix(in oklab, var(--brand-200) 70%, #ffffff 30%);
  --outline: 2px solid color-mix(in oklab, var(--brand-500) 65%, #000 0%);
  --radius: 16px;
  --shadow: 0 8px 24px rgba(17, 94, 87, 0.12);
  --font-primary: 'KalamehFaNum', 'IRANSansXFaNum', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  --font-secondary: 'IRANSansXFaNum', 'KalamehFaNum', ui-sans-serif, system-ui;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-secondary);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--brand-100) 60%, transparent 40%), transparent),
    radial-gradient(900px 600px at 100% 0%, color-mix(in oklab, var(--brand-100) 70%, transparent 30%), transparent),
    var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
}
.skip-link:focus { inset-inline-start: 0; background: var(--brand-400); color: #00122a; padding: 8px 12px; border-radius: 6px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in oklab, #ffffff 72%, var(--brand-50) 28%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled { 
  box-shadow: 0 4px 18px rgba(17, 94, 87, .08);
  backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in oklab, #ffffff 85%, var(--brand-50) 15%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand img { display: block; height: auto; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav ul { list-style: none; display: none; gap: 16px; padding: 0; margin: 0; }
.nav a { color: var(--brand-800); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand-900); }

.nav-toggle { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  background: transparent; 
  border: 1px solid var(--border); 
  color: var(--brand-800); 
  border-radius: 10px; 
  padding: 8px; 
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-toggle:focus { outline: var(--outline); }
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--brand-300);
}
.nav-toggle:hover .hamburger span {
  background: var(--brand-600);
}

/* Hamburger Menu Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-800);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
  width: 100%;
}

.hamburger span:nth-child(2) {
  width: 80%;
  align-self: flex-end;
}

.hamburger span:nth-child(3) {
  width: 60%;
  align-self: flex-end;
}

/* Hamburger animation when nav is open */
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 100%;
}

@media (min-width: 880px) {
  .nav ul { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav behavior */
@media (max-width: 879px) {
  .nav { position: fixed; left: 4%; right: 4%; top: 68px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: none; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav ul { display: flex; flex-direction: column; gap: 10px; }
  .nav .btn { width: 100%; }
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  padding: 10px 16px; 
  border-radius: 12px; 
  text-decoration: none; 
  font-weight: 700; 
  border: 1px solid transparent; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  font-family: var(--font-primary); 
  line-height: 1.25;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus { outline: var(--outline); outline-offset: 2px; }

.btn-primary { 
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); 
  color: #fff; 
  box-shadow: 0 8px 25px rgba(13, 148, 136, .25);
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, .35);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost { 
  background: rgba(255, 255, 255, 0.6); 
  color: var(--brand-800); 
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 94, 87, .1);
}

.btn-light { 
  background: var(--brand-100); 
  color: var(--brand-900); 
  border-color: var(--brand-200); 
}
.btn-light:hover { 
  background: white; 
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 94, 87, .12);
}

.btn-lg { 
  padding: 14px 20px; 
  font-size: 1.05rem; 
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pill { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 10px 14px; 
  border-radius: 999px; 
  background: rgba(255, 255, 255, 0.7); 
  color: var(--brand-800); 
  border: 1px solid var(--brand-200); 
  font-weight: 500; 
  font-size: .9rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  justify-content: center;
}
.pill:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 94, 87, .1);
}
.pill .dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--brand-600);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Download Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 32px;
}

.download-buttons-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 24px;
}

.download-btn, .download-btn-small {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
}

.download-btn:hover, .download-btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(17, 94, 87, .15);
}

.download-btn img, .download-btn-small img {
  display: block;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn:hover img, .download-btn-small:hover img {
  transform: scale(1.02);
}

/* Hero download column specific styles */
.download-column .download-btn {
  width: 100%;
  max-width: 240px;
}

.download-column .download-btn img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.secondary-cta {
  margin-top: 16px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .download-buttons {
    justify-content: center;
    gap: 12px;
  }
  
  .download-buttons-compact {
    justify-content: center;
    gap: 8px;
  }
  
  .download-btn img {
    width: 180px;
    height: auto;
  }
  
  .download-btn-small img {
    width: 140px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .download-btn img {
    width: 220px;
    height: auto;
  }
  
  .download-btn-small img {
    width: 160px;
    height: auto;
  }
}

/* CTA band download buttons centered */
.cta-band .download-buttons {
  justify-content: center;
}

/* RTL adjustments for download buttons */
html[dir='rtl'] .download-buttons {
  direction: ltr; /* Keep button order consistent */
}
html[dir='rtl'] .download-buttons-compact {
  direction: ltr; /* Keep button order consistent */
}

/* Hero */
.hero { padding: 80px 0 80px; }
.hero-inner { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.hero-copy h1 { margin: 0 0 20px; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.3; letter-spacing: -0.02em; color: var(--brand-900); }
.hero-copy p { color: var(--brand-800); max-width: 60ch; font-family: var(--font-secondary); line-height: 1.6; margin-bottom: 32px; }
.hero-copy .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-copy .note { color: var(--brand-700); font-size: .95rem; margin-top: 20px; line-height: 1.5; }

/* Hero Actions Layout */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.download-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.exams-column {
  display: flex;
  justify-content: flex-start;
}

.exams-column .pills {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
  }
  
  .exams-column .pills {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: stretch;
    width: 100%;
    max-width: 280px;
  }
  
  .exams-column .pill {
    min-width: 200px;
    justify-self: stretch;
  }
  
  .download-column {
    min-width: 240px;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    gap: 72px;
  }
  
  .exams-column .pills {
    max-width: 320px;
  }
}

@media (max-width: 767px) {
  .hero-actions {
    gap: 0;
  }
  
  .download-column {
    align-items: center;
    width: 100%;
    gap: 20px;
  }
  
  .download-column .download-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .download-column .download-btn img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  
  /* Hide exam pills and note on mobile */
  .exams-column,
  .hero-copy .note {
    display: none;
  }
}

@media (max-width: 480px) {
  .download-column .download-btn {
    max-width: 300px;
  }
  
  .download-column .download-btn img {
    max-width: 300px;
  }
}

.hero-art { display: grid; place-items: center; perspective: 1000px; }
.phone-mock { 
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid var(--border); 
  width: min(320px, 70vw); 
  aspect-ratio: 9/19.5; 
  border-radius: 28px; 
  box-shadow: 0 20px 60px rgba(17, 94, 87, .15), 0 8px 25px rgba(17, 94, 87, .1); 
  padding: 8px; 
  display: grid; 
  place-items: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.phone-mock:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}
.phone-mock::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--brand-200), var(--brand-100), var(--brand-200));
  border-radius: 30px;
  z-index: -1;
  opacity: 0.5;
  animation: glow 3s ease-in-out infinite alternate;
}
.phone-mock img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 22px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-mock:hover img {
  transform: scale(1.02);
}

@keyframes glow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

@media (min-width: 880px) {
  .hero { padding: 96px 0 80px; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; }
}

/* Sections */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { margin: 0 0 12px; font-size: clamp(22px, 3.6vw, 34px); letter-spacing: -0.01em; line-height: 1.3; }
.section-header p { color: var(--muted); margin: 0 auto; max-width: 60ch; line-height: 1.6; }

.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.feature-card { 
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: 0 8px 32px rgba(17, 94, 87, .08); 
  font-family: var(--font-secondary);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
  transition: left 0.6s;
}
.feature-card:hover::before {
  left: 100%;
}
.feature-card:hover { 
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 94, 87, .15);
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
}
.feature-card h3 { 
  margin: 16px 0 12px; 
  font-size: 1.2rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.feature-card:hover h3 {
  color: var(--brand-600);
}
.feature-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.feature-card .icon { 
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}
.feature-card .icon img { width: 32px; height: 32px; }

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.why { padding: 80px 0; }
.split { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.checklist { margin: 16px 0 24px; padding-left: 18px; }
/* RTL adjustments */
html[dir='rtl'] .checklist { padding-left: 0; padding-right: 18px; }
.checklist li { margin: 8px 0; line-height: 1.5; }
.card.highlight { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 24px; color: var(--brand-800); box-shadow: var(--shadow); line-height: 1.5; }

@media (min-width: 880px) {
  .split { grid-template-columns: 1.2fr 1fr; }
}

.cta-band { 
  padding: 80px 0; 
  background: 
    radial-gradient(600px 300px at 30% 0%, color-mix(in oklab, var(--brand-300) 40%, transparent), transparent),
    radial-gradient(400px 200px at 70% 100%, color-mix(in oklab, var(--brand-200) 60%, transparent), transparent),
    linear-gradient(135deg, #ffffff 0%, var(--brand-50) 100%);
  border-top: 1px solid var(--brand-200); 
  border-bottom: 1px solid var(--brand-200);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
}
.cta-band-inner { 
  display: flex; 
  flex-direction: column; 
  gap: 32px; 
  align-items: center; 
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-band h2 { 
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq { padding: 80px 0 100px; }
.faq details { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; line-height: 1.4; }
.faq details p { line-height: 1.5; margin-top: 12px; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* Screenshots */
.screenshots { padding: 80px 0; }
.screenshots-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.shot { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; border-radius: 16px; display: block; }

/* Hide screenshots on mobile */
@media (max-width: 719px) {
  .screenshots { display: none; }
  .nav a[href="#screenshots"] { display: none; }
}

@media (min-width: 720px) {
  .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
}



/* Footer */
.site-footer { 
  border-top: 1px solid var(--brand-200); 
  padding: 40px 0 20px;
  background: linear-gradient(180deg, #ffffff, var(--brand-50)); 
}

.footer-content {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 24px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--brand-600);
  font-size: 14px;
  font-weight: 400;
}

.footer-socials h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-900);
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--brand-200);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, .15);
}

.social-links a img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(30%) saturate(1200%) hue-rotate(160deg) brightness(95%) contrast(95%);
  transition: filter 0.3s ease;
}

.social-links a:hover img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(50%) saturate(1500%) hue-rotate(160deg) brightness(90%) contrast(100%);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--brand-200);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: var(--brand-600);
}

.footer-nav a {
  color: var(--brand-700);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--brand-900);
}

@media (max-width: 719px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

.noscript { background: var(--brand-100); color: var(--brand-900); padding: 12px; text-align: center; }

/* Terms Page */
.terms-page {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--brand-50), #ffffff);
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--brand-900);
  margin: 0 0 12px;
  line-height: 1.2;
}

.page-header p {
  color: var(--brand-600);
  font-size: 16px;
  margin: 0;
}

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--brand-200);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.08);
}

.language-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-900);
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-200);
}

.language-section h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-800);
  margin: 32px 0 16px;
}

.language-section h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-700);
  margin: 24px 0 12px;
}

.language-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--brand-700);
  margin: 0 0 16px;
}

.language-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-200), transparent);
  margin: 40px 0;
}

.contact-info {
  margin-top: 40px;
  padding: 24px;
  background: rgba(240, 253, 252, 0.6);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--brand-200);
}

.contact-info h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-900);
  margin: 0 0 12px;
}

.contact-info p {
  font-size: 15px;
  color: var(--brand-700);
  margin: 0;
  line-height: 1.5;
}

.contact-info a {
  color: var(--brand-600);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--brand-800);
}

/* Document Sections */
.document-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--brand-200);
}

.document-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.document-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-900);
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--brand-300);
}

.language-section ul {
  list-style: none;
  padding: 0;
}

.language-section ul li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 12px;
}

.language-section ul li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 16px;
}

/* LTR bullet points for English section */
.language-section[dir="ltr"] ul li {
  padding-right: 0;
  padding-left: 24px;
}

.language-section[dir="ltr"] ul li::before {
  right: auto;
  left: 0;
}

/* Navigation Active State */
.nav a.active {
  color: var(--brand-600);
  font-weight: 500;
}

/* Responsive Terms Page */
@media (max-width: 719px) {
  .terms-page {
    padding: 40px 0 60px;
  }
  
  .terms-content {
    padding: 24px;
    margin: 0 16px;
  }
  
  .language-section h2 {
    font-size: 20px;
  }
  
  .language-section h3 {
    font-size: 16px;
  }
}

/* Utility */
.muted { color: var(--muted); }

/* Motion — sophisticated, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .float-y { animation: floatY 6s ease-in-out infinite; }
  
  .reveal { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95); 
    animation: reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
  }
  .reveal:nth-child(1) { animation-delay: 0.1s; }
  .reveal:nth-child(2) { animation-delay: 0.2s; }
  .reveal:nth-child(3) { animation-delay: 0.3s; }
  
  .fade-in { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
  }
  .fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
  }
  
  .slide-up { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
  }
  .slide-up.visible { 
    opacity: 1; 
    transform: translateY(0); 
  }
  
  /* Stagger children animations */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }
  .stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Add shimmer effect */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}


