/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0066CC;
  --primary-dark: #004499;
  --primary-light: #E6F3FF;
  --accent: #00C896;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #0a1628;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0066CC 50%, #00C896 100%);
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,200,150,0.15), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0,102,204,0.2), transparent 50%);
  z-index: -1;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn-large { padding: 18px 48px; font-size: 1.1rem; }

/* === Sections === */
section { padding: 100px 0; }

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 60px;
}

/* === Problem Section === */
.problem { background: var(--bg-alt); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.problem-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid #e74c3c;
}

.problem-icon { font-size: 3rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.problem-card p { color: var(--text-light); }

/* === Solution Section === */
.solution-diagram {
  max-width: 700px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.diagram-device {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  margin: 4px;
}

.diagram-device .device-icon { font-size: 1.4rem; }

.diagram-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: bold;
}

.diagram-gateway {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 24px 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.diagram-gateway .device-icon { font-size: 2.5rem; margin-bottom: 8px; }
.diagram-gateway strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.diagram-gateway span { font-size: 0.9rem; opacity: 0.9; }

.diagram-output {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.output-item {
  background: white;
  border: 2px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* === Features === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* === Compatibility === */
.compatibility { background: var(--bg-alt); }

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.compat-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.compat-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.compat-card p { color: var(--text-light); margin-bottom: 16px; }

.compat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* === Specs === */
.spec-table {
  max-width: 800px;
  margin: 60px auto 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--bg-alt); }

.spec-label { font-weight: 600; color: var(--text-light); }
.spec-value { color: var(--text); }

/* === Order === */
.order { background: var(--bg-dark); color: white; }

.order h2 { color: white; }

.order-card {
  max-width: 600px;
  margin: 60px auto 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.order-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 40px 32px;
  text-align: center;
}

.order-header h3 { font-size: 1.8rem; margin-bottom: 8px; }

.order-price {
  font-size: 3rem;
  font-weight: 800;
}

.price-sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 8px;
}

.order-features {
  padding: 32px;
}

.order-feature {
  padding: 10px 0;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.order-feature:last-child { border-bottom: none; }

.order-cta {
  padding: 32px;
  text-align: center;
  background: var(--bg-alt);
}

.order-note {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.order-contact {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* === Footer === */
footer {
  background: #050b14;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

/* === Downloads === */
.downloads { background: var(--bg-alt); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.download-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.download-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.download-card:hover .download-btn {
  background: var(--primary-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hero-stats { gap: 24px; }
  .stat-num { font-size: 2rem; }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .diagram-output { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card, .problem-card, .compat-card {
  animation: fadeInUp 0.6s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
