/* ==========================================================================
   VirtuITS — static stylesheet
   Hand-written port of the Tailwind design tokens in src/index.css.

   Note on colour naming: the original Tailwind config aliased `teal` to the
   orange token, so every `text-teal` / `bg-teal` in the React source actually
   renders orange. That misnomer is not carried over here — the accent colour
   is simply called `--accent`.

   Every font-size below is paired with the line-height Tailwind's `text-*`
   scale applies, since those two always travel together:
     xs .75/1rem · sm .875/1.25rem · base 1/1.5rem · lg 1.125/1.75rem
     xl 1.25/1.75rem · 2xl 1.5/2rem · 3xl 1.875/2.25rem · 4xl 2.25/2.5rem
     5xl 3rem/1 · 6xl 3.75rem/1   (relaxed 1.625 · snug 1.375 · tight 1.25)

   Breakpoints match Tailwind exactly: sm 640, md 768, lg 1024, xl 1280.
   ========================================================================== */

:root {
  --background: hsl(30 10% 97%);
  --foreground: hsl(0 0% 15%);
  --card: hsl(0 0% 100%);
  --muted: hsl(220 15% 94%);
  --muted-foreground: hsl(220 10% 46%);
  --border: hsl(220 15% 88%);
  --primary: hsl(0 0% 22%);

  --accent: hsl(28 92% 52%);
  --accent-light: hsl(36 95% 58%);
  --accent-dark: hsl(18 90% 42%);
  --accent-soft: hsl(28 92% 52% / 0.1);
  --accent-line: hsl(28 92% 52% / 0.3);

  --radius: 0.625rem;

  --gradient-accent: linear-gradient(135deg, hsl(18 90% 42%) 0%, hsl(36 95% 58%) 100%);

  --shadow-accent: 0 8px 30px -6px hsl(28 92% 52% / 0.35);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
}

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

img, svg {
  display: block;
  vertical-align: middle;
}

/* Must outrank the display rules above, or [hidden] elements still render. */
[hidden] { display: none !important; }

img {
  max-width: 100%;
  height: auto;
}

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

strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.container {
  max-width: 80rem;
  margin-inline: auto;
}

/* px-6 py-20 md:px-12 lg:px-20 xl:px-32 */
.section {
  padding: 5rem 1.5rem;
}

/* px-6 py-12 md:px-12 lg:px-20 xl:px-32 — the tighter VA-page rhythm */
.section--tight {
  padding: 3rem 1.5rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }

.accent  { color: var(--accent); }
.muted   { color: var(--muted-foreground); }
.bg-card { background: var(--card); }

.text-gradient {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-accent);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-primary--lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.btn-primary--arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pill badge above the page headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Scroll reveal — replaces framer-motion's whileInView
   Content is visible by default; the hidden state is only applied once the
   inline script has confirmed it can reveal it again (.js on <html>).
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 20px)) translateX(var(--reveal-x, 0));
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eyebrow__dot { animation: none; }
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--foreground);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.navbar__logo img { height: 3.5rem; width: auto; }

.navbar__links,
.navbar__actions {
  display: none;
}

