/* ===========================
   Pranan Marketing -- Shared Styles
   Synced with homepage design system (April 2026)
   =========================== */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core palette */
  --bg: #09090b;
  --text: #fafafa;
  --text-muted: rgba(250,250,250,0.55);
  --accent: #a78bfa;
  --accent-bright: #c4b5fd;
  --green: #34d399;
  --surface: rgba(250,250,250,0.025);
  --border: rgba(250,250,250,0.07);

  /* Gradients */
  --gradient-start: #e0d4fc;
  --gradient-mid: #a78bfa;
  --gradient-end: #6d28d9;

  /* Typography */
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;

  /* Legacy aliases -- keeps existing inline styles working */
  --text-2: rgba(250,250,250,0.82);
  --text-3: rgba(250,250,250,0.52);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === STICKY NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(9,9,11,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.04em;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-right .login {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-right .login:hover { color: var(--text); }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gradient-end) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(167,139,250,0.25);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(250,250,250,0.2);
  background: var(--surface);
}

/* === FOOTER === */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer .tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250,250,250,0.72);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--text); }

/* === MOBILE NAV === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  position: relative;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 10000;
  }
  .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100vh !important;
    background: #09090b !important;
    z-index: 10000 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
  }
  .nav-links a { font-size: 1.1rem; }
  .nav-right { display: none; }
  .nav-links.open ~ .nav-right { display: none; }
  .nav .container { position: relative; z-index: 10001; }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid { gap: 32px; }
}
