/* ============================================
   PostLa — Twine-Inspired Redesign
   Style Guide: Warm cream palette, serif headings, Instrument Sans body
   ============================================ */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* PostLa Color Palette (PRESERVED) */
  --color-primary: #faf9f5;
  --color-secondary: #ffffff;
  --color-text: #141413;
  --color-third: #ffffff;
  --color-forth: #d97757;
  --color-fifth: #e8e6dc;
  --color-sixth: #f0efeb;
  --color-seventh: #c46242;
  --color-gray: #b0aea5;
  --color-input: #f0efeb;
  --color-input-text: #b0aea5;
  --color-table-border: #e8e6dc;
  --color-custom1: #3a3836;
  --color-custom2: #f8f7f3;
  --color-custom3: #ffffff;
  --color-custom4: #c46242;
  --color-custom5: #e8e6dc;
  --color-custom6: #e8e6dc;
  --color-custom7: #d97757;
  --color-custom8: #e8e6dc;
  --color-custom9: #3a3836;
  --color-custom10: #d97757;
  --color-custom11: #6a9bcc;
  --color-custom12: #9dbedd;
  --color-custom13: #d97757;
  --color-custom14: #788c5d;
  --color-custom15: #141413;
  --color-custom16: #1a1a19;
  --color-custom17: #141413;
  --color-custom18: #141413;
  --color-custom19: #f97066;
  --color-custom20: #f0efeb;
  --color-custom21: #788c5d;
  --color-custom22: #b91c1c;
  --color-custom23: #f0efeb;
  --color-custom24: #eaff00;
  --color-custom25: #3a3836;
  --color-custom26: #1d9bf0;
  --color-custom27: #b0aea5;
  --color-custom28: #6a9bcc;
  --color-custom29: #141413;
  --color-custom30: #f0efeb;
  --color-custom31: #e8e6dc;
  --color-custom32: #212121;
  --color-custom33: #f0efeb;
  --color-custom34: #3a3836;
  --color-custom35: #252525;
  --color-custom36: #b0aea5;
  --color-custom37: #141413;
  --color-custom38: #e8e6dc;
  --color-custom39: #141413;
  --color-custom40: #faf9f5;
  --color-custom41: #9dbedd;
  --color-custom42: #788c5d;
  --color-custom43: #3a3836;
  --color-custom44: #252525;
  --color-custom45: #d97757;
  --color-custom46: #6a9bcc;
  --color-custom47: #1a1a19;
  --color-custom48: #faf9f5;
  --color-custom49: #141413;
  --color-custom50: #c46242;
  --color-custom51: #d97757;
  --color-custom52: #e8e6dc;
  --color-custom53: #b0aea5;
  --color-custom54: #b0aea5;
  --color-custom55: #e8e6dc;
  --color-modalCustom: transparent;

  /* Typography */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Spacing & Layout */
  --max-width: 1440px;
  --max-width-content: 1152px;
  --max-width-narrow: 896px;
  --max-width-wide: 1280px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-4xl: 32px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(20, 20, 19, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(20, 20, 19, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(20, 20, 19, 0.1);
  --shadow-subtle-glow: 0 8px 32px rgba(20, 20, 19, 0.12);
  --shadow-card: 0 4px 24px rgba(20, 20, 19, 0.08);

  /* Subtle Glow Shadow for Cards */
  --subtle-glow-shadow: 0 25px 50px -12px rgba(20, 20, 19, 0.15);

  /* Nav Shadow */
  --nav-shadow: 0 4px 20px rgba(20, 20, 19, 0.08);
}

/* ============================================
   Base Reset & Global Styles
   ============================================ */

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================
   Typography Scale
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-xs { font-size: 12px; line-height: 1.5; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.6; }
.text-lg { font-size: 18px; line-height: 1.55; }
.text-xl { font-size: 20px; line-height: 1.5; }
.text-2xl { font-size: 24px; line-height: 1.35; }
.text-3xl { font-size: 30px; line-height: 1.3; }
.text-4xl { font-size: 36px; line-height: 1.2; }
.text-5xl { font-size: 48px; line-height: 1.1; }
.text-5-5xl { font-size: 60px; line-height: 1.05; }
.text-6xl { font-size: 72px; line-height: 1; }

/* Sans-serif for body text in headings */
.serif-heading {
  font-family: var(--font-serif);
}

.sans-body {
  font-family: var(--font-sans);
}

.tracking-tight { letter-spacing: -0.03em; }
.tracking-normal { letter-spacing: 0; }

/* ============================================
   Layout Containers
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 16px;
}

.container-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container, .container-narrow, .container-content, .container-wide {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container, .container-narrow, .container-content, .container-wide {
    padding: 0 32px;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-forth);
  color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-seventh);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-secondary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================
   Header / Navigation
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
}

.header-scrolled {
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: var(--nav-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo:hover {
  opacity: 0.8;
}

nav ul {
  display: none;
  list-style: none;
  gap: 8px;
}

nav ul li a {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

nav ul li a:hover {
  background-color: var(--color-sixth);
  color: var(--color-forth);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (min-width: 768px) {
  nav ul {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 16px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(116.57% 111.8% at 0% 0%, #F2EEE7 0%, #E7E2D9 21.15%, #E1DCD3 45.05%, #E1D6D1 60.79%, #DBD5D1 70.05%, #E0DCD8 86.43%, #E8E7E4 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero p {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.6;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 24px 100px;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 16px;
  }
}

/* ============================================
   Section Styles
   ============================================ */

.section {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 100px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  font-size: 18px;
  color: var(--color-gray);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-title.max-w-2xl h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-title.text-left {
  text-align: left;
}

.section-title.text-left h2 {
  margin-left: 0;
  margin-right: 0;
}

.section-title.text-left p {
  margin-left: 0;
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.feature-card {
  background: var(--color-secondary);
  padding: 32px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-fifth);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-sixth);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* ============================================
   Platforms Section
   ============================================ */

.platforms-section {
  background: var(--color-secondary);
}

.platforms-section.section-title {
  padding-top: 80px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.platform-card {
  padding: 24px;
  text-align: center;
  border: 1.5px solid var(--color-table-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  background: var(--color-primary);
}

.platform-card:hover {
  border-color: var(--color-forth);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 56px;
  height: 56px;
  background: var(--color-sixth);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.platform-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: var(--color-custom1);
  color: var(--color-secondary);
  text-align: center;
  padding: 80px 16px;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 18px;
  color: var(--color-gray);
  margin-bottom: 32px;
}

.cta-section .btn-primary {
  background: var(--color-forth);
}

.cta-section .btn-primary:hover {
  background: var(--color-seventh);
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--color-custom1);
  color: var(--color-secondary);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

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

.footer-brand h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-secondary);
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--color-gray);
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 14px;
  color: var(--color-secondary);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--color-forth);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--color-gray);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom a {
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--color-forth);
}

