/* =========================================================
   Base + layout
   ========================================================= */

:root {
  --bg: #f7f7f7;
  --text: #222;
  --muted: #555;
  --border: #e5e5e5;
  --link: #0b5bd3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.home-link {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.home-link a {
  opacity: 0.8;
}

.home-link a:hover {
  opacity: 1;
}
/* Imagery */

.hero-image {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Mobile-first: short, intentional hero */
.hero-image img {
  width: 100%;
  height: 180px;        /* key line */
  object-fit: cover;
  display: block;
}

@media (max-width: 520px) {
  .hero-image {
    margin-bottom: 1rem;
  }
}

/* Tablets / small laptops */
@media (min-width: 600px) {
  .hero-image img {
    height: 240px;
  }
}

/* Larger screens */
@media (min-width: 900px) {
  .hero-image img {
    height: 300px;
  }
}

/* Subtle tech layer: faint grid + gentle glow */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;

  /* 1) faint grid */
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.07) 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(255,255,255,0.35), transparent 45%);
  background-size: 36px 36px, 36px 36px, cover;

  opacity: 0.18;        /* overall strength of the “tech” */
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Smaller hero strip for inner pages */
.page-hero {
  position: relative;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 1.75rem;

  background-image: url("/images/hero-desert.png");
  background-size: cover;
  background-position: center;
}

/* Subtle tech overlay */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.10;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Inner pages: slightly shorter on small screens */
@media (max-width: 520px) {
  .page-hero { height: 90px; }
}


/* Limit readable line length */
.prose {
  max-width: 70ch;
}

/* Typography rhythm */
h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  margin-bottom: 1rem;
}


h1 { font-size: 2.2rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-top: 2rem; }

p {
  margin: 0 0 1.25rem;
  line-height: 1.65;
}


.lede {
  color: var(--muted);
  max-width: 60ch;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   Forms (clean + readable)
   ========================================================= */

.form { margin-top: 2rem; }

.field { margin: 0 0 1rem; }

label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

textarea { resize: vertical; }

.checkbox label { font-weight: 400; }

.checkbox input {
  width: auto;
  margin-right: 0.5rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid #111;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.button:hover { opacity: 0.92; }

.form-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden { display: none; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: #666;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav { margin-bottom: 0.5rem; }

.footer-nav a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.25rem;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-meta { margin: 0; }

/* Products */
.products {
  margin-top: 2.5rem;
}

.products h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card {
  border-radius: 16px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
 }

.product-card-muted {
  opacity: 0.85;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.75rem 0 1rem;
}


.product-image img {
  display: block;
  max-width: 200px;
  width: auto;
  min-height: 170px;
}


.product-image--logo {
  display: flex;
  justify-content: center;
  background: transparent;
  border: none;
}

.product-image--logo img {
  max-width: 200px;
  width: auto;
  height: auto;
}



.badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.badge-live { }
.badge-soon { opacity: 0.9; }

.product-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Card buttons (separate from .button used in forms) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.95;
}

.btn-primary {
  border-color: #111;
  background: #111;
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn-disabled{
  pointer-events:none;
  opacity:0.45;
  filter: grayscale(0.2);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}
.modal.is-open { display: block; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.modal__dialog {
  position: relative;
  width: min(720px, 92vw);
  max-width: 720px;
  margin: 6vh auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.modal__header, .modal__footer {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.modal__header {
  border-bottom: 1px solid var(--border);
}

.modal__brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.modal__icon{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}

.modal__icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__subtitle {
  margin: 0.25rem 0 0;
  color: #555;
  font-size: 0.95rem;
}

.modal__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.modal__body {
  padding: 1rem 1.25rem 1.25rem;
  overflow: hidden;
}

.note { color: #555; margin-top: 0.75rem; }

.modal-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-usb-image {
  max-width: 100%;
  max-height: 260px; /* adjust to taste */
  height: auto;
  opacity: 0.95;
}


/* Carousel */

.carousel {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 220ms ease;
  will-change: transform;
}

.carousel__slide {
  width: 100%;
  flex: 0 0 100%;
  padding: 0.25rem 0;
}

.carousel__slide h3 { margin-top: 0; }

.path {
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  overflow: auto;
}

.carousel__controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dots { display: flex; gap: 0.45rem; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.dot.is-active { background: #111; border-color: #111; }

.footer-note { color: #666; font-size: 0.9rem; }



@media (min-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (hover:hover){
  .product-card:hover{
    transform: translateY(-2px);
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  }
}

