:root {
  --background: #f8f9fb;
  --foreground: #111827;

  --card: #ffffff;
  --card-border: #e5e7eb;

  --muted: #64748b;

  --primary: #d97706;
  --primary-hover: #b45309;

  --shadow: rgba(0, 0, 0, 0.08);

  --grid-line: rgba(0, 0, 0, 0.04);
}

body.dark {
  --background: #0f172a;
  --foreground: #f8fafc;

  --card: #111827;
  --card-border: #334155;

  --muted: #94a3b8;

  --shadow: rgba(0, 0, 0, 0.4);

  --grid-line: rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: Inter, sans-serif;

  background: var(--background);
  color: var(--foreground);

  transition:
    background .3s ease,
    color .3s ease;

  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(
      90deg,
      var(--grid-line) 1px,
      transparent 1px
    );

  background-size: 40px 40px;
}

h1,
h2,
h3 {
  font-family: "Exo 2", sans-serif;
  margin-top: 0;
}

a {
  text-decoration: none;
}

/* ========================= */
/* NAVIGATION */
/* ========================= */

.navbar {
  position: sticky;
  top: 0;

  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 2%;

  backdrop-filter: blur(12px);

  background:
    color-mix(
      in srgb,
      var(--background) 85%,
      transparent
    );
}

/* Main business logo container in the navbar */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* The business logo image — constrained to navbar height, preserving aspect ratio */
.site-logo {
  height: 38px;       /* Matches the navbar's comfortable height */
  width: auto;        /* Let the image determine its own width */
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

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

#themeToggle {
  border: none;
  background: none;

  color: var(--foreground);

  cursor: pointer;

  font-size: 1.2rem;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
  padding: 8rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 1rem 0;
}

.hero-description {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-products {
  margin: 2rem 0;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn {
  display: inline-block;

  padding:
    .9rem
    1.5rem;

  border-radius: 12px;

  transition: .2s ease;
}

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

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

.btn-secondary {
  color: var(--foreground);

  border:
    1px solid
    var(--card-border);
}

/* ========================= */
/* SECTIONS */
/* ========================= */

.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

.bundle-description {
  text-align: center;
  margin-top: 2rem;
}

/* ========================= */
/* GRIDS */
/* ========================= */

.foundation-grid,
.comparison-grid,
.why-grid,
.product-grid,
.roadmap-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.foundation-grid,
.comparison-grid {
  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));
}

.why-grid {
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));
}

.product-grid {
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));
}

.roadmap-grid {
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));
}

/* ========================= */
/* ECOSYSTEM */
/* ========================= */

.ecosystem-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 1.5rem;

  max-width: 1000px;
  margin: auto;
}

.ecosystem-card {
  background: var(--card);

  border:
    1px solid
    var(--card-border);

  border-radius: 16px;

  padding: 1.5rem;

  text-align: center;

  transition: .25s ease;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
}

.ecosystem-card span {
  color: var(--muted);
}

/* ========================= */
/* CARDS */
/* ========================= */

.card {
  background: var(--card);

  border:
    1px solid
    var(--card-border);

  border-radius: 16px;

  padding: 1.5rem;

  transition: .25s ease;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 10px 30px
    var(--shadow);
}

.featured {
  border:
    2px solid
    var(--primary);
}

.acronym {
  color: var(--primary);
  font-size: .9rem;
}

.badge {
  display: inline-block;

  padding:
    .3rem .75rem;

  border-radius: 999px;

  background: #cbd5e1;

  color: black;

  font-size: .75rem;

  margin-bottom: 1rem;
}

.badge.available {
  background: var(--primary);
  color: white;
}

/* ========================= */
/* SCREENSHOT PLACEHOLDER */
/* ========================= */

.screenshot-placeholder {
  height: 220px;

  margin-top: 1rem;

  border-radius: 12px;

  border:
    1px dashed
    var(--card-border);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);
}

/* ========================= */
/* TAGS */
/* ========================= */

.tags {
  display: flex;
  gap: .75rem;

  flex-wrap: wrap;

  justify-content: center;

  margin-top: 2rem;
}

.tags span {
  background: var(--card);

  border:
    1px solid
    var(--card-border);

  padding:
    .6rem 1rem;

  border-radius: 999px;
}

/* ========================= */
/* REVEAL */
/* ========================= */

.reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {

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

@media (max-width: 768px) {

  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .bundle-member {
  border: 2px solid var(--primary);
  position: relative;
}

.bundle-tag {
  position: absolute;
  top: -12px;
  right: 16px;

  background: var(--primary);
  color: white;

  font-size: .75rem;
  font-weight: 600;

  padding: .35rem .75rem;
  border-radius: 999px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.ecosystem-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: .25s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}
}

/* Navbar border */
.navbar{
  border-bottom:2px solid var(--card-border);
  box-shadow:0 4px 12px var(--shadow);
}

/* Community single card centering */
.comparison-grid{
  max-width:700px;
  margin:auto;
}

/* Contact section */
#contact a{
  color:var(--primary);
  font-weight:600;
}

/* Modern animations */
#scroll-progress{
  position:fixed;
  top:0;
  left:0;
  height:3px;
  width:0;
  z-index:9999;
  background:var(--primary);
}

.hero{position:relative;overflow:hidden;}
.hero::before{
content:"";
position:absolute;
width:700px;height:700px;
top:-250px;left:50%;
transform:translateX(-50%);
background:radial-gradient(circle, rgba(217,119,6,.18), transparent 70%);
animation:heroFloat 10s ease-in-out infinite;
pointer-events:none;
}
@keyframes heroFloat{
0%,100%{transform:translateX(-50%) translateY(0);}
50%{transform:translateX(-50%) translateY(25px);}
}

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


/* Center navbar content with rest of page */
.navbar{
  max-width:1200px;
  margin:0 auto;
  left:0;
  right:0;
}

/* Center community card content */
#community .card{
  text-align:center;
}

#community .card ul{
  list-style-position:inside;
  padding-left:0;
}

#community .comparison-grid{
  justify-content:center;
}


/* HARBOR field alignment fixes */
.editable-field,
.detail-value input,
.detail-value textarea,
.detail-value select,
.record-item-body input,
.record-item-body textarea,
.record-item-body select {
    margin-left: 0 !important;
    padding-left: 0.35rem !important;
    text-indent: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.detail-value,
.field-value,
.field-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.detail-grid > div,
.field-group,
.field-container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#dashboard-summary-bar{min-height:48px;margin:.25rem 0;}
.main-content{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5rem;}
.asset-list{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important;gap:.2rem!important;}
.asset-item{padding:.2rem .25rem!important;gap:.15rem!important;}



/* ========================= */
/* PRODUCT BLOCKS            */
/* (ATLAS, HARBOR full-width */
/*  vertical layout)         */
/* ========================= */

.product-block {
  margin: 3rem 0;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 24px var(--shadow);
}

.product-block.bundle-member {
  border: 2px solid var(--primary);
}

.product-block-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.product-block-header h3 {
  font-size: 1.8rem;
  margin: 0.5rem 0 0.25rem;
}

.product-block-header .badge {
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--muted);
  margin: 0.5rem 0 0;
  line-height: 1.7;
  max-width: 700px;
}

/* ========================= */
/* SCREENSHOT GALLERY        */
/* (thumbnail strip + large  */
/*  main image, no cropping) */
/* ========================= */

.screenshot-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
  user-select: none;
}

/* ── Thumbnail strip ── */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--background);
}

.gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
  width: 100px;
}

.gallery-thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  display: block;
}

.gallery-thumb span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb.active span {
  color: var(--primary);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* ── Main image area ── */
.gallery-main-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-main-viewport {
  overflow: hidden;
  flex: 1;
}

.gallery-main-track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-main-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background);
  height: 480px;        /* fixed — every image gets the same box */
}

.gallery-main-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;  /* whole image visible, letterboxed, never cropped */
  object-position: center;
}

/* ── Arrow buttons ── */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--card-border);
  color: var(--foreground);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.18s ease, background 0.18s ease;
  padding: 0;
  backdrop-filter: blur(4px);
}

.gallery-arrow:hover {
  opacity: 1;
  background: var(--card);
}

.gallery-arrow-left  { left: 10px; }
.gallery-arrow-right { right: 10px; }

/* ── Caption bar below main image ── */
.gallery-label-main {
  margin: 0;
  padding: 0.55rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
  background: var(--card);
  text-align: center;
}

/* ── Coming-soon grid below the product blocks ── */
.coming-soon-grid {
  margin-top: 3rem;
}


/* ========================= */
/* ABOUT SECTION             */
/* ========================= */

.about-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.about-text {
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 1.4rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .about-card {
    padding: 1.5rem 1.25rem;
  }

  .gallery-thumb {
    width: 76px;
  }

  .gallery-thumb img {
    height: 44px;
  }

  .product-block-header {
    padding: 1.25rem 1.25rem 1rem;
  }
}
