/* Master Key Genie — marketing site
   Brand: navy + sky blue + gold (from product mark) */

:root {
  --navy: #0b2545;
  --navy-deep: #061628;
  --sky: #1ba8e8;
  --sky-bright: #3bc4f5;
  --sky-soft: #e8f6fd;
  --gold: #f0a020;
  --gold-soft: #fff4de;
  --ink: #0b1f3a;
  --ink-muted: #4a6078;
  --line: #c9d8e6;
  --surface: #f5fafd;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(11, 37, 69, 0.14);
  --radius: 18px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 5.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Atmosphere —— */
.sky-wash {
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(59, 196, 245, 0.35), transparent 55%),
    radial-gradient(90% 70% at 88% 8%, rgba(240, 160, 32, 0.18), transparent 50%),
    linear-gradient(180deg, #dff3fc 0%, var(--surface) 58%, #eef6fb 100%);
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(245, 250, 253, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(201, 216, 230, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-lockup img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-lockup .genie {
  color: var(--sky);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.28);
}

.btn-primary:hover {
  background: #14345c;
  color: var(--white);
}

.btn-sky {
  background: var(--sky);
  color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(27, 168, 232, 0.35);
}

.btn-sky:hover {
  background: var(--sky-bright);
  color: var(--navy-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  border-color: rgba(11, 37, 69, 0.14);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
}

.store-label small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.store-label strong {
  font-size: 0.98rem;
  font-weight: 700;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 2.5rem 0 4.5rem;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
  animation: rise 0.8s ease both;
}

.hero-brand img {
  width: auto;
  height: 9rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 24px rgba(27, 168, 232, 0.28));
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--navy);
  margin: 0;
}

.hero-wordmark .genie {
  display: block;
  color: var(--sky);
}

.hero h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 650;
  max-width: 18ch;
  margin-bottom: 0.75rem;
  animation: rise 0.8s ease 0.08s both;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 34ch;
  margin-bottom: 1.6rem;
  animation: rise 0.8s ease 0.14s both;
}

.hero .btn-row {
  animation: rise 0.8s ease 0.2s both;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-ctas {
  justify-content: center;
  position: relative;
  z-index: 3;
  padding-top: 0.25rem;
}

.hero-download {
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 3;
  animation: rise 0.8s ease 0.28s both;
}

.hero-download a {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.hero-download a:hover {
  color: var(--sky);
}

.hero-visual {
  position: relative;
  animation: float-in 1s ease 0.15s both;
  padding-bottom: 2.5rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -8% -10% 8%;
  background:
    radial-gradient(circle at 30% 40%, rgba(27, 168, 232, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(240, 160, 32, 0.22), transparent 50%);
  filter: blur(8px);
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite;
}

.device-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #1a3355, var(--navy-deep));
  border-radius: 14px;
  padding: 12px 12px 18px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s ease;
}

.device-frame:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.device-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.device-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.device-chrome i:nth-child(1) { background: #ff5f57; }
.device-chrome i:nth-child(2) { background: #febc2e; }
.device-chrome i:nth-child(3) { background: #28c840; }

.screen-shot {
  border-radius: 8px;
  overflow: hidden;
  background: #f4f6f8;
}

.screen-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-shot--contain {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.screen-shot--contain img {
  width: 100%;
  height: auto;
}

.phone-float {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(38%, 180px);
  z-index: 2;
  animation: bob 5s ease-in-out infinite;
}

.phone-frame {
  background: var(--navy-deep);
  border-radius: 22px;
  padding: 10px 8px 12px;
  box-shadow: 0 18px 40px rgba(6, 22, 40, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.phone-notch {
  width: 36%;
  height: 8px;
  margin: 0 auto 8px;
  background: #000;
  border-radius: 8px;
}

.phone-screen {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6f8;
  aspect-ratio: 9 / 16;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* —— Product UI mock (screenshot stand-ins) —— */
.app-ui {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  color: #0f172a;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f6f8;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #d8dee6;
}

.app-top-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
}

.app-top-brand .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-bright), var(--sky));
}

.app-sync {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #64748b;
  background: #e8f6fd;
  padding: 4px 8px;
  border-radius: 999px;
}

.app-sync::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
  min-height: 0;
}

.app-main {
  padding: 10px 12px;
  overflow: hidden;
}

.app-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-sub {
  color: #64748b;
  margin-bottom: 8px;
  font-size: 10px;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  overflow: hidden;
}

.app-table th,
.app-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #e8edf2;
  white-space: nowrap;
}

.app-table th {
  background: #e8edf2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.app-table tr:last-child td {
  border-bottom: 0;
}

.app-table tr.is-selected {
  background: #e8f6fd;
}

.app-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 9px;
  font-weight: 600;
}

.app-side {
  border-left: 1px solid #d8dee6;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cyl {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  position: relative;
  min-height: 120px;
  overflow: hidden;
}

.cyl-pins {
  position: absolute;
  inset: 12px 28%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cyl-pins span {
  width: 10px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #22c55e 0 28%, #3b82f6 28% 58%, #ef4444 58% 100%);
}

.cyl-pins span:nth-child(1) { height: 72%; }
.cyl-pins span:nth-child(2) { height: 58%; }
.cyl-pins span:nth-child(3) { height: 84%; }
.cyl-pins span:nth-child(4) { height: 48%; }
.cyl-pins span:nth-child(5) { height: 66%; }
.cyl-pins span:nth-child(6) { height: 54%; }

.bitting {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--navy);
}

/* Mobile app UI */
.mobile-ui {
  height: 100%;
  background: #f4f6f8;
  padding: 10px 8px;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  color: #0f172a;
}

.mobile-ui h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.m-card {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
}

.m-card strong {
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}

.m-card span {
  color: #64748b;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8f6fd;
  color: #0c4a6e;
  font-weight: 600;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

/* Features — not card-heavy: open rows with icons */
.feature-rail {
  display: grid;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--sky-soft), #fff);
  color: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(27, 168, 232, 0.25);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.feature p {
  color: var(--ink-muted);
  max-width: 48rem;
}

.feature:nth-child(even) .feature-icon {
  background: linear-gradient(145deg, var(--gold-soft), #fff);
  color: #c47a00;
  box-shadow: inset 0 0 0 1px rgba(240, 160, 32, 0.35);
}

/* Gallery */
.gallery {
  background:
    linear-gradient(180deg, transparent, rgba(232, 246, 253, 0.7)),
    var(--surface);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.shot-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.65rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 216, 230, 0.7);
}

.shot-stack {
  display: grid;
  gap: 1.25rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(59, 196, 245, 0.28), transparent 55%),
    radial-gradient(70% 100% at 100% 40%, rgba(240, 160, 32, 0.2), transparent 50%),
    linear-gradient(135deg, var(--navy-deep), #12345a 55%, #0b4068);
  color: #e8f4fb;
  padding: 4rem 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  max-width: 18ch;
}

.cta-band p {
  color: rgba(232, 244, 251, 0.82);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.cta-band .btn-sky:hover {
  color: var(--navy-deep);
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-download {
  margin: 1.25rem 0 0;
}

.cta-download a {
  font-family: var(--font-display);
  font-weight: 650;
  color: #fff;
  text-underline-offset: 0.22em;
}

.cta-download a:hover {
  color: var(--sky-bright);
}

/* —— Interior pages —— */
.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ink-muted);
  font-size: 1.15rem;
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.contact-panel {
  display: grid;
  gap: 1.5rem;
  max-width: 32rem;
  margin-bottom: 4rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}

.contact-line a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--sky);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.footer-meta img {
  height: 28px;
  width: auto;
  margin-top: 0.75rem;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--navy);
}

/* —— Motion helpers —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .device-frame {
    transform: none;
  }

  .device-frame:hover {
    transform: none;
  }

  .phone-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(200px, 46%);
    margin: -2.5rem auto 0;
  }

  .hero-visual {
    max-width: 560px;
    padding-bottom: 0;
    margin-inline: auto;
  }

  .hero-aside {
    max-width: 560px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.25rem;
  }
}

@media (max-width: 560px) {
  .hero-brand img {
    height: 6.9rem;
    width: auto;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }

  .btn {
    width: 100%;
  }
}
