/* Swiss-inspired color palette and variables */
:root {
  --primary-red: #DC143C;
  --primary-blue: #2C5282;
  --swiss-gray: #4A5568;
  --light-gray: #F7FAFC;
  --white: #FFFFFF;
  --black: #1A202C;
  --success-green: #38A169;
  /* --warning-orange: #DD6B20; (no longer used - orange removed from gradients) */
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Swiss typography stack: Helvetica Neue / Helvetica / Arial, then system fallbacks */
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px; /* sensible baseline */
  line-height: 1.55; /* comfortable leading for Swiss typography */
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve text sharpness across platforms */
html, body {
  text-rendering: optimizeLegibility; /* enable ligatures and better glyph rendering */
  -webkit-font-smoothing: antialiased; /* macOS/iOS */
  -moz-osx-font-smoothing: grayscale; /* Firefox on macOS */
  -webkit-text-size-adjust: 100%;
}

/* Slightly stronger weights for headings to ensure crisp display */
h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 700;
}

/* Subtle text-shadow trick for some Windows LCDs to enhance perceived sharpness */
body, p, a, li, span {
  text-shadow: 0.01px 0.01px 0 rgba(0,0,0,0.01);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1rem;
  color: var(--swiss-gray);
  font-size: 1rem;
  letter-spacing: -0.01em; /* slight tightening, common in Swiss typography */
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #B91C3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

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

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

.btn-primary.large, .btn-secondary.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.full-width {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.125rem; /* reduced spacing between icon and text (50% smaller) */
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-red);
}

/* Tighten navbar logo spacing and icon size for a compact header */
.navbar .logo-icon {
  display: inline-flex;
  align-items: center;
}
.navbar .logo-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Nudge the logo up so its lower edge aligns with the logo text baseline */
.navbar .logo-icon {
  display: inline-flex;
  align-items: center;
  transform: translateY(-0.12rem); /* slightly lift the icon */
}
.navbar .logo-text { align-self: center; }

.logo-text { display: inline-flex; align-items: baseline; gap: 0; }
.logo-main { color: var(--primary-red); margin-right: 0; }
.logo-domain { color: var(--black); font-weight: 600; margin-left: 0; }

/* Footer-specific: make logo text white */
.footer-logo .logo-main,
.footer-logo .logo-domain {
  color: var(--white) !important;
}

/* Match navbar logo spacing and alignment in the footer */
.footer-logo {
  display: inline-flex;
  align-items: center; /* match navbar centering */
  gap: 0.0625rem; /* tighten spacing to visually match navbar (1px) */
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-logo .logo-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

/* Nudge footer icon to match navbar baseline */
.footer-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  transform: translateY(-0.12rem);
}

.footer-logo .logo-text { align-self: center; }

/* force a tiny explicit spacing in case gap computation differs between containers/browsers */
.footer-logo .logo-icon { margin-right: 0.0625rem; }

.logo-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--swiss-gray);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-red);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--swiss-gray);
  margin: 3px 0;
  transition: var(--transition);
}

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

/* Responsive: mobile navbar behavior */
@media (max-width: 768px) {
  .nav-content {
    align-items: center;
    gap: 1rem;
  }

  .nav-links {
    display: none; /* hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-direction: column;
    padding: 1rem 20px;
    gap: 1rem;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transform-origin: top center;
    transform: translateY(-8px) scaleY(0.98);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav-links.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links a {
    padding: 12px 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--swiss-gray);
    width: 100%;
  }

  .nav-links .btn-primary {
    width: 100%;
    display: inline-block;
  }

  /* Make the navbar more compact on small screens */
  .navbar {
    padding: 0.5rem 0;
  }

  .logo-text { font-size: 1.1rem; }
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--swiss-gray);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--swiss-gray);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

/* Ensure nav 'Get Started' shows white text on the red button */
.nav-links .btn-primary {
  color: var(--white);
}

