/* =============================================================
   HyperShot — landing page (single fold)
   Theme: Editorial print magazine · "Captured"
   ============================================================= */

:root {
  --bg:        #ECE5D8;
  --bg-2:      #E5DCC8;
  --ink:       #1A1814;
  --ink-soft:  #3A352D;
  --muted:     #6E6457;
  --hair:      #C9BFAB;
  --accent:    #B5532E;
  --accent-2:  #8E3F22;
  --paper-shadow: 0 18px 48px -22px rgba(26, 24, 20, 0.30);

  --serif: "Fraunces", "Apple Garamond", "Iowan Old Style", Georgia, serif;
  --body:  "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, "Menlo", monospace;

  --gutter:  clamp(20px, 4vw, 56px);
  --col-max: 1320px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow-x: clip;
}

/* paper grain + radial gradients */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(181, 83, 46, 0.06), transparent 60%),
    radial-gradient(900px 700px at 90% 100%, rgba(26, 24, 20, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  filter: url(#paper-grain);
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.masthead, .stage, .footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* ============================================================= */
/* Masthead                                                       */
/* ============================================================= */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--col-max);
  width: 100%;
  margin: 0 auto;
  padding: 14px var(--gutter) 12px;
  border-bottom: 1px solid var(--hair);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 12, "SOFT" 100, "WONK" 1;
}
.wordmark-mark {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.masthead-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.masthead-download:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.download-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.masthead-download:hover .download-arrow { transform: translateY(2px); }

/* ============================================================= */
/* Stage (single-fold main)                                      */
/* ============================================================= */

.stage {
  max-width: var(--col-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3.5vh, 48px) var(--gutter);
  display: grid;
  align-content: center;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.lead {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 72px);
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 8.5vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  color: var(--ink);
}
.hero-line { display: block; }
.hero-line-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  padding-left: 0.18em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero-line-muted {
  color: var(--muted);
  padding-left: 0.36em;
}
/* CTA -------------------------------------------------- */

.cta {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 1.4px solid var(--ink);
  border-radius: 6px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  align-self: flex-start;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed transparent;
  border-radius: 10px;
  pointer-events: none;
  transition: border-color .3s ease;
}
.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cta:hover::before { border-color: var(--accent); }
.cta-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 15px;
  transition: transform .3s ease, background .3s ease;
}
.cta:hover .cta-icon { background: var(--ink); transform: translateY(3px); }
.cta-main { font-size: 13.5px; font-weight: 600; }

/* ============================================================= */
/* Proof — screenshot mockup                                      */
/* ============================================================= */

.proof {
  position: relative;
  margin: 0;
  isolation: isolate;
  max-height: 64vh;
}

.reg-marks {
  position: absolute;
  inset: -22px;
  pointer-events: none;
}
.reg {
  position: absolute;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
  line-height: 1;
}
.reg-tl { top: 0;    left: 0; }
.reg-tr { top: 0;    right: 0; }
.reg-bl { bottom: 0; left: 0; }
.reg-br { bottom: 0; right: 0; }

.screen-mock {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: #1f1c18;
  box-shadow: var(--paper-shadow);
}

.mock-desktop {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 30% 20%, #6f3a2a, transparent 60%),
    radial-gradient(60% 50% at 80% 70%, #2d4258, transparent 60%),
    linear-gradient(180deg, #2b2924 0%, #18171b 100%);
  filter: blur(2px) brightness(0.9);
  transform: scale(1.02);
}
.mock-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.mock-blob-1 { width: 40%; height: 50%; left: -8%; top: -8%; background: #c46b3d; }
.mock-blob-2 { width: 50%; height: 60%; right: -10%; top: 30%; background: #2f4f72; }
.mock-blob-3 { width: 30%; height: 35%; left: 30%; bottom: -8%; background: #6c4a2a; }

.mock-window {
  position: absolute;
  left: 6%; top: 8%;
  width: 70%; height: 78%;
  background: rgba(238, 230, 215, 0.92);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.05);
  filter: blur(0.4px);
}
.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(228, 218, 200, 1);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mock-dot-r { background: #ff5f57; }
.mock-dot-y { background: #febc2e; }
.mock-dot-g { background: #28c840; }
.mock-window-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.mock-window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line {
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 70%, transparent 100%);
  opacity: 0.18;
}
.mock-line-1 { width: 65%; }
.mock-line-2 { width: 80%; }
.mock-line-3 { width: 50%; }
.mock-line-4 { width: 72%; }

/* marquee selection ---------------------------------------------- */

.mock-marquee {
  position: absolute;
  left: 18%; top: 22%;
  width: 60%; height: 56%;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(20, 18, 14, 0.42);
}
.mock-marquee::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, #fff 50%, var(--ink) 50%) top/10px 2px repeat-x,
    linear-gradient(90deg, #fff 50%, var(--ink) 50%) bottom/10px 2px repeat-x,
    linear-gradient(0deg,  #fff 50%, var(--ink) 50%) left/2px 10px repeat-y,
    linear-gradient(0deg,  #fff 50%, var(--ink) 50%) right/2px 10px repeat-y;
  animation: march 3s linear infinite;
  pointer-events: none;
}
@keyframes march {
  to {
    background-position:
      10px top, 10px bottom,
      left 10px, right 10px;
  }
}

.marquee-coords {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
  background: var(--ink);
  padding: 3px 6px;
  letter-spacing: 0.04em;
}
.marquee-coords-tl { top: -22px; left: -2px; }
.marquee-coords-br { bottom: -22px; right: -2px; }
.marquee-size {
  position: absolute;
  top: -22px; right: -2px;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 3px 6px;
  letter-spacing: 0.04em;
}

.floating-toolbar {
  position: absolute;
  display: flex;
  gap: 6px;
  padding: 7px;
  background: rgba(245, 238, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 11px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  font-size: 19px;
  color: var(--ink-soft);
}
.floating-toolbar-side {
  flex-direction: column;
  right: -68px;
  top: 14%;
}
.floating-toolbar-bottom {
  flex-direction: row;
  left: 50%;
  transform: translateX(-50%);
  bottom: -68px;
}
.ft-btn {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--mono);
}
.ft-btn-active { background: var(--ink); color: var(--bg); }
.ft-btn-cancel { color: #b73a2f; font-weight: 700; }
.ft-btn-save   { color: var(--accent); }
.ft-btn-copy   { color: var(--ink); }
.ft-color {
  background: var(--accent);
  border-radius: 50%;
  width: 22px; height: 22px;
  align-self: center;
  margin: 7px 0;
}
.ft-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 5px 3px;
}

/* ============================================================= */
/* Footer                                                         */
/* ============================================================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: var(--col-max);
  width: 100%;
  margin: 0 auto;
  padding: 12px var(--gutter) 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hair);
}
.footer-mark { color: var(--ink); font-weight: 500; }
#today {
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

/* ============================================================= */
/* Load animation                                                 */
/* ============================================================= */

.hero-line, .cta {
  animation: rise 0.95s cubic-bezier(.22,.7,.25,1) backwards;
}
.hero-line:nth-child(1)    { animation-delay: 0.1s; }
.hero-line:nth-child(2)    { animation-delay: 0.2s; }
.hero-line:nth-child(3)    { animation-delay: 0.3s; }
.cta                       { animation-delay: 0.5s; }
.proof { animation: fade 1.4s cubic-bezier(.22,.7,.25,1) 0.3s backwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================= */
/* Responsive                                                     */
/* ============================================================= */

@media (max-width: 980px) {
  body { min-height: auto; }
  .stage {
    padding: 28px var(--gutter) 40px;
  }
  .stage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lead { order: 1; }
  .proof {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    max-height: none;
  }
  .floating-toolbar-side  { right: 8px; top: 12px; }
  .floating-toolbar-bottom { display: none; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(48px, 14vw, 88px); }
  .cta {
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 12px 16px;
  }
  .cta-meta {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    margin-top: 4px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}