/* ============================================
   Section Divider
   ============================================ */

.section-divider {
  height: 1px;
  background: var(--color-table-border);
  margin: 0 16px;
}

@media (min-width: 768px) {
  .section-divider {
    margin: 0 32px;
  }
}

/* ============================================
   Social Proof / Logo Ticker
   ============================================ */

.logo-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 48px 0;
}

.logo-ticker::before,
.logo-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-primary), transparent);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-primary), transparent);
}

.logo-ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.logo-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-ticker-item {
  flex-shrink: 0;
  height: 32px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.logo-ticker-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-ticker-item img {
  height: 100%;
  width: auto;
}

.logo-ticker-item span {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.5;
}

/* ============================================
   Scroll-Triggered Animations
   ============================================ */

/* Primary text animation (fade from main color to secondary) */
[data-animate="primary"] {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-in-up 0.8s ease-out forwards;
  animation-timeline: view();
  animation-range: cover 0% cover 30%;
}

[data-animate="secondary"] {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-in-up 0.8s ease-out forwards;
  animation-delay: 0.2s;
  animation-timeline: view();
  animation-range: cover 10% cover 40%;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover animations */
.card-animate {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-animate:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-subtle-glow);
}

/* ============================================
   Pricing Page Styles
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.pricing-card {
  background: var(--color-secondary);
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1.5px solid var(--color-table-border);
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-forth);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--color-forth);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-forth);
  color: var(--color-secondary);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pricing-card h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

.pricing-card .price span {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray);
}

.pricing-card ul {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}

.pricing-card ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-table-border);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--color-custom14);
  font-weight: 600;
  font-size: 14px;
}

.pricing-card ul li.disabled {
  color: var(--color-gray);
  opacity: 0.6;
}

.pricing-card ul li.disabled::before {
  content: '—';
  color: var(--color-gray);
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-section {
  padding: 140px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--color-gray);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--color-sixth);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-item p {
  font-weight: 500;
  font-size: 15px;
}

/* ============================================
   Form Styles
   ============================================ */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-table-border);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-family: var(--font-sans);
  background: var(--color-input);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-forth);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 16px 80px;
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-custom1);
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  margin-bottom: 10px;
  color: var(--color-custom1);
  line-height: 1.7;
}

/* ============================================
   404 Error Page
   ============================================ */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 400;
  color: var(--color-forth);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.error-page p {
  color: var(--color-gray);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--color-gray); }

.max-w-lg { max-width: 576px; }
.max-w-xl { max-width: 672px; }
.max-w-2xl { max-width: 768px; }
.max-w-3xl { max-width: 896px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767px) {
  .hero h1 {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   Sticky Sections (Scroll-triggered)
   ============================================ */

.sticky-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* View Timeline Animations (for browsers that support it) */
@supports (animation-timeline: scroll()) {
  .animate-on-scroll {
    animation: slide-in 0.8s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }

  @keyframes slide-in {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}