/* ==========================================================================
   Lyon Pocket — website styles
   ========================================================================== */

:root {
  --green: #0a8a3d;
  --green-light: #3ab85e;
  --blue: #2b7fff;
  --blue-soft: #e8f1ff;
  --ink: #0b1220;
  --ink-soft: #3b4456;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f6f8fb;
  --border: rgba(11, 18, 32, 0.08);
  --shadow-sm: 0 4px 16px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 20px 60px rgba(11, 18, 32, 0.12);
  --shadow-lg: 0 40px 100px rgba(11, 18, 32, 0.18);
  --radius: 20px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Animated background blobs ------------------------------------------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { background: #3ab85e; top: -200px; left: -150px; }
.blob-2 { background: #2b7fff; top: 30%; right: -200px; animation-delay: -6s; }
.blob-3 { background: #7c3aed; bottom: -200px; left: 30%; animation-delay: -12s; opacity: 0.2; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.95); }
}

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--green); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 138, 61, 0.1);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(10, 138, 61, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 138, 61, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(10, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 138, 61, 0); }
}

h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 18px 32px; font-size: 17px; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points span {
  color: var(--green);
  font-weight: 800;
}

/* --- Phone mockup -------------------------------------------------------- */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(58, 184, 94, 0.35), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.phone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #0b1220;
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06) inset,
    var(--shadow-lg);
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-frame:hover { transform: rotate(0deg) translateY(-8px); }
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-frame-sm { width: 260px; transform: rotate(0deg); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 80px; gap: 40px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .phone-frame { transform: rotate(0); width: 280px; }
}

/* --- Strip --------------------------------------------------------------- */
.strip {
  background: var(--ink);
  color: #fff;
  padding: 28px 48px;
}
.strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.strip-pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(58, 184, 94, 0.6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.strip-emoji { font-size: 24px; }
.strip-title { font-weight: 700; font-size: 15px; }
.strip-sub { font-size: 13px; color: rgba(255,255,255,0.6); }

@media (max-width: 840px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --- Section layout ------------------------------------------------------ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--green-light); }
h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h2-light { color: #fff; }
.lead-light { color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 18px; }

@media (max-width: 720px) {
  .section { padding: 72px 24px; }
}

/* --- Features grid ------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-lg { grid-column: span 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-green  { background: rgba(10, 138, 61, 0.1); color: var(--green); }
.icon-blue   { background: rgba(43, 127, 255, 0.1); color: var(--blue); }
.icon-orange { background: rgba(255, 149, 0, 0.12); color: #ff9500; }
.icon-yellow { background: rgba(234, 179, 8, 0.12); color: #d4a017; }
.icon-red    { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* --- Dark section (carousel) --------------------------------------------- */
.section-dark {
  background: radial-gradient(ellipse at top, #1a2340 0%, #0b1220 60%);
  max-width: none;
  color: #fff;
  padding-left: 48px;
  padding-right: 48px;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(58, 184, 94, 0.15), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(43, 127, 255, 0.15), transparent 50%);
  pointer-events: none;
}

/* --- Carousel ------------------------------------------------------------ */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 8px 40px;
  scrollbar-width: none;
  flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }
.screen {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  transition: transform 0.4s;
}
.screen:hover { transform: translateY(-8px); }
.screen figcaption {
  margin-top: 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 15px;
}

.carousel-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 4px;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel-dots button.active {
  background: var(--green-light);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .carousel-arrow { display: none; }
}

/* --- Privacy ------------------------------------------------------------- */
.privacy-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 138, 61, 0.05), rgba(43, 127, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
}
.privacy-icon {
  display: inline-flex;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 20px 40px rgba(10, 138, 61, 0.3);
}
.privacy-card p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 560px;
  margin: 20px auto 28px;
}
.link-arrow {
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s;
}
.link-arrow:hover { text-decoration: underline; }

/* --- Final CTA ----------------------------------------------------------- */
.cta {
  text-align: center;
}
.cta-inner {
  background: linear-gradient(135deg, #0b1220 0%, #1a2340 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(58, 184, 94, 0.25), transparent 40%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
.cta-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cta h2 { font-size: clamp(32px, 4vw, 48px); }
.cta p {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  margin: 16px auto 36px;
  max-width: 520px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.cta .btn-primary:hover { background: var(--green); color: #fff; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 48px; height: 48px;
  border-radius: 12px;
}
.footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.footer-brand span {
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--green); }
.footer-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-meta a { color: var(--blue); }
.copyright { margin-top: 12px; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 840px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
