/* Design System for Tarzit landing page */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --primary: #E11D48;
  --primary-soft: #FB7185;
  --primary-dark: #BE123C;
  --primary-rgb: 225, 29, 72;
  --secondary: #FFC107;
  --secondary-dark: #D39E00;
  --accent: #00C853;
  --accent-rgb: 0, 200, 83;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --text-main: #1A1A1A;
  --text-secondary: #666666;
  --border: #E5E7EB;
  
  /* Typography */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1280px;
  
  /* Shadow & Blur System */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 30px rgba(225, 29, 72, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

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

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #FF5E89);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Glassmorphic Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--surface);
  font-weight: 900;
  box-shadow: var(--shadow-primary);
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 0;
  transition: var(--transition-normal);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--background);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.1) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 193, 7, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.hero-tag span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  animation: pulse 1.5s infinite;
}

.hero-content h1 {
  font-size: 4.2rem;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 12px;
  transition: var(--transition-normal);
  border: 1px solid #333333;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #555555;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text .subtitle {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.store-badge-text .title {
  font-size: 0.95rem;
  font-weight: 700;
}

.ios-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.try-web-btn {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(225, 29, 72, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px dashed rgba(225, 29, 72, 0.3);
  transition: var(--transition-normal);
  text-decoration: none;
}

.try-web-btn:hover {
  background-color: rgba(225, 29, 72, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1);
}

.store-badge.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-download .try-web-btn {
  color: var(--surface);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.cta-download .try-web-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--surface);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Interactive Hero Mockup Area */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, rgba(225, 29, 72, 0) 70%);
  z-index: 1;
}

.phone-frame {
  width: 320px;
  height: 640px;
  border-radius: 44px;
  background-color: #1A1A1A;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 4px #2a2a2a;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* Floating App UI Overlays */
.floating-ui {
  position: absolute;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.floating-ui-1 {
  top: 12%;
  right: -40px;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.floating-ui-2 {
  bottom: 25%;
  left: -50px;
  animation: float-slow 4.5s ease-in-out infinite alternate-reverse;
}

.floating-ui-3 {
  bottom: 8%;
  right: -20px;
  animation: float-slow 3.8s ease-in-out infinite alternate;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(225, 29, 72, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.floating-ui-2 .floating-icon {
  background-color: rgba(0, 200, 83, 0.1);
  color: var(--accent);
}

.floating-ui-3 .floating-icon {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--secondary-dark);
}

.floating-details h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.floating-details p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--surface);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(225, 29, 72, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: var(--surface);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Vendor Showcase Section */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 10px 24px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-tab:hover {
  border-color: var(--primary-soft);
  color: var(--primary);
}

.filter-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-primary);
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.vendor-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.vendor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.vendor-img-container {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #eaeaea;
}

.vendor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.vendor-card:hover .vendor-img {
  transform: scale(1.06);
}

.vendor-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.vendor-badge.open {
  background-color: rgba(0, 200, 83, 0.9);
}

.vendor-badge.closed {
  background-color: rgba(225, 29, 72, 0.9);
}

.vendor-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.vendor-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.vendor-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--secondary-dark);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.vendor-tags {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.vendor-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.vendor-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-meta-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #E11D48 100%);
  color: var(--surface);
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.cta-content h2 {
  color: var(--surface);
  font-size: 3.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.cta-download {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-download .store-badge {
  background-color: var(--surface);
  color: var(--text-main);
  border-color: var(--surface);
}

.cta-download .store-badge:hover {
  background-color: var(--background);
  border-color: var(--background);
}

.cta-qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: var(--radius-md);
  max-width: 440px;
}

.qr-code {
  width: 90px;
  height: 90px;
  background-color: var(--surface);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-details h4 {
  color: var(--surface);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.qr-details p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.cta-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.cta-app-img {
  width: 300px;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg) translateY(20px);
  transition: var(--transition-slow);
}

.cta-visual:hover .cta-app-img {
  transform: rotate(0deg) translateY(0px);
}

/* Footer Section */
.footer {
  background-color: #111111;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 0.95rem;
}

.footer h3, .footer h4 {
  color: #FFFFFF;
}

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

.footer-brand h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.footer-brand p {
  margin-bottom: 24px;
  max-width: 320px;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--surface);
  transform: translateY(-2px);
}

.footer-links-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link:hover {
  color: var(--primary-soft);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
}

.footer-legal-links a:hover {
  color: var(--primary-soft);
}

/* Legal Pages & Layout */
.legal-body {
  padding-top: 100px;
  background-color: var(--background);
}

.legal-header {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.05) 0%, rgba(255, 193, 7, 0.03) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.legal-header h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 60px 0 100px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.legal-nav-link:hover {
  background-color: rgba(225, 29, 72, 0.05);
  color: var(--primary);
}

.legal-nav-link.active {
  background-color: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.legal-main {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 110px;
}

.legal-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.legal-section h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  margin-top: 24px;
}

.legal-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-section ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 8px;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-section ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Modal UI (Vendor Partner Register Form) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--surface);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 24px 32px;
  background-color: rgba(225, 29, 72, 0.04);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 32px;
  max-height: 70vh;
  overflow-y: auto;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E11D48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center;
  padding-right: 40px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-control::placeholder {
  color: #b0b0b0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notification styling */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #333333;
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--accent);
  color: #FFFFFF;
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.4rem;
  }
  .cta-content h2 {
    font-size: 2.6rem;
  }
  .legal-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    border-bottom: 1.5px solid var(--border);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions {
    display: none;
  }
  .hero {
    padding-top: 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-content p {
    margin: 0 auto 30px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    margin-top: 20px;
  }
  .floating-ui-1 { right: 0; }
  .floating-ui-2 { left: 0; }
  .floating-ui-3 { right: 0; }
  
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .cta-download {
    justify-content: center;
  }
  .cta-qr-box {
    margin: 30px auto 0;
  }
  .cta-visual {
    order: -1;
  }
  .cta-app-img {
    width: 250px;
    transform: rotate(0deg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
  .legal-main {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
