/*
  ZelAccess Landing — Gruvbox theme + Fira Sans
*/

:root {
  --gb-bg: #282828;
  --gb-bg-soft: #1d2021;
  --gb-surface: #3c3836;
  --gb-surface-2: #504945;
  --gb-text: #ebdbb2;
  --gb-text-muted: #d5c4a1;
  --gb-primary: #fe8019; /* orange */
  --gb-accent: #b8bb26;  /* green */
  --gb-info: #83a598;    /* blue */
  --gb-magenta: #d3869b; /* purple */
  --gb-yellow: #fabd2f;  /* yellow */
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Fira Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--gb-bg), var(--gb-bg-soft));
  color: var(--gb-text);
  line-height: 1.6;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--gb-bg) 85%, transparent);
  border-bottom: 1px solid rgba(235, 219, 178, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gb-primary), var(--gb-accent));
  color: #1d2021;
  font-weight: 800;
}
.brand .brand-text { font-weight: 600; letter-spacing: 0.2px; }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--gb-text); text-decoration: none; opacity: 0.85; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { opacity: 1; color: var(--gb-yellow); }

/* Buttons */
.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: .2s ease;
  color: var(--gb-text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gb-primary), var(--gb-yellow));
  color: #1d2021;
  box-shadow: var(--shadow);
}
.btn-accent {
  background: linear-gradient(135deg, var(--gb-accent), var(--gb-info));
  color: #1d2021;
  box-shadow: var(--shadow);
}
.btn-ghost {
  border: 1px solid rgba(235,219,178,0.25);
  background: rgba(60, 56, 54, 0.35);
}
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: 1.9rem; margin: 0 0 24px; letter-spacing: .3px; }

.hero {
  padding-top: 96px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(90vh 90vh at 10% 10%, rgba(254,128,25,0.15), transparent 60%),
              radial-gradient(70vh 70vh at 90% 30%, rgba(184,187,38,0.13), transparent 60%);
}
.hero > .container { position: relative; z-index: 1; }

/* Animated color blobs in hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.22;
  will-change: transform;
}
.hero::before {
  width: 60vw; height: 60vw;
  left: -15vw; top: -10vw;
  background: radial-gradient(closest-side, var(--gb-primary), transparent 70%);
  animation: blobA 26s ease-in-out infinite alternate;
}
.hero::after {
  width: 50vw; height: 50vw;
  right: -10vw; top: -6vw;
  background: radial-gradient(closest-side, var(--gb-accent), transparent 70%);
  animation: blobB 30s ease-in-out infinite alternate;
}

@keyframes blobA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes blobB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 8vh) scale(1.08); }
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 12px; }
.hero p { color: var(--gb-text-muted); margin: 0 0 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.hero-card { display: grid; }
.hero-card-inner {
  background: linear-gradient(180deg, rgba(60,56,54,0.8), rgba(29,32,33,0.8));
  border: 1px solid rgba(235,219,178,0.12);
  padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card-inner.why {
  padding: 26px 22px 20px;
  border: 1px solid rgba(235,219,178,0.22);
  background:
    radial-gradient(60% 80% at 8% -10%, rgba(254,128,25,0.10), transparent 60%),
    radial-gradient(40% 70% at 100% 0%, rgba(184,187,38,0.10), transparent 60%),
    linear-gradient(180deg, rgba(60,56,54,0.85), rgba(29,32,33,0.88));
}
.hero-card-inner.why h3 { margin: 0 0 12px; color: var(--gb-yellow); }
.hero-card-inner.why .checklist { display: grid; gap: 10px; margin-top: 12px; }
.hero-card-inner.why .checklist li {
  position: relative;
  padding: 12px 16px 12px 28px; /* extra left space before sentence */
  border-radius: 10px;
  background: rgba(60,56,54,0.55);
  border: 1px solid rgba(235,219,178,0.14);
}
.hero-card-inner.why .checklist li::before { content: none; }
.hero-card-inner.why .checklist li::after {
  content: '';
  position: absolute; left: 12px; top: 10px; bottom: 10px; width: 4px; /* move accent bar away from edge */
  border-radius: 2px; opacity: .7;
  background: linear-gradient(180deg, var(--gb-accent), var(--gb-info));
}
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li::before { content: none; }

/* Cards */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(80,73,69,0.5), rgba(60,56,54,0.6));
  border: 1px solid rgba(235,219,178,0.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card h3 { margin: 0 0 6px; color: var(--gb-yellow); font-weight: 600; }
.card p { margin: 0; color: var(--gb-text-muted); }

/* Icons */
.ico { width: 18px; height: 18px; display: inline-block; }
.card .ico { width: 22px; height: 22px; color: var(--gb-yellow); }
.btn .ico { width: 18px; height: 18px; }

/* Specs */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr; } }
.spec {
  display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: center;
  background: rgba(60,56,54,0.5); border: 1px solid rgba(235,219,178,0.12);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.spec-key { color: var(--gb-info); font-weight: 600; }
.spec-val { color: var(--gb-text); }

/* FAQ */
.faq details { background: rgba(60,56,54,0.5); border: 1px solid rgba(235,219,178,0.12); border-radius: var(--radius-sm); padding: 12px 14px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--gb-magenta); }
.faq p { margin: 10px 0 0; color: var(--gb-text-muted); }

/* Gallery */
.gallery { --size: 220px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--size), 1fr)); gap: 14px; }
.shot { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; perspective: 900px; }
.shot img {
  display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px;
  border: 2px solid var(--gb-surface); box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
  transition: transform .12s ease-out, filter .25s ease, box-shadow .2s ease;
}
.shot img:hover { filter: saturate(1.05); cursor: zoom-in; }

