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

/*
  ---------------------------------------------------------------------------
  HERO EFFECT TUNING GUIDE (Quick knobs)
  ---------------------------------------------------------------------------

  1) Spacing / layout
     - .hero { padding: ... }                 -> top/bottom spacing of the hero section
     - .hero-inner grid columns               -> text vs card width ratio

  2) Background look
     - .orb-1 / .orb-2 sizes + gradients      -> "glow blobs" intensity and placement
     - .orb { filter: blur(...); opacity: ... } -> softness + strength of blobs
     - .grid opacity + background-size        -> grid visibility + scale

  3) Animation (the “cinematic soft” effect)
     a) Entry animation (fade-up)
        - Initial state (opacity/translate/scale) is in:
          html.hero-motion .hero ...
        - Timing/delays are in:
          html.hero-motion.hero-ready .hero ...
        - The actual movement curve is in:
          @keyframes hero-fade-up

     b) Ambient motion (floating)
        - Orbs float in: @keyframes hero-orb-float-1 / 2
        - Card drift in: @keyframes hero-card-drift
        - Their durations are set on:
          html.hero-motion.hero-ready .hero .orb-1 / .orb-2 / .hero-card

  4) Reduced motion
     - Everything is disabled inside:
       @media (prefers-reduced-motion: reduce)

  ---------------------------------------------------------------------------
  Common edits:
  - Make it more subtle: reduce translateY, reduce blur in hero-fade-up "from",
    reduce orb opacity, shorten drift distance.
  - Make it more punchy: increase translateY, increase blur on "from",
    increase orb opacity, increase float distance.
  - Speed it up: lower durations (860ms, 980ms, 1040ms, 9.5s, 11.5s, 6.8s).
  - Slow it down: raise those durations.
*/


.hero {
  /* Layout spacing for the hero section.
     Change these values if the hero feels too tall or too tight. */
  padding: 84px 0 44px;
  position: relative;
  overflow: hidden;
  /* Keeps floating orbs/grid from spilling outside */
}

@media (max-width: 860px) {
  .hero {
    /* Mobile/tablet spacing */
    padding: 66px 0 44px;
  }
}

.hero-inner {
  /* Controls the two-column layout:
     - 1.15fr -> text column (left)
     - 0.85fr -> card column (right)
     Make the card bigger: increase the second value.
     Make the text bigger: increase the first value. */
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  position: relative;
}

