/* ============================================
   SANRANK — Shared Design System (Light Theme)
   ============================================ */

:root {
  /* Colors */
  --white: #ffffff;
  --bg: #fafaf8;
  --bg2: #f2f1ec;
  --bg3: #e8e7e0;
  --ink: #0f1117;
  --ink2: #1f2230;
  --ink3: #383d52;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --green: #1a7c4f;
  --green-bg: #e8f7ef;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --lime: #84cc16;
  --lime-bg: #f0fdf4;
  --border: rgba(15,17,23,0.08);
  --border2: rgba(15,17,23,0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);

  /* Typography */
  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing & Shape */
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --tr: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--tr);
  border: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,17,23,0.2);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: #15643f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,124,79,0.25);
}
.btn-white {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* LABELS / TAGS */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.label-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.label-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(26,124,79,0.15); }
.label-blue  { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(37,99,235,0.15); }
.label-gray  { background: var(--bg2); color: var(--ink3); border: 1px solid var(--border); }

/* SECTION HEADER */
.sec-h { text-align: center; margin-bottom: 60px; }
.sec-h h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.sec-h p {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: var(--tr);
}
.navbar.scrolled {
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
}
.logo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 2px;
  margin-bottom: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 30px;
  color: var(--muted);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--green); }

/* TICKER */
.ticker { padding: 18px 0; background: var(--ink); overflow: hidden; }
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.ticker-sep { color: rgba(255,255,255,0.2); font-size: 16px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FOOTER */
.footer { padding: 64px 0 36px; background: var(--ink); color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; display: inline-flex; }
.footer-brand .logo-dot { background: var(--lime); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.soc-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--tr);
  color: rgba(255,255,255,0.5);
}
.soc-btn:hover { background: var(--white); color: var(--ink); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-bl { display: flex; gap: 20px; }
.footer-bl a { font-size: 12px; color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-bl a:hover { color: rgba(255,255,255,0.6); }

/* CTA BAND */
.cta-band { padding: 100px 0; background: var(--ink2); position: relative; overflow: hidden; }
.cta-band-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-inner h2 em { font-style: italic; color: #a3e635; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 36px; line-height: 1.7; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* SCROLL ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
