/* DEEPAttendance product brochure — dark-first */
:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --surface: #172033;
  --text: #e8eef8;
  --muted: #9aa8c0;
  --line: rgba(232, 238, 248, 0.1);
  --accent: #3db8a8;
  --accent-2: #5b8def;
  --accent-3: #e8b86d;
  --danger: #e86d7a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --nav-h: 72px;
  --max: 1120px;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: #eef3f9;
  --text: #142033;
  --muted: #5a6b84;
  --line: rgba(20, 32, 51, 0.12);
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.lightbox-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #041018;
  padding: 0.6rem 1rem;
  z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 100000;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.loader-brand img {
  height: 52px;
  width: auto;
  max-width: min(320px, 80vw);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #fff;
}
.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: load 1s infinite ease-in-out;
}
@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(61, 184, 168, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(91, 141, 239, 0.16), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(232, 184, 109, 0.08), transparent 50%);
}
.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-brand {
  margin: 0 0 1.1rem;
  display: inline-flex;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-brand img {
  height: clamp(48px, 8vw, 72px);
  width: auto;
  max-width: min(420px, 90vw);
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
  flex-direction: column;
  background: var(--bg-elev);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2f9e90);
  color: #041018;
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0 0 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.proof div {
  min-width: 7rem;
}
.proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.proof span { color: var(--muted); font-size: 0.85rem; }

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-elev), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 320px;
  padding: 1.25rem;
}
.hero-visual .chrome {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.hero-visual .chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.hero-visual .row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
.pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill-day { background: rgba(91, 141, 239, 0.2); color: #9bbcff; }
.pill-night { background: rgba(61, 184, 168, 0.2); color: #7de0d2; }
.pill-inv { background: rgba(232, 109, 122, 0.2); color: #ffb0b8; }
[data-theme="light"] .pill-day { color: #2f5fbe; }
[data-theme="light"] .pill-night { color: #1f7d72; }
[data-theme="light"] .pill-inv { color: #b53a48; }

section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.section-head p { margin: 0; color: var(--muted); }

.portal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.portal-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}
.portal-card p { color: var(--muted); margin: 0 0 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.bento-item {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.25rem;
}
.bento-item.wide { grid-column: span 6; }
.bento-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}
.bento-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.25rem 1.35rem;
}
.ops-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.ops-card p { margin: 0; color: var(--muted); }

.before-after {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.ba-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem;
}
.ba-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ba-card .before {
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 0.35rem;
}
.ba-card .arrow {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ba-card .after { font-weight: 600; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.tab {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-elev);
}
.tab.active {
  color: #041018;
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.module-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.35rem;
}
.module-panel ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.timeline {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
.step h3 { margin: 0 0 0.25rem; font-size: 1.05rem; font-family: var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.arch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.benefit {
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.benefit h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.filter-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.filter-chip.active {
  background: var(--accent-2);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.gallery-group { margin-bottom: 1.75rem; }
.gallery-group h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.shot {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg);
}
.shot .cap {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.shot-placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent));
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  z-index: 200000;
  padding: 1.5rem;
}
.lightbox.open { display: grid; }
.lightbox-panel {
  width: min(980px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.lightbox-toolbar .caption { flex: 1; color: var(--muted); font-size: 0.92rem; }
.lightbox-img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  background: #000;
}
.lightbox-nav { display: flex; gap: 0.4rem; }

.cta {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(61, 184, 168, 0.18), transparent 70%),
    var(--bg-elev);
}
.cta h2 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta p { color: var(--muted); margin: 0 0 1.25rem; }

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.form-note {
  display: none;
  color: var(--accent);
  font-size: 0.92rem;
  text-align: center;
}
.form-note.show { display: block; }

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.powered {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.powered img {
  height: 28px;
  width: auto;
  opacity: 0.95;
}
[data-theme="dark"] .powered img,
:root:not([data-theme="light"]) .powered img {
  filter: brightness(0) invert(1);
}
[data-theme="light"] .powered img {
  filter: none;
}
.footer small { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .ops-grid,
  .before-after,
  .benefits,
  .gallery-grid { grid-template-columns: 1fr; }
  .bento-item,
  .bento-item.wide { grid-column: span 12; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .burger { display: grid; }
  .nav-actions .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-bar span { animation: none; width: 100%; }
}
