
/* ====================================================================================================
Robotat Linalg - Landing page CSS
==================================================================================================== */

/* ---------------------------------------------------------------------------------------------------
Imports
--------------------------------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&family=IBM+Plex+Serif:wght@300;400&display=swap');

/* ---------------------------------------------------------------------------------------------------
General layout
--------------------------------------------------------------------------------------------------- */

:root {
  --color-page-background: #ffffff;
  --color-page-foreground: #e2e2e2;
  --color-text-main: #141414;
  --color-text-secondary: #424242;
  --color-text-content: #787878;
  --color-accent-main: #407bb9;
  --color-accent-dark: #2f465e;
  --color-accent-light: #75ace7;
  --color-sidebar-background: #141414;
  --color-code-background: #232323;
  --color-code-foreground: #ececec;
  --color-card-background: #cecece;
  --color-border: #424242;
  --color-white: #fff;
  --color-black: #000;

  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-monospace: 'SFMono-Regular', Consolas, Menlo, monospace;
  --font-family-eyebrow: 'JetBrains Mono', var(--font-family-monospace);
  --font-family-heading: 'IBM Plex Sans', var(--font-family);
  --font-family-eyebrow: 'IBM Plex Serif', serif;

  --max-width: 1100px;
  --radius: 2.5px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-page-background);
  color: var(--color-page-foreground);
  line-height: 1.6;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
}
a:hover { color: var(--color-accent-main); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------------------------------------
Navigation Bar (navbar)
--------------------------------------------------------------------------------------------------- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-sidebar-background);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-brand {
  font-weight: 700;
  color: var(--color-page-background);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-content);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-accent-light); }

/* ---------------------------------------------------------------------------------------------------
Section Style
--------------------------------------------------------------------------------------------------- */

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-page-foreground);
  margin-bottom: 10px;
  display: block;
  font-family: var(--font-family-eyebrow);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
  font-family: var(--font-family-heading);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0 0 14px;
  text-align: center;
}

.section-body-text {
  color: var(--color-text-content);
  font-size: 1rem;
  margin: 0 0 24px;
  text-align: left;
}

.section-list {
  color: var(--color-text-content);
  font-size: 1rem;
  margin: 0;
  text-align: left;
}

.container {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 64px;
}

section > .container > p.lead {
  color: var(--color-text-content);
  max-width: 720px;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------------------------------
About Section
--------------------------------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.about-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin: 0 0 14px;
}

.about-heading {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.3;
  margin: 0;
}

.about-body-text {
  color: var(--color-text-content);
  font-size: 1rem;
  margin: 0;
  text-align: left;
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------------------------------------------------------------------------------------------------
Features Section
--------------------------------------------------------------------------------------------------- */

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

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

/* ---------------------------------------------------------------------------------------------------
Benchmarks Section
--------------------------------------------------------------------------------------------------- */

.benchmark-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  align-items: center;
  padding-top: 20px;
}

.slideshow-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slideshow {
  flex: 1;
  /* border: 3px solid var(--color-text-content); */
  background-color: var(--color-page-background);
  /* border-radius: var(--radius); */
  overflow: hidden;
  aspect-ratio: 4.5/5;
  padding: 10px;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.slide-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-page-background);
  background: var(--color-page-background);
  color: var(--color-border);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.slide-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot.active {
  background: var(--color-accent-main);
  transform: scale(1.2);
}

@media (max-width: 780px) {
  .benchmark-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.table-body {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.table-body th,
.table-body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table-body th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-align: center;
}

.table-body td {
  color: var(--color-text-secondary);
  text-align: center;
}

.table-body th:first-child,
.table-body td:first-child {
  text-align: left;
}

.table-body td:first-child {
  color: var(--color-text-secondary);
}

.table-body tbody tr:last-child td {
  border-bottom: none;
}

.table-footnote {
  font-size: 0.8rem;
  color: var(--color-text-content);
  margin-top: 10px;
  margin-bottom: 0;
}

.table-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

.benchmark-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------------------------------------------------------------------------------------------------
Footer
--------------------------------------------------------------------------------------------------- */

footer {
  padding: 48px 0 32px;
  background: var(--color-page-background);
}

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

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-content);
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 8px; }

.footer-grid a {
  color: var(--color-text-content);
  font-size: 0.9rem;
}
.footer-grid a:hover { color: var(--color-text-main); }

.footer-bottom {
  font-size: 0.85rem;
  color: var(--color-text-content);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-container {
  padding-bottom: 5px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-container > p.lead {
  color: var(--color-text-content);
  max-width: var(--max-width);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------------------------------
Card Grid
--------------------------------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card-item-with-border {
  background: var(--color-page-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-item-without-border {
  background: var(--color-page-background);
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-item-with-border h4 {
  margin: 0 0 2.5px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.card-item-without-border h4 {
  margin: 0 0 2.5px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.card-item-with-border p {
  margin: 0;
  color: var(--color-text-content);
  font-size: 1rem;
}

.card-item-without-border p {
  margin: 0;
  color: var(--color-text-content);
  font-size: 1rem;
}

.card-subtitle {
  margin: 0;
  color: var(--color-text-content);
  font-size: 1rem;
  font-weight: 700;
}

.feature-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) opacity(1)
}