/* ReferVo Design System - Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500&display=swap');

:root {
  --orange: #f97316;
  --orange-light: #fb923c;
  --orange-dark: #ea580c;
  --black: #171717;
  --white: #ffffff;
  --gray-text: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --gray-dark: #374151;
  
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--gray-text); }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  section { padding: 7rem 0; }
}

/* Logo - Text only, matches app styling */
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-refer { color: var(--orange); }
.logo-vo { color: var(--black); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links {
  display: none;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--black); }

.nav-cta {
  display: none;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .mobile-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  display: block;
  padding: 0.5rem 0;
}

.mobile-menu .btn {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer .logo-vo {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Page Headers (for inner pages) */
.page-header {
  padding-top: 140px;
  padding-bottom: 4rem;
  background: var(--gray-light);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
}

/* Content Pages */
.content-section {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--gray-text);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.content-wrapper a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-wrapper a:hover {
  color: var(--orange-dark);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-border);
}