.phone-mockup {
  width: 280px;
  height: 560px;
  /* visually remove mockup border/background while keeping structure for layout */
  background: transparent;
  border-radius: 20px; /* rounded visible area */
  padding: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden; /* crop left/right parts of the image */
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* Make hero image fill the mockup vertically and center horizontally to crop sides */
.phone-mockup .hero-image {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* match container rounding */
}

.qr-scanner {
  width: 100%;
  height: 100%;
  /* avoid purple by adding warm mid-stop */
  /* even broader transition: blue -> warm mids -> red across ~20%-80% */
  background: linear-gradient(45deg,
  var(--primary-red) 0%,
  var(--primary-red) 30%,
  var(--primary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scanner-frame {
  width: 200px;
  height: 200px;
  border: 3px solid var(--white);
  border-radius: 20px;
  position: relative;
  animation: pulse 2s infinite;
}

.qr-code {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 8px;
  background-image: 
    repeating-linear-gradient(0deg, #000 0px, #000 4px, transparent 4px, transparent 8px),
    repeating-linear-gradient(90deg, #000 0px, #000 4px, transparent 4px, transparent 8px);
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--black);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--swiss-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--light-gray);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Icon utility - use currentColor so icons inherit text color */
.icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  color: var(--primary-blue);
}

/* Material Symbols (font) specific sizing: larger and controlled via font-size
   Targets spans with the material-symbols-outlined class while keeping
   existing SVG-based icons intact. */
.material-symbols-outlined.icon {
  width: auto; /* allow font glyph to size via font-size */
  height: auto;
  font-variation-settings: "wght" 400, "FILL" 0; /* default weight & fill */
  font-feature-settings: normal;
  font-size: 32px; /* increased size for use-case icons; adjust as needed */
  line-height: 1;
  display: inline-block;
}

.feature-icon .icon,
.benefit-icon .icon,
.use-case-icon .icon {
  width: 40px;
  height: 40px;
}

.benefit-icon { color: var(--success-green); }
.use-case-icon { color: var(--primary-blue); }

.feature-card h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.5rem;
  color: var(--success-green);
  flex-shrink: 0;
}

.benefit-item h4 {
  color: var(--black);
  margin-bottom: 0.5rem;
}

.benefit-item p {
  margin: 0;
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px var(--shadow-lg);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.mockup-header {
  padding: 1rem;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
}

.mockup-dots {
  display: flex;
  gap: 0.5rem;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--swiss-gray);
}

.mockup-content {
  padding: 2rem;
}

.chart-bar {
  height: 20px;
  /* even broader transition: red -> warm mids -> blue across ~20%-80% (mirrored) */
  background: linear-gradient(90deg,
  var(--primary-red) 0%,
  var(--primary-red) 40%,
  var(--primary-blue) 100%);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.chart-bar:nth-child(1) { width: 100%; }
.chart-bar:nth-child(2) { width: 75%; }
.chart-bar:nth-child(3) { width: 90%; }

.asset-list {
  margin-top: 2rem;
}

.asset-item {
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--white);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  /* solid red circle with high-contrast white number */
  background: var(--primary-red);
  color: var(--white);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.08); /* subtle depth */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 2rem;
}

.step h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

/* Use Cases Section */
.use-cases {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.use-case {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.use-case:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.use-case h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background-color: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  background-color: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.pricing-card.popular {
  border-color: var(--primary-red);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-red);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--black);
}

.price {
  text-align: center;
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.2rem;
  color: var(--swiss-gray);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-red);
}

.period {
  font-size: 1.2rem;
  color: var(--swiss-gray);
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--swiss-gray);
  position: relative;
  padding-left: 1.5rem;
}

.features-list li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M20 6L9 17l-5-5" stroke="%2338A169" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  /* Blue -> warm orange -> Red to avoid purple/magenta in the middle */
  /* even broader transition: blue -> warm mids -> red across ~20%-80% */
  background: linear-gradient(135deg,
  var(--primary-red) 0%,
  var(--primary-red) 30%,
  var(--primary-blue) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background-color: var(--white);
  color: var(--primary-red);
}

.cta .btn-primary:hover {
  background-color: var(--light-gray);
}

.cta .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.cta-note {
  font-size: 1rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-red);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .benefits-content {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .phone-mockup {
    width: 240px;
    height: 480px;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .features, .benefits, .how-it-works, .use-cases, .pricing, .cta {
    padding: 60px 0;
  }
}

/* Animations and micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card, .use-case, .pricing-card, .benefit-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* Construction-focused section */
.construction { padding: 80px 0; background: linear-gradient(180deg, rgba(220,20,60,0.03), rgba(0,0,0,0)); }
.construction .section-header { text-align: left; max-width: 900px; margin: 0 auto 2rem; }
.construction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.construction-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 6px 18px var(--shadow-lg); text-align: left; }
.construction-icon { font-size: 28px; margin-bottom: 10px; }
.construction-card h3 { margin-bottom: 0.5rem; }
.construction-card p { color: var(--swiss-gray); font-size: 0.98rem; }