/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  --bg: #0a100c;
  --bg-2: #0f1712;
  --bg-3: #16211a;
  --bg-4: #1e2c22;
  --cream: #f3f1e6;
  --cream-2: #d6d2c0;
  --cream-3: #8b9488;
  --accent: #4fd07a;
  --accent-dark: #2fae5c;
  --accent-2: #ff9d4d;
  --accent-2-dark: #e07f2e;
  --navy: #33465a;
  --line: rgba(243, 241, 230, 0.12);
  --line-strong: rgba(243, 241, 230, 0.22);

  --display: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 8.5rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 18ch; }
.section-body { font-size: 1.05rem; color: var(--cream-2); max-width: 54ch; margin-top: var(--space-2); }
.section-head { margin-bottom: var(--space-4); }

.section { position: relative; padding-block: var(--space-6); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* =============================================================
   4. Reveal / reduced-motion base
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-soft), transform 0.85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-pill);
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), background-color 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #06210f;
  box-shadow: 0 10px 30px -8px rgba(79, 208, 122, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(79, 208, 122, 0.65); background: var(--accent-dark); }
.btn-primary:active { transform: translateY(-1px); transition-duration: 0.12s; }
.btn-ghost {
  background: transparent; color: var(--cream); border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(79, 208, 122, 0.08); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 16, 12, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.nav-logo { border-radius: 50%; }
.nav-links { display: none; align-items: center; gap: var(--space-4); }
.nav-link { position: relative; font-weight: 500; padding-block: 0.3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: none; align-items: center; gap: var(--space-2); }
.lang-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  font-family: var(--display); font-weight: 600; font-size: 0.78rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.lang-toggle:hover { border-color: var(--accent); background: rgba(79, 208, 122, 0.1); }

.nav-burger {
  display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-burger span { width: 20px; height: 2px; background: var(--cream); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 400;
  background: var(--bg); border-top: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-soft);
  display: flex; align-items: flex-start; justify-content: center; padding-top: var(--space-5);
}
.nav-mobile.is-open { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.nav-mobile a { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  animation: splashSafety 0.01s 4.5s forwards;
  transition: opacity 0.8s, clip-path 1s;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.splash-logo { border-radius: 24px; animation: splashPulse 1.6s var(--ease-soft) infinite; }
.splash-line { width: 120px; height: 3px; border-radius: 2px; background: var(--bg-3); overflow: hidden; position: relative; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent);
  animation: splashLoad 1.1s var(--ease-soft) infinite;
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Cursor glow */
.cursor-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(79, 208, 122, 0.10), transparent 65%);
  opacity: 0; transition: opacity 0.6s;
}
.cursor-glow.is-active { opacity: 1; }

/* WhatsApp FAB */
.fab-whatsapp {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #06210f;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(79, 208, 122, 0.65);
  transition: transform 0.4s var(--ease-soft);
}
.fab-whatsapp .icon { width: 1.7rem; height: 1.7rem; }
.fab-whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); animation: fabPulse 2.8s ease-out infinite;
}
.fab-whatsapp:hover { transform: scale(1.08) translateY(-2px); }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp::before { animation: none; display: none; }
  .splash-logo { animation: none; }
}

/* Card base */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + var(--space-4));
  padding-bottom: var(--space-5);
  overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: -15% -10%; z-index: -1;
  background:
    radial-gradient(48% 40% at var(--mesh-x) var(--mesh-y), rgba(79, 208, 122, 0.30), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(255, 157, 77, 0.16), rgba(51, 70, 90, 0.12), rgba(79, 208, 122, 0.18), rgba(255, 157, 77, 0.16));
  filter: blur(90px) saturate(120%);
  opacity: 0.9;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0% { --mesh-angle: 0deg; --mesh-x: 24%; --mesh-y: 34%; }
  50% { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 24%; --mesh-y: 34%; }
}
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 4.4rem); max-width: 14ch; }
.hero-sub { font-size: 1.1rem; color: var(--cream-2); max-width: 46ch; margin-top: var(--space-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-4); font-size: 0.85rem; color: var(--cream-3);
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-figure { position: relative; }
.hero-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 100px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(79, 208, 122, 0.08);
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.08); }
}
.ambient-on { animation: ambientZoom 26s ease-in-out infinite; }

