/* =========================================================================
   LightBookShow — landing styles
   Dark theatrical theme with a tilt-shift hero.
   ========================================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

::selection {
  background: rgba(255, 215, 106, 0.35);
  color: #fff;
}

/* ----- Tokens ----- */
:root {
  --bg: #0a0a0c;
  --bg-elev: #121217;
  --bg-soft: #16161c;
  --fg: #ececf0;
  --fg-dim: #a8a8b3;
  --fg-mute: #6b6b78;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --accent: #ffd76a;
  --accent-warm: #ff9b3d;
  --accent-deep: #ff5e3a;
  --beam: rgba(255, 215, 106, 0.18);

  --maxw: 1180px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

/* ----- Utilities ----- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 1000;
}
.skip:focus { left: 16px; top: 16px; }

/* ----- Top bar ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Saira", "Manrope", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark { width: 28px; height: 28px; display: inline-block; }
.brand-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255, 215, 106, 0.5)); }

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-dim);
}

.topnav a { transition: color 160ms ease; }
.topnav a:hover { color: var(--fg); }

@media (max-width: 720px) {
  .topnav a:not(.lang-switch a) { display: none; }
  .topnav { gap: 14px; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lang-btn {
  padding: 2px 4px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  transition: color 160ms ease;
}
.lang-btn[aria-pressed="true"] { color: var(--accent); }
.lang-btn:hover { color: var(--fg); }
.lang-sep { color: var(--fg-mute); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 920px);
  padding: clamp(60px, 9vw, 120px) var(--pad-x) clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

/* — Background layers — */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-a {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 155, 61, 0.45), rgba(255, 94, 58, 0.0) 60%);
}
.glow-b {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -100px;
  background: radial-gradient(circle, rgba(120, 90, 255, 0.30), rgba(40, 30, 90, 0) 65%);
}

/* — Phone with tilt-shift — */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-phone {
  position: relative;
  width: clamp(420px, 58vw, 820px);
  margin-right: clamp(-160px, -8vw, -40px);
  transform: translateY(2vw);
}

/* The tilt — rotated container holding two stacked screenshots */
.hero-phone-tilt {
  position: relative;
  transform: rotate(-9deg) skewY(-2deg);
  transform-origin: center;
  filter: drop-shadow(0 60px 80px rgba(0, 0, 0, 0.55));
}

.hero-phone-img {
  width: 100%;
  height: auto;
  border-radius: 38px;
  display: block;
}

/* Sharp layer — masked so only a central horizontal band remains sharp */
.hero-phone-img.sharp {
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 18%,
    #000 38%,
    #000 58%,
    rgba(0, 0, 0, 0.15) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 18%,
    #000 38%,
    #000 58%,
    rgba(0, 0, 0, 0.15) 78%,
    transparent 100%
  );
}

/* Blurred layer behind the sharp one */
.hero-phone-img.blurred {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(22px) saturate(1.05);
  opacity: 0.95;
}

.hero-phone-reflection {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 38px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 30%) ,
    linear-gradient(295deg, rgba(255, 215, 106, 0.10) 0%, transparent 35%);
  mix-blend-mode: screen;
}

/* Vignette over the phone area so text reads cleanly */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.65) 35%, rgba(10, 10, 12, 0.0) 60%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.0) 60%, rgba(10, 10, 12, 0.85) 100%);
}

/* — Hero content — */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 215, 106, 0.3);
  background: rgba(255, 215, 106, 0.06);
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.75); }
}

.hero-title {
  margin: 26px 0 18px;
  font-family: "Russo One", "Saira", "Manrope", "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.005em;
  display: grid;
  gap: 14px;
  /* Let the title use the full hero-content width */
  width: 100%;
}

.hero-title-name {
  font-family: "Russo One", "Saira", "Manrope", "Inter", sans-serif;
  font-weight: 400; /* Russo One ships in a single weight */
  /* Fluid sizing tuned to Russo One's advance widths so the word
     "LightBookShow" never overflows the parent at any viewport size. */
  font-size: clamp(32px, 10vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Safety nets: never escape the parent; allow a soft break only as last resort */
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: none;
}

.hero-title-sub {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-lede {
  margin: 14px 0 32px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--fg-dim);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  color: #1a1300;
  box-shadow: 0 12px 30px -10px rgba(255, 155, 61, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgba(255, 155, 61, 0.75); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero-meta li { position: relative; padding-left: 14px; }
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--accent);
}

/* Mobile hero — phone tucks behind text, smaller */
@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero-stage { justify-content: center; align-items: flex-start; opacity: 0.45; }
  .hero-phone {
    width: 90vw;
    margin-right: 0;
    transform: translateY(-6vw);
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.65) 0%, rgba(10, 10, 12, 0.92) 60%, rgba(10, 10, 12, 1) 100%);
  }
  .hero-content { padding-top: 30vh; }
}

@media (max-width: 480px) {
  .hero-content { padding-top: 38vh; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--pad-x);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  font-family: "Saira", "Manrope", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--fg);
}
.section-title.small {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 8px;
  font-weight: 800;
}

.section-lede {
  max-width: 720px;
  margin: 0 0 48px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--fg-dim);
}

/* ----- About ----- */
.about {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 155, 61, 0.10), transparent 50%),
    var(--bg);
  border-top: 1px solid var(--line);
}

/* ----- Features ----- */
.features {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--bg-elev);
  transition: background 200ms ease, transform 200ms ease;
}
.feature:hover { background: var(--bg-soft); }

.feature h3 {
  margin: 14px 0 8px;
  font-family: "Saira", "Manrope", "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--fg);
}
.feature p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
}

.feature-num {
  display: inline-block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* ----- Status ----- */
.status {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  border-top: 1px solid var(--line);
}

.status-inner {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  max-width: 880px;
}

.status-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 215, 106, 0.18), 0 0 18px var(--accent);
  margin-top: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.status p {
  margin: 0;
  color: var(--fg-dim);
}

/* ----- Contact ----- */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-inner { max-width: 720px; margin: 0 auto; }
.contact .section-lede { margin-left: auto; margin-right: auto; }

.contact-email {
  display: inline-block;
  margin-top: 16px;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.005em;
  color: var(--fg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}
.contact-email:hover {
  color: var(--accent);
  border-color: rgba(255, 215, 106, 0.5);
  transform: translateY(-1px);
}

/* ----- Footer ----- */
.footer {
  padding: 26px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--fg-mute);
  font-size: 13px;
}
.footer-sep { color: var(--line-strong); }
.footer a:hover { color: var(--fg); }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
