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

:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --accent: #f093fb;
  --text-dark: #1a202c;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo {
  font-size: 2rem;
}

.brand-name {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Board Preview */
.board-preview {
  perspective: 1000px;
}

.board-screen {
  background: white;
  color: var(--text-dark);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s;
}

.board-preview:hover .board-screen {
  transform: rotateY(0deg) rotateX(0deg);
}

.board-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 120px;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .time {
  font-weight: bold;
  font-size: 1.1rem;
}

.service-row .destination {
  font-weight: 500;
}

.service-row .platform {
  color: var(--text-light);
  font-size: 0.85rem;
}

.service-row .status {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
}

.status-ontime {
  background: #d4edda;
  color: #155724;
}

.status-delay {
  background: #fff3cd;
  color: #856404;
}

/* OLED Display Styling - 256x64 (4:1 aspect ratio) */
.oled-display {
  background: #000 !important;
  color: #fff !important;
  font-family: 'Courier New', monospace !important;
  padding: 0.75rem 1rem !important;
  height: 160px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.oled-header {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffd700;
  text-align: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid #333;
  margin-bottom: 0.5rem;
}

.oled-services {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.oled-service {
  padding-bottom: 0.2rem;
  margin-bottom: 0.2rem;
}

.oled-service-line {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: normal;
  display: flex;
  justify-content: space-between;
  line-height: 1.3;
}

.oled-calling {
  margin-top: 0.1rem;
  color: #ffd700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: flex;
}

.oled-calling-label {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.oled-calling-scroll-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.oled-calling-scroll {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
  padding-right: 2rem;
}

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

.oled-clock {
  text-align: center;
  font-size: 0.9rem;
  color: #ffd700;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
  margin-top: auto;
  font-weight: bold;
}

.oled-loading {
  text-align: center;
  color: #ffd700;
  padding: 2rem;
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
}

/* Specifications */
.specs {
  padding: 6rem 0;
  background: var(--bg-light);
}

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

.spec-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spec-label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Pricing */
.pricing {
  padding: 6rem 0;
}

.pricing-card {
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.price-tag {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.price-tag .currency {
  font-size: 2rem;
  vertical-align: super;
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Order Form */
.order-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.order-form-container {
  max-width: 600px;
  margin: 2rem auto;
}

.order-form {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.order-summary {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: bold;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
  margin-top: 0.75rem;
}

.form-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.order-success {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 2rem;
}

.order-success h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.order-success p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* FAQ */
.faq {
  padding: 6rem 0;
}

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

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-light);
}

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo {
  font-size: 2rem;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 0.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: white;
  opacity: 0.7;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  opacity: 1;
}

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

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

@media (max-width: 968px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

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

  /* Larger touch targets */
  .btn-primary, .btn-secondary {
    min-height: 48px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Hero - Single column layout */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn-large {
    width: 100%;
    text-align: center;
  }

  .hero-features {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* OLED Display Mobile */
  .board-preview {
    width: 100%;
    max-width: 100%;
  }

  .oled-display {
    height: 140px;
    max-width: 100%;
    font-size: 0.7rem;
  }

  .oled-header {
    font-size: 0.9rem;
  }

  .oled-clock {
    font-size: 0.85rem;
  }

  /* Features Section */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* How It Works */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Specs */
  .specs-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-card {
    padding: 2rem 1.5rem;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 1.25rem;
  }

  /* Forms - larger touch targets */
  input, textarea, select {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Order form mobile */
  .order-form {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  footer {
    padding: 2rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* Tablet specific (768-968px) */
@media (min-width: 768px) and (max-width: 968px) {
  .hero .container {
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

/* Small mobile (iPhone SE, etc) */
@media (max-width: 375px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn-large {
    font-size: 0.95rem;
    padding: 0.875rem 1.25rem;
  }

  .oled-display {
    height: 120px;
    font-size: 0.65rem;
    padding: 0.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

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

  .order-form {
    padding: 1.5rem 1rem;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger clickable areas */
  button, a, input, select {
    min-height: 44px;
  }

  /* Remove hover effects on touch */
  .btn-primary:hover,
  .btn-secondary:hover,
  .feature-card:hover {
    transform: none;
  }

  /* Better tap highlights */
  * {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
  }

  /* Sticky elements on mobile */
  .navbar {
    position: sticky;
  }
}

/* Landscape mobile optimization */
@media (max-width: 968px) and (orientation: landscape) {
  .hero {
    padding: 4rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .board-preview {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* iPad and large tablet optimization (above mobile breakpoint) */
@media (min-width: 969px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .hero .container {
    gap: 2rem;
  }

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

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

/* Print styles */
@media print {
  .navbar,
  .hero-cta,
  footer,
  .btn-primary,
  .btn-secondary {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
  }
}