@media (max-width: 980px) {
  .hero-inner {
    /* Stacks into one column on smaller screens */
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  /* Keep text above background layers */
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.kicker::before {
  /* The small gradient dot. Tune:
     - width/height => size
     - box-shadow alpha => glow strength */
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.15);
}

.hero-title {
  margin: 0 0 12px;

  /* Responsive title size. Adjust clamp() if you want:
     - min size (34px)
     - fluid scale (5.4vw)
     - max size (56px) */
  font-size: clamp(34px, 5.4vw, 56px);

  line-height: 1.02;

  /* More negative => tighter, more “modern headline”.
     Less negative => more readable / calmer. */
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  max-width: 62ch;
  /* Limit line length for readability */
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.trust-item {
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-num {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-label {
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.hero-card {
  /* Keep card above background layers */
  position: relative;
  z-index: 2;
}

.hero-card .card {
  padding: 18px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.spark {
  /* Decorative glow badge.
     Want it stronger? Increase alpha values in the radial gradients.
     Want it calmer? Reduce them. */
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(91, 141, 239, 0.70), transparent 55%),
    radial-gradient(18px 18px at 70% 75%, rgba(168, 85, 247, 0.65), transparent 55%),
    rgba(255, 255, 255, 0.05);
}

.deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.deliverables li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.deliverables .icon {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.deliverables .txt {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

.card-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.helper-note {
  color: var(--muted-2);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

.action-link {
  color: rgba(248, 250, 252, 0.90);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.action-link::after {
  content: "➜";
  display: inline-block;
  margin-left: 8px;
  transform: translateY(1.5px);
}

/* -------------------------------------------------------------------------- */
/* Background layers                                                           */
/* -------------------------------------------------------------------------- */

.hero-bg {
  /* This wrapper sits behind content. */
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  /* Global orb look.
     - blur higher => softer, dreamier
     - opacity higher => stronger glow */
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.85;
}

.orb-1 {
  /* Left glow blob.
     Change width/height for size, left/top for position. */
  width: 420px;
  height: 420px;
  left: -140px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 141, 239, 0.55), rgba(91, 141, 239, 0.00) 60%);
}

.orb-2 {
  /* Right glow blob. */
  width: 520px;
  height: 520px;
  right: -180px;
  top: -110px;
  background: radial-gradient(circle at 70% 40%, rgba(168, 85, 247, 0.52), rgba(168, 85, 247, 0.00) 62%);
}

.grid {
  /* The subtle “tech grid”.
     - background-size => grid cell size (bigger = more spaced)
     - opacity => visibility
     - mask-image => where it fades out */
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, 0.9), transparent 70%);
  opacity: 0.16;
}

/* -------------------------------------------------------------------------- */
/* Hero motion (Cinematic Soft)                                                */
/* -------------------------------------------------------------------------- */

/*
  How motion is toggled:
  - Add class "hero-motion" on <html> to enable the animation system.
  - Add "hero-ready" once the page is ready (e.g., after a small timeout or on load).
  This lets you avoid animating before fonts/layout are stable.

  The "initial state" below sets elements hidden + slightly down + slightly scaled.
  The "hero-ready" rules apply keyframes to bring them in.
*/

html.hero-motion .hero .kicker,
html.hero-motion .hero .hero-title,
html.hero-motion .hero .hero-subtitle,
html.hero-motion .hero .hero-cta,
html.hero-motion .hero .trust-item,
html.hero-motion .hero .hero-card .card {
  /* Change the entry “distance” here:
     - translateY bigger => comes from lower
     - scale smaller => more “zoom in”
     If you want subtler: translate3d(0, 18px, 0) scale(0.99) */
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.975);
}

/* Entry timing:
   - 860ms, 980ms, 1040ms are durations
   - "120ms", "220ms", etc are delays for stagger */
html.hero-motion.hero-ready .hero .kicker {
  animation: hero-fade-up 860ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.hero-motion.hero-ready .hero .hero-title {
  animation: hero-fade-up 980ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

html.hero-motion.hero-ready .hero .hero-subtitle {
  animation: hero-fade-up 980ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

html.hero-motion.hero-ready .hero .hero-cta {
  animation: hero-fade-up 980ms cubic-bezier(0.22, 1, 0.36, 1) 320ms forwards;
}

html.hero-motion.hero-ready .hero .trust-item:nth-child(1) {
  animation: hero-fade-up 860ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}

html.hero-motion.hero-ready .hero .trust-item:nth-child(2) {
  animation: hero-fade-up 860ms cubic-bezier(0.22, 1, 0.36, 1) 500ms forwards;
}

html.hero-motion.hero-ready .hero .trust-item:nth-child(3) {
  animation: hero-fade-up 860ms cubic-bezier(0.22, 1, 0.36, 1) 580ms forwards;
}

html.hero-motion.hero-ready .hero .hero-card .card {
  /* Card arrives slightly later and a touch longer for “weight” */
  animation: hero-fade-up 1040ms cubic-bezier(0.22, 1, 0.36, 1) 260ms forwards;
}

/* Ambient motion (after the entry).
   If you want NO floating at all, remove these three rules. */
html.hero-motion.hero-ready .hero .hero-card {
  /* 6.8s = speed, 1.6s = delay before it starts drifting */
  animation: hero-card-drift 6.8s ease-in-out 1.6s infinite alternate;
}

html.hero-motion.hero-ready .hero .orb-1 {
  /* 9.5s float speed, 1.1s start delay */
  animation: hero-orb-float-1 9.5s ease-in-out 1.1s infinite alternate;
}

html.hero-motion.hero-ready .hero .orb-2 {
  /* 11.5s float speed, 1.35s start delay */
  animation: hero-orb-float-2 11.5s ease-in-out 1.35s infinite alternate;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;

    /* Entry “lift” feel:
       - translateY controls how far it rises
       - scale controls how much it grows
       - blur controls how soft it starts */
    transform: translate3d(0, 34px, 0) scale(0.975);
    filter: blur(4px);
    /* Subtle cinematic softness */
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-orb-float-1 {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    /* Increase these values for more movement,
       decrease for subtler floating. */
    transform: translate3d(28px, 22px, 0);
  }
}

@keyframes hero-orb-float-2 {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-30px, 22px, 0);
  }
}

@keyframes hero-card-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    /* Drift amount. Try -6px for subtle, -16px for stronger. */
    transform: translate3d(0, -10px, 0);
  }
}

/* -------------------------------------------------------------------------- */
/* Accessibility: prefer-reduced-motion                                        */
/* -------------------------------------------------------------------------- */

/* If user prefers reduced motion, we show everything immediately and stop floats. */
@media (prefers-reduced-motion: reduce) {

  html.hero-motion .hero .kicker,
  html.hero-motion .hero .hero-title,
  html.hero-motion .hero .hero-subtitle,
  html.hero-motion .hero .hero-cta,
  html.hero-motion .hero .trust-item,
  html.hero-motion .hero .hero-card .card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html.hero-motion .hero .orb {
    animation: none;
  }

  html.hero-motion .hero .hero-card {
    animation: none;
  }
}