/* MillWheel Premium CSS Design System v2.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors - Modern Dark Glassmorphic Theme */
  --bg-black: #050B14;
  --bg-dark: #09121F;
  --bg-surface: #0E1A2B;
  --bg-surface-hover: #13243C;
  
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.35);
  
  --accent: #00E5FF;
  --accent-hover: #00B8D4;
  --accent-glow: rgba(0, 229, 255, 0.35);
  
  --amber: #FFB300;
  --amber-hover: #FFA000;
  --amber-glow: rgba(255, 179, 0, 0.25);
  
  --error: #EF4444;
  --success: #10B981;
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --border-glow: rgba(255, 255, 255, 0.06);
  --border-glow-hover: rgba(255, 255, 255, 0.12);
  
  --glass-bg: rgba(14, 26, 43, 0.5);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Spacing & Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global resets & core rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow & Particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.ambient-glow-top {
  position: absolute;
  top: -300px;
  right: -100px;
  width: min(800px, 95vw);
  height: min(800px, 95vw);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(0,0,0,0) 70%);
  z-index: -2;
  pointer-events: none;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: -300px;
  left: -100px;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, rgba(0,0,0,0) 70%);
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
}

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

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Containers & Grids */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: clamp(80px, 10vw, 140px) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

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

/* Section Header Styles */
.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-secondary);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--glass-glow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glow-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.05);
}

/* Header Navbar */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.navbar.scrolled {
  background: rgba(5, 11, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
}

.brand-logo span {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
  color: #FFFFFF;
}

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

/* Mobile navbar styling */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .mobile-toggle { display: none; }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow), 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: #FFFFFF;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 56px;
  padding: 16px 36px;
  font-size: 16px;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 13px;
}

/* Shimmer animation for download buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  animation: shimmer-effect 4s infinite linear;
}

@keyframes shimmer-effect {
  0% { left: -60%; }
  100% { left: 160%; }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 100px 0;
  background-image: linear-gradient(to bottom, rgba(5,11,20,0.6), var(--bg-black)), url('../assets/hero_luxury_bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  margin-bottom: 36px;
}

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

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  background-color: rgba(255,255,255,0.08);
}

/* Hero Visual Simulator Chamber */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-preview-card {
  width: 100%;
  max-width: 440px;
  padding: 0;
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--error);
  letter-spacing: 0.05em;
}

.pulse-red {
  width: 6px;
  height: 6px;
  background-color: var(--error);
  border-radius: 50%;
  animation: pulse-red-anim 1s infinite alternate;
}

@keyframes pulse-red-anim {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.tag-express {
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: var(--amber);
  padding: 2px 6px;
}

.preview-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.preview-footer {
  padding: 20px;
  border-top: 1px solid var(--glass-border);
}

.order-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.order-info strong {
  font-size: 14px;
  color: #FFFFFF;
}

.order-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.service-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

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

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.service-price {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.service-time {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Live Simulator Experience */
.simulator-section {
  background-color: var(--bg-dark);
}

.simulator-box {
  width: 100%;
  margin-top: 40px;
}

.simulator-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  margin-bottom: 40px;
}

.simulator-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 16px 8px;
  cursor: pointer;
  border-bottom: 2px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.simulator-step.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.simulator-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.simulator-step-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.simulator-content-box {
  min-height: 380px;
  display: flex;
  align-items: center;
}

.simulator-panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.simulator-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* App ecosystem pages */
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platform-card h3 {
  font-size: 24px;
}

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

.platform-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.platform-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Live Analytics Grid */
.stat-grid-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.stat-item {
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
}

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-title {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accordion FAQs */
.faq-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  outline: none;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-secondary);
  font-size: 14px;
  padding-right: 20px;
}

/* Become a Partner */
.partner-section {
  position: relative;
  background-image: linear-gradient(to right, rgba(5,11,20,0.9), rgba(5,11,20,0.7)), url('../assets/millwheel_banner_bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Contact map & forms */
.contact-map-container {
  height: 100%;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.contact-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

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

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-details h4 {
  font-size: 14px;
  font-weight: 600;
}

.contact-info-details p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Footer Section */
footer {
  background-color: var(--bg-black);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px 0;
}

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

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

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-about p {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

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

.footer-links ul a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links ul a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Redesigned Service Cards */
.service-card {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15) !important;
}

.service-badge-express {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
  border: 1px solid rgba(255, 143, 0, 0.5);
  color: #050b14;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(255, 179, 0, 0.3);
}

.service-price-starting {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.service-price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.service-price-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  display: block;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.service-actions .btn {
  min-height: 40px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
}

