/* Kick Cal — product site */
:root {
  --bg-deep: #030306;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.55);
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.15);
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --radius: 20px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  /* 介绍性标题：Times New Roman Light（无单独字重时由浏览器合成 300） */
  --font-intro-title: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --font-intro-title-weight: 300;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(52, 211, 153, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 211, 238, 0.06), transparent),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  pointer-events: none;
}

/* React Bits Light Rays — hero copy band (badge → CTAs) — https://reactbits.dev/backgrounds/light-rays */
.hero-copy {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 54vh, 720px);
  padding: 40px 0 36px;
}

.hero-light-rays-root {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-light-rays-root .light-rays-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-copy__inner {
  position: relative;
  z-index: 1;
}

.hero-copy__inner .hero-badge,
.hero-copy__inner h1,
.hero-copy__inner .lead {
  text-shadow:
    0 0 60px rgba(3, 3, 6, 0.65),
    0 4px 32px rgba(3, 3, 6, 0.5);
}

.hero-copy__inner .hero-cta {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero-copy {
    min-height: clamp(300px, 46svh, 560px);
    padding: 28px 0 28px;
  }
}

.clickspark-root {
  position: fixed;
  inset: 0;
  z-index: 99997;
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo.logo-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px var(--border),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.footer-brand .logo-mark-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), #10b981);
  color: #030306 !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-appstore:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.25);
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(3, 3, 6, 0.97);
    padding: 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    display: none;
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .desktop-only {
    display: none;
  }
}

@media (min-width: 861px) {
  .mobile-only {
    display: none !important;
  }

  .nav-panel {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    inset: auto;
    border: none;
  }

  .nav-panel .nav-links {
    margin-right: 12px;
  }
}

/* Hero */
.hero {
  padding: 0 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: var(--accent-dim);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-intro-title);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: var(--font-intro-title-weight);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 14ch;
  margin-inline: auto;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.link-secondary {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero: skewed food collage + scan + phone */
.hero-showcase {
  margin-top: 56px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-collage {
  position: relative;
  width: min(100%, 920px);
  height: clamp(200px, 28vw, 280px);
  margin-inline: auto;
  z-index: 0;
}

.hero-collage__skew {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  height: 100%;
  transform: skewX(-10deg);
  transform-origin: center bottom;
}

.hero-tile {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  margin: 0 5px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.hero-tile:nth-child(odd) {
  transform: translateY(-10px);
}

.hero-tile:nth-child(even) {
  transform: translateY(8px);
}

.hero-tile__inner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transform: skewX(10deg) scale(1.18);
  transform-origin: center center;
}

.hero-tile__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-collage__edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(3, 3, 6, 0) 0%,
    rgba(3, 3, 6, 0.35) 55%,
    rgba(3, 3, 6, 0.92) 100%
  );
  z-index: 2;
}

.hero-collage__scan {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
  z-index: 3;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.hero-collage__scan::before {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -40%;
  width: 55%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(52, 211, 153, 0) 35%,
    rgba(167, 250, 220, 0.2) 48%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(34, 211, 238, 0.18) 52%,
    rgba(52, 211, 153, 0) 65%,
    transparent 100%
  );
  filter: blur(0.5px);
  animation: hero-scan-sweep 4.8s ease-in-out infinite;
}

@keyframes hero-scan-sweep {
  0% {
    transform: translateX(-20%) skewX(-10deg);
    opacity: 0.85;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(220%) skewX(-10deg);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage__scan::before {
    animation: none;
    left: 38%;
    width: 28%;
    opacity: 0.35;
  }

}

@media (max-width: 700px) {
  .hero-collage {
    height: clamp(160px, 42vw, 220px);
    width: 100%;
  }

  .hero-tile {
    margin: 0 3px;
    border-radius: 10px;
  }

  .hero-tile:nth-child(5),
  .hero-tile:nth-child(6) {
    display: none;
  }

  .hero-collage__skew {
    transform: skewX(-8deg);
  }

  .hero-tile__inner {
    transform: skewX(8deg) scale(1.22);
    min-height: 140px;
  }

  .hero-collage__scan::before {
    animation-duration: 5.5s;
  }
}

.hero-collage-credit {
  margin: 28px 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.45;
}

/* Phone screenshot frame — consistent crop & radius */
.shot-frame {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Sections */
section {
  padding: 88px 0;
}

section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: var(--font-intro-title);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--font-intro-title-weight);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  font-family: var(--font-intro-title);
  font-size: 1.5rem;
  font-weight: var(--font-intro-title-weight);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.feature-copy p {
  color: var(--muted);
  margin: 0 0 20px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Centers the device mockup so wide screenshots don’t leave awkward empty rails */
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 85% 70% at 50% 35%, rgba(52, 211, 153, 0.07), transparent 65%),
    var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  max-width: min(100%, 400px);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 12px 0;
}

.feature-img img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  vertical-align: middle;
  border-radius: 28px;
}

@media (min-width: 901px) {
  .feature-row .feature-img {
    margin-inline: 0;
    max-width: 100%;
    justify-self: center;
    align-self: start;
  }

  .feature-row .feature-img img {
    max-height: min(62vh, 580px);
    width: auto;
    max-width: min(100%, 360px);
    margin-inline: auto;
    object-fit: contain;
    object-position: center top;
  }
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
    margin-bottom: 72px;
  }

  .feature-copy {
    order: -1;
  }
}

/* Pillars — React Bits BorderGlow cards — https://reactbits.dev/components/border-glow */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pillars .pillar-border-glow.border-glow-card {
  height: 100%;
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pillars .border-glow-inner {
  padding: 26px 24px 24px;
}

.pillars .pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.pillars .border-glow-inner h3 {
  font-family: var(--font-intro-title);
  font-size: 1.05rem;
  font-weight: var(--font-intro-title-weight);
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
}

.pillars .border-glow-inner p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(167, 139, 250, 0.05));
  margin: 40px 0 0;
}

.cta-band h2 {
  font-family: var(--font-intro-title);
  font-size: 1.75rem;
  font-weight: var(--font-intro-title-weight);
  line-height: 1.15;
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .logo {
  margin-bottom: 8px;
}

.footer-brand .logo.logo-with-mark {
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-intro-title);
  font-size: 2rem;
  font-weight: var(--font-intro-title-weight);
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 40px;
}

.legal-page h2 {
  font-family: var(--font-intro-title);
  font-size: 1.15rem;
  font-weight: var(--font-intro-title-weight);
  line-height: 1.25;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
  opacity: 1;
}