/* Shine effect overlay + dynamic glare */
.shot::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 600px at var(--gx,50%) var(--gy,50%), rgba(255,255,255,0.20), rgba(255,255,255,0) 50%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity .2s ease; border-radius: var(--radius);
}
.shot:hover::before { opacity: .45; }
.shot::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -60%;
  width: 40%;
  height: 340%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.06) 60%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: var(--radius);
  will-change: transform;
}
.shot:hover::after { transform: translateX(220%); }

/* Stronger depth on hover */
.shot:hover img { box-shadow: 0 22px 60px rgba(0,0,0,0.55); }

.center { text-align: center; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(235,219,178,0.08);
  background: color-mix(in oklab, var(--gb-bg) 90%, transparent);
  padding: 18px 0; color: var(--gb-text-muted);
}
.footer-inner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer-inner .dot { opacity: 0.6; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; }
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.lightbox-content {
  position: relative; z-index: 2; display: grid; gap: 10px; justify-items: center;
  background: #1d2021; padding: 14px; border-radius: var(--radius); border: 1px solid rgba(235,219,178,0.18);
  box-shadow: var(--shadow);
}
.lightbox-viewport {
  width: min(92vw, 1400px);
  max-width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.lightbox-viewport img { max-width: 100%; max-height: 100%; border-radius: 8px; transform-origin: center center; }
.lightbox-controls { display: flex; gap: 10px; }
.lightbox .btn { background: rgba(60,56,54,0.8); border: 1px solid rgba(235,219,178,0.18); }
.lightbox .btn:hover { background: rgba(80,73,69,0.9); }

/* Utility */
.hidden { display: none !important; }

/* Spec accordion */
.spec-accordion details { background: rgba(60,56,54,0.5); border: 1px solid rgba(235,219,178,0.12); border-radius: var(--radius-sm); padding: 12px 14px; }
.spec-accordion details + details { margin-top: 10px; }
.spec-accordion summary { cursor: pointer; font-weight: 600; color: var(--gb-info); }
.spec-accordion ul { margin: 10px 0 0 18px; color: var(--gb-text-muted); }

/* Muted text */
.muted { color: var(--gb-text-muted); }

/* Launch spacing */
#launch .launch-wrap { display: grid; gap: 16px; justify-items: center; }
#launch .lead { margin: 0; color: var(--gb-text-muted); }
.launch-notes {
  max-width: 900px;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 10px;
  padding: 22px 20px 22px 28px;
  background: rgba(60,56,54,0.45);
  border: 1px solid rgba(235,219,178,0.12);
  border-radius: var(--radius);
}

/* Spec squares */
.spec-squares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.spec-square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(235,219,178,0.12);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.spec-square { cursor: pointer; border: 1px solid rgba(235,219,178,0.2); }
.spec-square h4 { margin: 0; font-size: 0.98rem; line-height: 1.25; }
.spec-square:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0,0,0,0.5); filter: saturate(1.05); }
.spec-square:focus-visible { outline: 2px solid var(--gb-yellow); outline-offset: 2px; }
.spec-square { flex-direction: column; gap: 8px; }
.ico-xl { width: 28px; height: 28px; color: #1d2021; }

/* Color cycles using Gruvbox accents */
.spec-square { color: #1d2021; }
.spec-square:nth-child(12n+1) { background: linear-gradient(135deg, var(--gb-primary), var(--gb-yellow)); }
.spec-square:nth-child(12n+2) { background: linear-gradient(135deg, var(--gb-accent), var(--gb-info)); }
.spec-square:nth-child(12n+3) { background: linear-gradient(135deg, var(--gb-magenta), var(--gb-primary)); }
.spec-square:nth-child(12n+4) { background: linear-gradient(135deg, var(--gb-yellow), var(--gb-accent)); }
.spec-square:nth-child(12n+5) { background: linear-gradient(135deg, var(--gb-info), var(--gb-magenta)); }
.spec-square:nth-child(12n+6) { background: linear-gradient(135deg, var(--gb-primary), var(--gb-accent)); }
.spec-square:nth-child(12n+7) { background: linear-gradient(135deg, #8ec07c, #fabd2f); }
.spec-square:nth-child(12n+8) { background: linear-gradient(135deg, #83a598, #fe8019); }
.spec-square:nth-child(12n+9)  { background: linear-gradient(135deg, #d3869b, #b8bb26); }
.spec-square:nth-child(12n+10) { background: linear-gradient(135deg, #fabd2f, #83a598); }
.spec-square:nth-child(12n+11) { background: linear-gradient(135deg, #b8bb26, #d3869b); }
.spec-square:nth-child(12n+12) { background: linear-gradient(135deg, #fe8019, #83a598); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1100; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.modal-content {
  position: relative; z-index: 2; width: min(780px, 92vw); max-height: 76vh; overflow: auto;
  background: #1d2021; border: 1px solid rgba(235,219,178,0.18); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal-head .head-left { display: flex; align-items: center; gap: 10px; }
.modal-head h3 { margin: 0; color: var(--gb-yellow); }
.modal-list { margin: 0; padding-left: 18px; color: var(--gb-text-muted); }
.modal-list li { margin: 6px 0; }

/* Drawer variant for spec modal */
.drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  height: 100vh;
  width: min(560px, 95vw);
  max-height: none;
  border-radius: 12px 0 0 12px;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.modal[aria-hidden="false"] .drawer { transform: translateX(0); }
