@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&family=Roboto+Slab:wght@400;700&display=swap');

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

:root {
  --blue: #4472c4;
  --blue-dark: #2f569e;
  --white: #fff;
  --text: #2d2d2d;
  --text-light: #555;
  --bg: #fff;
  --row-alt: #f0f4fb;
  --border: #d0d9ef;
  --max-w: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  background: var(--white);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 32px;
  margin-left: 32px;
}

.site-nav a {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: .9;
  transition: opacity .15s;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; text-decoration: underline; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.store-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.store-icons a {
  display: flex;
  align-items: center;
  color: var(--white);
  opacity: .85;
  transition: opacity .15s;
}
.store-icons a:hover { opacity: 1; }
.store-icons svg { width: 22px; height: 22px; fill: var(--white); }

.btn-signin {
  background: var(--white);
  color: var(--blue) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.btn-signin:hover { background: #e8eef8; }

/* ── Marquee ── */
.marquee-bar {
  background: var(--blue);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.2);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track span {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding-right: 40px;
  flex-shrink: 0;
}

/* ── Layout helpers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Home: What is ODIN ── */
.what-is-odin .two-col { align-items: center; }

.what-is-odin .system-img {
  width: 100%;
  max-width: 460px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.what-is-odin p { margin-bottom: 16px; }

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── How does one use ODIN ── */
.how-steps ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-steps li { line-height: 1.7; }

/* ── Feature tables (questions / sensors) ── */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.feature-table th {
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.feature-table td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.feature-table tr:nth-child(odd) td { background: var(--row-alt); }
.feature-table tr:nth-child(even) td { background: var(--white); }

.feature-table td:first-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  width: 28%;
  white-space: nowrap;
}

.feature-table ul { padding-left: 18px; }
.feature-table li { margin-bottom: 4px; }

/* ── Pricing ── */
.pricing-intro { margin-bottom: 24px; line-height: 1.7; }

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.pricing-table th {
  background: var(--white);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 16px;
  text-align: center;
}
.pricing-table th.pricing-label-col {
  background: transparent;
  border: none;
}
.pricing-table th:not(.pricing-label-col) {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.pricing-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-table td.pricing-label-col {
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  border-left: none;
  border-right: none;
}
.pricing-table td:not(.pricing-label-col) {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.pricing-table tr:nth-child(odd) td:not(.pricing-label-col) { background: var(--row-alt); }
.pricing-table tr:nth-child(even) td:not(.pricing-label-col) { background: var(--white); }

/* ── App download ── */
.app-download { text-align: center; }
.app-download p { margin-bottom: 24px; }
.qr-grid {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.qr-item { text-align: center; }
.qr-item img { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); }
.qr-item .qr-label {
  display: block;
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.qr-item a.store-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--blue);
}

/* ── Studies table ── */
.studies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.studies-table th {
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
}
.studies-table th:nth-child(2) { text-align: left; }
.studies-table td {
  padding: 11px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.studies-table td:nth-child(2) { text-align: left; }
.studies-table tr:nth-child(odd) td { background: var(--row-alt); }
.studies-table tr:nth-child(even) td { background: var(--white); }
.studies-table td:first-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  width: 110px;
}
.studies-table td:nth-child(3),
.studies-table th:nth-child(3) { width: 60px; }
.studies-table td:nth-child(4),
.studies-table th:nth-child(4) { width: 130px; }

/* ── Footer ── */
.site-footer {
  background: var(--blue);
  margin-top: 0;
}

.footer-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.footer-logo-bar a {
  background: var(--white);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
}
.footer-logo-bar a img {
  height: 44px;
  width: auto;
}

/* ── About page ── */
.staff-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.staff-section:last-child { border-bottom: none; }

.staff-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.staff-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}
.staff-info p { line-height: 1.7; }

.staff-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.staff-photos img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  object-fit: cover;
}

/* ── Tutorials page ── */
.tutorial-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.tutorial-section:last-child { border-bottom: none; }

.tutorial-info h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.tutorial-info ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}

.tutorials-intro {
  text-align: center;
  padding: 40px 0 0;
  font-size: 15px;
  line-height: 1.8;
}
.tutorials-intro p { margin-bottom: 8px; }

/* ── Mobile hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue-dark);
  padding: 16px 24px;
  gap: 12px;
}
.mobile-menu a {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu.open { display: flex; }

/* ── Learn More button inside tables ── */
.btn-learn-more {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-learn-more:hover { background: #2a4f9b; }

/* ── Sensors table 3-column widths ── */
.sensors-table td:first-child,
.sensors-table th:first-child { width: 12%; }
.sensors-table td:nth-child(2),
.sensors-table th:nth-child(2) { width: 44%; }

/* ── Contact modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-box label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text);
  box-sizing: border-box;
}
.modal-box textarea { resize: vertical; }
.modal-box input:focus,
.modal-box textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }

.btn-submit {
  background: var(--blue);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-end;
  min-width: 140px;
}
.btn-submit:hover { background: #2a4f9b; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .staff-section { grid-template-columns: 1fr; }
  .tutorial-section { grid-template-columns: 1fr; }
  .staff-photos { flex-direction: row; justify-content: flex-start; }
  .staff-photos img { max-width: 160px; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .site-nav, .store-icons, .btn-signin { display: none; }
  .hamburger { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .section { padding: 36px 0; }
  .section-title { font-size: 19px; }
  .feature-table td:first-child { white-space: normal; width: auto; }
  .pricing-table { font-size: 12px; }
  .pricing-table th, .pricing-table td { padding: 8px 10px; }
  .studies-table { font-size: 13px; }
  .qr-grid { gap: 24px; }
  .qr-item img { width: 140px; height: 140px; }
}
