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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

/* Publication styles matching mobileworld.html */
.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.title.is-1.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 4rem !important;
  font-weight: 400;
  line-height: 1.125;
  margin-bottom: 1.5rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.publication-authors .author-name {
  color: #000;
}

.author-block {
  display: inline-block;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-block {
  margin: 0.25rem;
}

.responsive-image {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: #fafafa;
  padding: 12px 24px;
  text-align: center;
  z-index: 100;
}

.nav a {
  color: #333;
  text-decoration: none;
  margin: 0 16px;
  font-size: 15px;
}

.nav a:hover {
  color: #000;
}

/* Navbar Styles */
.navbar {
  padding: 0.75rem 1rem;
}

.navbar-item {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.navbar-item:hover {
  color: #000;
  background-color: transparent;
}

.navbar-link {
  color: #333;
  cursor: pointer;
}

.navbar-link:hover {
  color: #000;
}

.navbar-dropdown {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.navbar-dropdown .navbar-item {
  padding: 0.5rem 1.5rem;
}

.navbar-dropdown .navbar-item:hover {
  background-color: #f5f5f5;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1,
.header .title.is-1 {
  font-family: 'Google Sans', sans-serif;
  font-size: 3.5rem !important;
  font-weight: 400;
  line-height: 1.125;
  margin-bottom: 1.5rem;
  color: #111;
}

/* Hero Promotion Section */
.hero-promotion {
  margin: 0;
  padding: 0;
}

.promotion-container {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.promotion-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-right: 2rem;
}

.promotion-text {
  font-size: 2rem;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 400;
}

.promotion-button-wrapper {
  margin-top: auto;
}

.watch-demo-btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  font-weight: 500;
  background-color: #ffffff;
  color: #1a1a1a;
  border: none;
}

.watch-demo-btn:hover {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

.watch-demo-btn .icon {
  margin-right: 0.5rem;
}

.promotion-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.promotion-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.promotion-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .promotion-container {
    padding: 2rem 1.5rem;
  }
  
  .hero-promotion .columns {
    flex-direction: column;
  }
  
  .promotion-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .promotion-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .watch-demo-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Technical Highlights */
.highlights-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.highlight-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #333;
}

.highlight-icon {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.75rem;
  text-align: center;
}

.highlight-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .highlights-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .highlights-container {
    grid-template-columns: 1fr;
  }
}

.authors {
  margin-bottom: 8px;
  font-size: 15px;
}

.author {
  color: #1a5276;
}

.affiliations {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

.email {
  font-family: monospace;
  font-size: 13px;
}

.links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.link-btn:hover {
  background: #222;
}

/* Sections */
.section {
  margin-bottom: 0;
}

.section h2,
h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.5rem !important;
  font-weight: 400;
  margin-bottom: 8px;
  color: #000;
  text-align: center;
}

h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #000;
  text-align: center;
  margin-bottom: 16px;
}

.section p {
  margin-bottom: 8px;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Figures */
.figure {
  margin: 24px 0;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  margin-top: 12px;
  font-size: 18px;
  color: #000;
  line-height: 1.6;
  text-align: center;
}

figcaption {
  text-align: center;
  color: #000;
  font-size: 18px;
}

/* Figure Placeholder */
.figure-section {
  margin-bottom: 48px;
}

.figure-placeholder {
  background: #f9f9f9;
  border: 1px dashed #ccc;
  padding: 60px 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 24px 0;
}

.figure-placeholder .filename {
  font-family: monospace;
  font-size: 12px;
  color: #999;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background: #f5f5f5;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}

td:nth-child(1) {
  font-size: 12px;
  color: #666;
}

td:nth-child(2) {
  text-align: left;
  font-family: monospace;
  font-size: 13px;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  background: #e8e8e8;
}

.sort-icon {
  font-size: 10px;
  margin-left: 4px;
  color: #666;
}

tbody tr:hover {
  background: #fafafa;
}

/* Code */
.code-block {
  position: relative;
  margin: 16px 0;
}

.code-block pre {
  margin: 0;
  padding: 16px 20px;
  padding-right: 70px;
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  background: none;
  padding: 0;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #d1d5da;
  border-radius: 4px;
  cursor: pointer;
  color: #444;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #f0f0f0;
}

pre {
  background: #f5f5f5;
  padding: 16px 20px;
  overflow-x: auto;
  border-radius: 4px;
  margin: 16px 0;
}

code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
}

p code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Comparison Table */
.comparison-table td:first-child {
  text-align: left;
  font-size: 14px;
  color: #333;
}

.comparison-table td.yes {
  color: #22863a;
  font-weight: 500;
}

.comparison-table td.no {
  color: #cb2431;
}

.comparison-table tr.separator td {
  padding: 2px;
  background: #eee;
  border: none;
}

.comparison-table tr.highlight-row {
  background: #f0f7ff;
}

.comparison-table tr.highlight-row td {
  border-top: 2px solid #1a5276;
  border-bottom: 2px solid #1a5276;
}

/* Links */
a {
  color: #1a5276;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 14px;
}

.footer a {
  color: #666;
}

.footer a:hover {
  color: #333;
}

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

.feature-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.highlight-text {
  color: #d63384;
  font-weight: bold;
}

.stat-badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: #0d6efd;
  margin-left: 5px;
}

/* Demo Grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.demo-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.demo-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-video-caption {
  text-align: center;
  font-size: 18px;
  color: #000;
  margin-top: 10px;
}

/* Grounding Tables */
.grounding-tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.grounding-table-wrapper {
  min-width: 0;
}

.grounding-table-wrapper .benchmark-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: #333;
}

.grounding-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

.grounding-table-wrapper table thead th {
  padding: 0.5rem 0.3rem;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #333;
  font-size: 0.8rem;
}

.grounding-table-wrapper table thead th[style*="center"] {
  text-align: center;
}

.grounding-table-wrapper table tbody td {
  padding: 0.4rem 0.3rem;
  text-align: left;
  font-size: 0.8rem;
}

.grounding-table-wrapper table tbody td:first-child {
  text-align: left;
  min-width: 120px;
}

.grounding-table-wrapper table .group-header {
  font-weight: 600;
  text-align: center;
  font-style: italic;
}

.grounding-table-wrapper table .val-cell {
  text-align: center;
}

.grounding-table-wrapper table .sub-row {
  font-size: 0.75rem;
}

/* Navigation Tables */
.navigation-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.navigation-table-wrapper {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.navigation-table-wrapper .benchmark-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: #333;
}

.navigation-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}

.navigation-table-wrapper table thead th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #333;
  height: 3rem;
  vertical-align: middle;
}

.navigation-table-wrapper table thead th[style*="center"] {
  text-align: center;
}

.navigation-table-wrapper table tbody td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  height: 2.5rem;
  vertical-align: middle;
}

.navigation-table-wrapper table tbody td:first-child {
  text-align: left;
}

.navigation-table-wrapper table .group-header {
  font-weight: 600;
  text-align: center;
  font-style: italic;
}

.navigation-table-wrapper table .val-cell {
  text-align: center;
}

/* Responsive */
@media (max-width: 1000px) {
  .grounding-tables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .grounding-tables-grid {
    grid-template-columns: 1fr;
  }

  .navigation-tables-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .nav a {
    margin: 0 8px;
    font-size: 13px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px 6px;
  }
}
