/* =========================================================
   TAREFLOW — Base styles (shared by every section)
   Design tokens pulled from Figma (Kinetic Solutions Website)
   ========================================================= */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --color-white: #ffffff;
  --color-amber: #ffb300;          /* brand/neon-amber */
  --color-ink: #0a121c;            /* button / badge base */
  --color-bg: #0d1117;             /* page background (matches hero bottom fade) */
  --color-bg-fade: #0d1117;        /* hero bottom fade */
  --color-text-muted: rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   /* nav + buttons use Inter everywhere */

  /* Layout */
  --container-max: 1280px;   /* Figma inner frame width */
  --container-pad: 32px;     /* Figma inner frame padding */
  --radius-md: 12px;

  /* Effects */
  --glow-amber: 0 0 17px rgba(255, 179, 0, 0.19);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Shared "glass" button (Join Waitlist, menu toggle) ---------- */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 46px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-md);
  background:
    radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 100%),
    var(--color-ink);
  box-shadow: var(--glow-amber);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  white-space: nowrap;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.btn-glass:hover {
  box-shadow: 0 0 24px rgba(255, 179, 0, 0.38);
  border-color: var(--color-amber);
}

.btn-glass:hover .btn-glass__icon {
  transform: translateX(3px);
}

.btn-glass__icon {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

/* ---------- Amber icon badge (Figma "Integration Icon") ----------
   Drawn in code; put any icon inside. Size with --s (default 64px). */
.icon-badge {
  --s: 64px;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border: calc(var(--s) * 0.0208) solid #f6d47d;
  border-radius: calc(var(--s) * 0.2333);
  background: #150503;
  overflow: hidden;
}

.icon-badge__inner {
  display: grid;
  place-items: center;
  width: 88.33%;
  height: 88.33%;
  border-radius: 22.6%;
  background:
    radial-gradient(52.7% 73.6% at 50% 0, rgba(240, 183, 38, 0.32) 6.3%, rgba(240, 183, 38, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.048) 100%);
}

.icon-badge__inner img {
  width: 60.4%;
  height: auto;
}

/* ---------- Reveal-on-load animation (driven by js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 24px;
  }
}

/* Phones & tablets: shorter, lighter reveal so scrolling stays smooth */
@media (max-width: 991px), (hover: none) and (pointer: coarse) {
  .reveal {
    transform: translateY(12px);
    transition-duration: 0.5s;
  }
}
