:root {
  color-scheme: dark;
  --ink: #f6f8ff;
  --muted: #aab4cc;
  --page: #07101f;
  --page-deep: #040a14;
  --surface: #101b2e;
  --surface-2: #15233a;
  --line: rgba(173, 194, 235, 0.16);
  --accent: #29a9ff;
  --accent-2: #3ddc84;
  --accent-rgb: 41, 169, 255;
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% -10%, rgba(var(--accent-rgb), 0.18), transparent 35rem),
    radial-gradient(circle at 95% 20%, rgba(61, 220, 132, 0.1), transparent 34rem),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.app-jotleaf {
  --accent: #61db75;
  --accent-2: #14c7c3;
  --accent-rgb: 97, 219, 117;
}

body.app-timesheet {
  --accent: #168cff;
  --accent-2: #6bdc42;
  --accent-rgb: 22, 140, 255;
}

body.app-scheduler {
  --accent: #12b8f4;
  --accent-2: #00d15c;
  --accent-rgb: 18, 184, 244;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-weight: 800;
}

.skip-link:focus { transform: none; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 13, 26, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, #193156, #0b1729);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: -0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display-title, .page-title, .section-title {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.display-title {
  max-width: 920px;
  font-size: clamp(3.2rem, 8.4vw, 7.6rem);
}

.page-title { font-size: clamp(3.2rem, 8vw, 6.7rem); }
.section-title { font-size: clamp(2.35rem, 5.5vw, 4.8rem); }

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #c8d0e2;
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 170px) 0 clamp(76px, 12vw, 140px);
}

.home-hero::before {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 66%);
  content: "";
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #ced7e9;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.1);
  content: "";
}

.hero-orbit {
  display: flex;
  margin-top: 54px;
  align-items: center;
  gap: 12px;
}

.hero-orbit img {
  width: clamp(54px, 8vw, 82px);
  height: clamp(54px, 8vw, 82px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
  object-fit: cover;
}

.hero-orbit img:nth-child(2) { transform: translateY(16px); }
.hero-orbit img:nth-child(3) { transform: translateY(-8px); }

.hero-orbit-line {
  width: min(280px, 30vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent);
}

.section { padding: clamp(76px, 11vw, 136px) 0; }
.section-compact { padding: clamp(54px, 8vw, 90px) 0; }

.section-heading {
  display: flex;
  margin-bottom: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading > div { max-width: 760px; }

.section-copy {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
}

.product-stack { display: grid; gap: 30px; }

.product-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 520px;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(23, 40, 67, 0.95), rgba(10, 21, 39, 0.95));
  box-shadow: var(--shadow);
}

.product-card-copy {
  display: flex;
  padding: clamp(34px, 5vw, 66px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.product-card-copy h3 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.product-card-copy p { margin: 18px 0 26px; color: #bbc6dc; }

.product-art {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: center;
  background: #081322;
}

.product-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 21, 39, 0.8), transparent 28%);
  content: "";
  pointer-events: none;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #c4cee0;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  content: "";
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #03101e;
  font-size: 0.93rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.2);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.button-small { min-height: 42px; padding: 9px 15px; font-size: 0.86rem; }
.text-link { color: var(--accent); font-weight: 800; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principle, .feature-card, .store-card, .privacy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 29, 49, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.principle { padding: 30px; }

.principle-number {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.principle h3, .feature-card h3, .store-card h3, .privacy-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.principle p, .feature-card p, .store-card p, .privacy-card p {
  margin: 0;
  color: var(--muted);
}

.app-hero { padding: clamp(62px, 9vw, 110px) 0 clamp(64px, 9vw, 110px); }

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}

.app-identity {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 23%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.app-identity span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-actions { margin-top: 34px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 0.82rem; }
.app-hero-art { position: relative; }

.app-hero-art::before {
  position: absolute;
  inset: 10% -8% -10% 15%;
  z-index: -1;
  border-radius: 40%;
  background: rgba(var(--accent-rgb), 0.18);
  filter: blur(70px);
  content: "";
}

.app-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 25, 44, 0.75);
}

.stat-strip > div { padding: 24px clamp(20px, 4vw, 40px); }
.stat-strip > div + div { border-left: 1px solid var(--line); }

.stat-strip strong {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  letter-spacing: -0.03em;
}

.stat-strip span { color: var(--muted); font-size: 0.82rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
}

.feature-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(var(--accent-rgb), 0.23);
  border-radius: 50%;
  content: "";
}

.feature-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
}

.gallery {
  display: flex;
  max-width: 960px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 16px;
}

.gallery.desktop-gallery { max-width: 760px; }

.shot {
  width: 220px;
  flex: 0 1 220px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0c1728;
}

