/* =========================================================
   Kazu Labs LLC — shared styles
   Plain CSS, no dependencies. Vanilla animations only.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --text: #0b0b0f;
  --text-soft: #5b5d66;
  --text-faint: #8a8c95;
  --border: #ececf1;
  --border-strong: #dfe0e6;

  --brand-1: #6d5efc; /* violet  */
  --brand-2: #4f7bff; /* blue    */
  --brand-3: #00c2b8; /* teal    */
  --brand-4: #ff5fa2; /* pink    */

  --grad-text: linear-gradient(100deg, #6d5efc 0%, #4f7bff 45%, #00c2b8 100%);
  --grad-brand: linear-gradient(120deg, #6d5efc, #4f7bff 55%, #00c2b8);

  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 33, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(23, 25, 61, 0.18);
  --shadow-lg: 0 30px 80px -24px rgba(52, 45, 120, 0.28);
  --ring: 0 0 0 1px var(--border);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: var(--grad-brand);
  transition: width 0.08s linear;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 104px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin: 0 0 14px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px -4px rgba(79, 123, 255, 0.6);
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  mask: linear-gradient(#000 0 0);
}

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

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 9px 18px !important;
  border-radius: 980px;
  color: #fff !important;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -8px rgba(79, 123, 255, 0.8);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
    filter 0.2s ease;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: 0 12px 30px -10px rgba(79, 123, 255, 0.7);
  animation: btnGradient 6s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(79, 123, 255, 0.85);
}

/* moving sheen */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  color: var(--brand-2);
}

@keyframes btnGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 132px 0 116px;
  text-align: center;
  overflow: hidden;
}

/* animated aurora background */
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  z-index: -2;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: drift 18s var(--ease) infinite alternate;
}

.aurora .b1 {
  width: 520px;
  height: 520px;
  left: 8%;
  top: 0;
  background: radial-gradient(circle at 30% 30%, #7c6bff, transparent 60%);
}

.aurora .b2 {
  width: 460px;
  height: 460px;
  right: 6%;
  top: 40px;
  background: radial-gradient(circle at 60% 40%, #3ea9ff, transparent 60%);
  animation-delay: -4s;
  animation-duration: 22s;
}

.aurora .b3 {
  width: 420px;
  height: 420px;
  left: 42%;
  top: 120px;
  background: radial-gradient(circle at 50% 50%, #16d0c4, transparent 60%);
  animation-delay: -9s;
  animation-duration: 26s;
}

.aurora .b4 {
  width: 360px;
  height: 360px;
  right: 28%;
  top: 220px;
  background: radial-gradient(circle at 50% 50%, #ff7ab0, transparent 62%);
  animation-delay: -13s;
  animation-duration: 24s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.12);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* faint grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to right,
      rgba(12, 14, 40, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(12, 14, 40, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    #000 40%,
    transparent 78%
  );
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-strong);
  padding: 7px 15px 7px 12px;
  border-radius: 980px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 0 rgba(0, 194, 184, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 194, 184, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 194, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 194, 184, 0);
  }
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto 22px;
  font-weight: 780;
  max-width: 14ch;
}

.grad-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero .subtext {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  margin-top: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-cue .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
}

.scroll-cue .mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: var(--text-faint);
  transform: translateX(-50%);
  animation: wheel 1.6s var(--ease) infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* ---------- Section headings ---------- */

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

.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 720;
  line-height: 1.1;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- About / value cards ---------- */

.about {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.14), rgba(0, 194, 184, 0.14));
  border: 1px solid var(--border);
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.value-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- Products ---------- */

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* animated gradient border glow */
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    var(--brand-1),
    var(--brand-2),
    var(--brand-3),
    var(--brand-4),
    var(--brand-1)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  animation: spin 8s linear infinite;
}

.product-card:hover::before {
  opacity: 0.9;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.product-copy .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: rgba(109, 94, 252, 0.1);
  padding: 5px 12px;
  border-radius: 980px;
  margin-bottom: 16px;
}

.product-copy h3 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.product-copy p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-tags li {
  font-size: 0.85rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 980px;
}

/* app icon mock */
.product-visual {
  display: grid;
  place-items: center;
}

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 38px;
  background: linear-gradient(150deg, #6d5efc, #4f7bff 50%, #00c2b8);
  display: grid;
  place-items: center;
  font-size: 4.2rem;
  box-shadow: 0 30px 60px -20px rgba(79, 123, 255, 0.65),
    inset 0 2px 6px rgba(255, 255, 255, 0.35);
  animation: float 5.5s ease-in-out infinite;
  position: relative;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%);
}

.mealit-mark {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(130deg, #1a1636, #2b2a63 45%, #123a55);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 200px at 20% 0%,
      rgba(109, 94, 252, 0.5),
      transparent 60%
    ),
    radial-gradient(500px 200px at 90% 100%, rgba(0, 194, 184, 0.4), transparent 60%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
}

.contact-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0 0 30px;
}

.contact-card .btn-primary {
  background: #fff;
  color: #1a1636;
  animation: none;
}

.contact-card .btn-primary:hover {
  filter: none;
  background: #f2f2ff;
}

.contact-card .btn-primary::after {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(109, 94, 252, 0.25),
    transparent
  );
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0 90px;
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 740;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin: 0 0 44px;
}

.legal h2 {
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
  font-weight: 650;
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--brand-2);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  gap: 10px;
}

/* ---------- Responsive ---------- */

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

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 28px;
    gap: 32px;
  }

  .product-visual {
    order: -1;
  }

  .feature-tags {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links .nav-item {
    display: none;
  }

  section {
    padding: 76px 0;
  }

  .hero {
    padding: 108px 0 84px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