.navbar__link {
  color: hsl(0 0% 15% / 0.7);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.navbar__link:hover { color: var(--foreground); }

.navbar__toggle {
  display: flex;
  color: var(--foreground);
}

.navbar__toggle svg { width: 1.5rem; height: 1.5rem; }

/* Icon swap is driven by aria-expanded rather than the `hidden` attribute:
   `hidden` is an IDL property of HTMLElement only, so el.hidden = true is a
   no-op on an <svg>. */
.navbar__toggle[aria-expanded="false"] .navbar__icon-close,
.navbar__toggle[aria-expanded="true"] .navbar__icon-open {
  display: none;
}

.navbar__panel {
  background: hsl(0 0% 100% / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.navbar__panel[hidden] { display: none; }

.navbar__panel a.navbar__link {
  display: block;
  color: hsl(0 0% 15% / 0.8);
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}

.navbar__panel-cta { padding-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--background);
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin-inline: auto;
  padding: 8rem 1.5rem 5rem;
}

.hero__content { max-width: 48rem; }

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__actions .btn-primary { text-align: center; }

/* Hero on the Virtual Assistants page — pt-28 pb-10, no min-height.
   Unlike the home hero, this one carries its padding on the <section> with the
   max-width container nested inside, so the content sits 80px further left. */
.hero--page {
  min-height: 0;
  display: block;
  padding: 7rem 1.5rem 2.5rem;
}

.hero--page .hero__inner { padding: 0; }
.hero--page .eyebrow { margin-bottom: 1rem; }
.hero--page .hero__lede { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Platform logos
   -------------------------------------------------------------------------- */

.platforms { background: var(--card); }

.platforms__title {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.platforms__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.platforms__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
}

.platforms__item img {
  width: auto;
  object-fit: contain;
}

.platforms__item--text {
  color: hsl(0 0% 15% / 0.6);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

/* Per-logo sizing, carried over from PlatformLogos.tsx */
.logo-amazon     { height: 1.75rem; max-width: 120px; }
.logo-walmart    { height: 1.5rem;  max-width: 130px; }
.logo-ebay       { height: 1.5rem;  max-width: 120px; }
.logo-backmarket { height: 1.25rem; max-width: 150px; }
.logo-newegg     { height: 2.25rem; max-width: 120px; }
.logo-bestbuy    { height: 2.5rem;  max-width: 120px; }
.logo-temu       { height: 2.25rem; max-width: 120px; }
.logo-shopify    { height: 2rem;    max-width: 120px; }

/* --------------------------------------------------------------------------
   Key pillars
   -------------------------------------------------------------------------- */

.pillars__grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  max-width: 20rem;
}

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

.heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.heading--sm {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   Card grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--tight { gap: 1rem; }

.card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.card h4 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h4 .icon { color: var(--accent); }

.card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.cta-row { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Trust section
   -------------------------------------------------------------------------- */

.trust__row {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.trust__lede {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.trust__lede strong { color: var(--foreground); }

.trust__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trust__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.5);
}

.trust__badge .icon { color: var(--accent); }

.trust__badge span {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

.steps {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.step {
  display: flex;
  gap: 1rem;
}

.step + .step { margin-top: 1.5rem; }

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step__line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 0.5rem;
}

.step h4 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta__inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.final-cta h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Virtual Assistants page
   -------------------------------------------------------------------------- */

.reason {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reason:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.reason .icon {
  color: var(--accent);
  margin-top: 0.125rem;
}

.reason span {
  font-size: 0.875rem;
  line-height: 1.375;
  color: hsl(0 0% 15% / 0.8);
}

.va-banner {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.va-subhead {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.va-subhead .icon { color: var(--accent); }

.va-category h4 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.va-task {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.va-task + .va-task { margin-top: 0.75rem; }

.va-task .icon { color: var(--accent); }

.va-task span {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(0 0% 15% / 0.8);
}

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

.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.footer__inner {
  max-width: 80rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__logo img { height: 2rem; width: auto; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.footer__links a { transition: color 0.15s ease; }
.footer__links a:hover { color: var(--foreground); }

.footer__copy {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(220 10% 46% / 0.5);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  text-align: center;
  padding: 1.5rem;
}

.notfound h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.notfound p {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.notfound a {
  color: var(--primary);
  text-decoration: underline;
}

.notfound a:hover { color: hsl(0 0% 22% / 0.9); }

/* ==========================================================================
   Responsive — sm 640 / md 768 / lg 1024 / xl 1280
   ========================================================================== */

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }

  .pillars__grid    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--cards      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--reasons    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .section        { padding-inline: 3rem; }
  .section--tight { padding-inline: 3rem; }
  .hero__inner    { padding: 10rem 3rem 5rem; }
  .hero--page     { padding-inline: 3rem; }

  .navbar__inner { padding-inline: 3rem; }

  .navbar__links,
  .navbar__actions {
    display: flex;
    align-items: center;
  }

  .navbar__links   { gap: 2rem; }
  .navbar__actions { gap: 0.75rem; }

  .navbar__toggle,
  .navbar__panel { display: none !important; }

  /* text-5xl / 2xl / xl — note text-5xl carries line-height 1 */
  .hero h1        { font-size: 3rem; line-height: 1; }
  .hero__tagline  { font-size: 1.5rem; line-height: 2rem; }
  .hero__lede     { font-size: 1.25rem; line-height: 1.75rem; }

  .platforms__row        { gap: 2rem; }
  .platforms__item--text { font-size: 1rem; line-height: 1.5rem; }

  .pillars__grid { gap: 3rem; }
  .pillar h3     { font-size: 2.25rem; line-height: 2.5rem; }
  .pillar p      { font-size: 1rem; line-height: 1.5rem; }

  .heading      { font-size: 2.25rem; line-height: 2.5rem; }
  .final-cta h2 { font-size: 2.25rem; line-height: 2.5rem; }

  .footer        { padding-inline: 3rem; }
  .footer__inner { flex-direction: row; }
}

@media (min-width: 1024px) {
  .section        { padding-inline: 5rem; }
  .section--tight { padding-inline: 5rem; }
  .hero__inner    { padding-inline: 5rem; }
  .hero--page     { padding-inline: 5rem; }

  .navbar__inner { padding-inline: 5rem; }
  .footer        { padding-inline: 5rem; }

  /* text-6xl — line-height 1 */
  .hero h1 { font-size: 3.75rem; line-height: 1; }

  .trust__row       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--cards      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--reasons    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .section        { padding-inline: 8rem; }
  .section--tight { padding-inline: 8rem; }
  .hero__inner    { padding-inline: 8rem; }
  .hero--page     { padding-inline: 8rem; }
}