.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 17.45;
  object-fit: cover;
  transition: transform 260ms ease;
}

.desktop-gallery .shot img {
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  object-position: top center;
}

.desktop-gallery .shot {
  width: 360px;
  flex-basis: 360px;
}

.shot-button:hover img { transform: scale(1.018); }

.shot figcaption {
  min-height: 74px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.gallery-actions { margin-top: 26px; text-align: center; }

.store-grid, .privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.store-card, .privacy-card { padding: clamp(28px, 5vw, 44px); }
.store-heading { display: flex; align-items: center; gap: 16px; }

.store-heading img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.store-card h3 { margin: 0; }
.store-card .button-row, .privacy-card .button-row { margin-top: 24px; }

.platform-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.callout {
  display: grid;
  padding: clamp(30px, 6vw, 68px);
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.18), transparent 17rem),
    linear-gradient(145deg, #152744, #0c192d);
  box-shadow: var(--shadow);
}

.callout h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.callout p { margin: 18px 0 0; color: #b8c4d9; }
.callout-actions { display: flex; justify-content: flex-end; }

.notice {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 5px 14px 14px 5px;
  background: rgba(var(--accent-rgb), 0.08);
  color: #c8d1e3;
  font-size: 0.9rem;
}

.policy-hero { padding: clamp(64px, 10vw, 116px) 0 44px; }
.policy-hero .page-title { max-width: 900px; }

.policy-meta {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.policy-layout {
  display: grid;
  padding-bottom: clamp(80px, 12vw, 150px);
  grid-template-columns: 240px minmax(0, 800px);
  align-items: start;
  justify-content: center;
  gap: clamp(30px, 6vw, 80px);
}

.policy-aside {
  position: sticky;
  top: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 29, 49, 0.72);
}

.policy-aside strong { display: block; margin-bottom: 8px; }
.policy-aside p { margin: 0 0 14px; color: var(--muted); font-size: 0.84rem; }

.policy-body {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(13, 25, 44, 0.88);
  box-shadow: var(--shadow);
}

.policy-summary {
  display: grid;
  margin: 10px 0 34px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.policy-summary > div {
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.07);
  color: #d5deee;
  font-size: 0.84rem;
  font-weight: 800;
}

.policy-body h2 {
  margin: 2.4rem 0 0.7rem;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.25;
}

.policy-body h2:first-of-type { margin-top: 0; }
.policy-body p, .policy-body li { color: #bec8da; }
.policy-body ul { padding-left: 1.25rem; }
.policy-body li + li { margin-top: 0.42rem; }
.policy-body a { color: var(--accent); font-weight: 700; }

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 19, 0.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-grid h2, .footer-grid h3 { margin: 0 0 10px; font-size: 0.92rem; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.85rem; }

.footer-links {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #77839a;
  font-size: 0.78rem;
}

.lightbox {
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: #060d18;
  color: #fff;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.7);
}

.lightbox::backdrop { background: rgba(0, 4, 12, 0.88); backdrop-filter: blur(8px); }

.lightbox-inner {
  display: grid;
  min-width: 0;
  max-height: 92vh;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox-bar {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px 10px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.lightbox-bar span {
  overflow: hidden;
  min-width: 0;
  color: #c5cee0;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #fff;
  cursor: pointer;
}

.lightbox-frame {
  display: grid;
  overflow: auto;
  min-width: 0;
  padding: 18px;
  place-items: center;
}

.lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 96px);
  border-radius: 10px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .product-card, .app-hero-grid, .callout { grid-template-columns: 1fr; }
  .product-art { order: -1; }
  .product-art::after { background: linear-gradient(0deg, rgba(10, 21, 39, 0.7), transparent 38%); }
  .app-hero-grid { gap: 48px; }
  .callout-actions { justify-content: flex-start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0d192b;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .display-title, .page-title { letter-spacing: -0.045em; }
  .product-card { min-height: 0; }
  .product-art { min-height: 280px; }

  .principles, .feature-grid, .store-grid, .privacy-grid, .policy-summary {
    grid-template-columns: 1fr;
  }

  .gallery, .gallery.desktop-gallery {
    display: flex;
    max-width: none;
    overflow-x: auto;
    margin-inline: -14px;
    padding: 0 14px 14px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
  }

  .shot {
    width: min(64vw, 230px);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .desktop-gallery .shot { width: min(80vw, 400px); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .home-hero { padding-top: 82px; }
  .hero-orbit-line { display: none; }
  .app-icon { width: 62px; height: 62px; }
  .product-card-copy, .store-card, .privacy-card, .policy-body { padding: 26px; }
  .product-art { min-height: 230px; }
  .button { width: 100%; }
  .button-row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