/* Concept */
.concept-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: auto 1fr; align-items: start;
}
.concept-num {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  color: var(--cream-3); padding-top: 0.3rem;
}

/* Products */
.product-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr;
}
.product-card {
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease-soft), border-color 0.5s;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}
.product-card.has-tilt { transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), border-color 0.5s; }
.product-card.has-tilt:hover { transition-duration: 0.15s; }
.product-card:hover { border-color: rgba(79, 208, 122, 0.35); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); }
.product-card-link { display: block; }
.product-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-soft), filter 0.5s; }
.product-card:hover .product-card-img img { transform: scale(1.08); filter: saturate(1.15); }
.product-card-body { padding: var(--space-3); transform: translateZ(30px); }
.product-card-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.product-card-body h3 { font-size: 1.35rem; margin-top: 0.5rem; }
.product-card-body p { color: var(--cream-2); font-size: 0.95rem; margin-top: 0.6rem; }
.product-card-cta { display: inline-block; margin-top: var(--space-2); font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 0.9rem; transition: transform 0.3s var(--ease-out); }
.product-card:hover .product-card-cta { transform: translateX(4px); }

/* Showcase (pinned horizontal) */
.showcase { overflow: visible; }
.showcase.is-pinned { padding-bottom: var(--space-6); }
.showcase-track {
  display: flex; gap: var(--space-3);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: var(--space-2) var(--space-3);
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.showcase-card {
  flex: none; width: min(76vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-soft); }
.showcase-card:hover img { transform: scale(1.06); }
@media (min-width: 1024px) {
  .showcase-track { overflow: visible; }
}

/* Tech */
.tech { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.tech-mesh {
  position: absolute; inset: -20% -10%; z-index: 0;
  background: radial-gradient(45% 45% at 70% 30%, rgba(255, 157, 77, 0.14), transparent 65%);
  filter: blur(80px);
}
.tech-grid { position: relative; display: grid; gap: var(--space-4); }
.tech-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.tech-stat dt { font-family: var(--display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--accent); font-weight: 600; }
.tech-stat dd { color: var(--cream-3); font-size: 0.85rem; margin-top: 0.3rem; }

/* Process */
.process-steps {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
.process-step { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.process-num { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--accent-2); letter-spacing: 0.05em; }
.process-step h3 { font-size: 1.25rem; margin-top: var(--space-1); }
.process-step p { color: var(--cream-2); margin-top: 0.5rem; font-size: 0.95rem; }

/* About */
.about-grid { display: grid; gap: var(--space-4); align-items: center; }
.about-badge { display: flex; justify-content: center; }
.about-badge img { border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(79, 208, 122, 0.25); }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin-top: var(--space-3); }
.about-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--cream-2); }
.about-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }

/* Final CTA */
.final-cta { text-align: center; overflow: hidden; }
.final-cta-mesh {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 208, 122, 0.22), transparent 68%);
  filter: blur(90px);
}
.final-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.final-cta .section-title { max-width: 20ch; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.footer-grid { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); }
.footer-brand p { color: var(--cream-3); font-size: 0.9rem; margin-top: 0.6rem; max-width: 30ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--space-3); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color 0.3s, background-color 0.3s; }
.footer-social a:hover { border-color: var(--accent); background: rgba(79, 208, 122, 0.1); }
.footer-social svg { width: 1.05rem; height: 1.05rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 0.3rem; }
.footer-col a, .footer-col span { color: var(--cream-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding-block: var(--space-3); border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--cream-3);
}

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .concept-grid { grid-template-columns: 100px 1fr; }
  .about-grid { grid-template-columns: 280px 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .section { padding-block: var(--space-7); }
}
