:root {
  --bg: #0d0f17;
  --card: #151824;
  --edge: #252a3a;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --cyan: #38bdf8;
  --pink: #e879f9;
  --green: #4ade80;
  --radius: 18px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 0% 30%, rgba(168, 85, 247, .13), transparent 40rem),
    radial-gradient(circle at 100% 70%, rgba(34, 197, 94, .1), transparent 40rem),
    var(--bg);
  color: var(--text); font-family: var(--font); line-height: 1.55; overflow-x: hidden;
}
a { color: inherit; }

/* header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  background: rgba(13, 15, 23, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { font-weight: 800; letter-spacing: .18em; font-size: .95rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top nav a.nav-cta { color: #0d0f17; background: var(--cyan); margin-left: 6px; }
.top nav a.nav-cta:hover { background: #7dd3fc; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 100px 24px 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-bg img.hero-pink { object-position: 30% 50%; }
/* wide screens: the photo moves right so the row of lamps runs beside the headline, not behind
   it; its left edge fades into the page background (not mirrored - the twist stays right) */
@media (min-width: 900px) {
  .hero-bg img.hero-pink { position: absolute; left: 46%; width: 54%; top: 56px; height: calc(100% - 56px); object-position: 0% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%); mask-image: linear-gradient(90deg, transparent, #000 7%); }
}
.shot.span2 { grid-column: span 2; }
.shot.wide { grid-column: 1 / -1; grid-row: span 2; }
.shot.wide img { object-position: center 62%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 23, .92) 0%, rgba(13, 15, 23, .55) 45%, rgba(13, 15, 23, .1) 75%),
              linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-text { max-width: 1120px; width: 100%; margin: 0 auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; max-width: 12ch; }
.flow {
  background: linear-gradient(90deg, var(--cyan), var(--pink), #fb923c, var(--green), var(--cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 10s linear infinite;
}
@keyframes hue { to { background-position: 300% 0; } }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c9d0dd; max-width: 34rem; }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; transition: transform .15s, background .2s, border-color .2s; }
.btn.primary { background: var(--cyan); color: #0d0f17; box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .9); }
.btn.primary:hover { background: #7dd3fc; transform: translateY(-2px); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(13, 15, 23, .35); }
.btn.ghost:hover { border-color: var(--pink); transform: translateY(-2px); }
.btn:focus-visible, .shot:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.from { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.from strong { color: var(--text); }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 80px 24px 0; scroll-margin-top: 60px; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; font-weight: 800; }
.section-head p, .app-text > p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 14px; }
.shot { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card); }
.shot.tall { grid-row: span 2; grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px 22px; position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, transparent); margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.feature p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* app */
.app { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--green)); -webkit-mask: radial-gradient(circle, #000 0 0) ; }
.ticks li::after { content: ''; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid #0d0f17; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.app-shots { position: relative; display: grid; gap: 14px; }
.app-shots .screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: var(--card); cursor: zoom-in; padding: 0; }
.app-shots .screen img { display: block; width: 100%; height: auto; }
.app-shots .screen.main { max-height: 420px; }
.app-shots .screen.main img { object-fit: cover; object-position: top; height: 420px; }
.app-shots .row .screen { max-height: 220px; }
.app-shots .row .screen img { object-fit: cover; object-position: top; height: 220px; }
.app-shots .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* order */
.order { padding-bottom: 90px; }
.order-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border-radius: calc(var(--radius) + 6px); padding: 40px 44px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(168, 85, 247, .28), rgba(56, 189, 248, .2) 50%, rgba(34, 197, 94, .22)), var(--card);
  border: 1px solid rgba(255, 255, 255, .1);
}
.order-card p { margin-top: 10px; color: #c9d0dd; max-width: 40rem; }
.order-card p.small { font-size: .9rem; color: var(--muted); }
.btn.big { flex: none; padding: 16px 30px; font-size: 1.05rem; }

footer { border-top: 1px solid var(--edge); padding: 26px 24px 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; color: var(--muted); font-size: .9rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 10, .92); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; gap: 32px; }
  .order-card { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
}
@media (max-width: 640px) {
  .top { padding: 0 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  .hero { padding: 90px 16px 50px; }
  .hero-bg img { object-position: 70% 40%; }
  .hero-bg img.hero-pink { object-position: 30% 50%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(13, 15, 23, .7) 55%, rgba(13, 15, 23, .25)); }
  .section { padding: 60px 16px 0; }
  .order { padding-bottom: 56px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .shot.tall { grid-column: span 2; }
  .shot.span2 { grid-column: auto; }
  .features { grid-template-columns: 1fr; }
  .app-shots .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
