/* ============================================================
   REFYN — desktop overrides (min-width: 900px)
   Loaded after refyn-mobile.css; only overrides what changes.
   ============================================================ */

:root {
  --gutter: 64px;
}

/* ============ NAV (desktop) ============ */
.nav {
  position: static;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px 0;
}

.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-text { font-size: 21px; color: var(--ink); }

.nav__toggle { display: none; }

.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop-item {
  position: relative;
}

.nav-desktop-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-desktop-link:hover {
  background: rgba(67, 40, 24, 0.06);
}

.nav-desktop-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--bone);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(10, 10, 10, 0.4);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.nav-desktop-item:hover .nav-desktop-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-desktop-dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
}

.nav-desktop-dropdown a:hover {
  background: rgba(67, 40, 24, 0.06);
}

.nav-desktop-link-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.nav-desktop-link-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--stone);
  line-height: 1.4;
}

.nav-desktop-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-desktop-cta:hover { background: var(--gold-dim); }

/* ============ HERO ============ */

.hero {
  padding: 168px clamp(24px, 5vw, 64px) 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__trace {
  height: 100%;
}

.hero__inner { grid-column: 1; grid-row: 1; }
.hero__demo { grid-column: 2; margin-top: 8px; }

.hero__headline { font-size: clamp(28px, 6vw, 60px); margin-bottom: 26px; }

.hero__sub { font-size: 18px; margin-bottom: 40px; }

.hero__actions { flex-direction: row; margin-bottom: 0; }
.hero__actions .btn { width: auto; }

.hero__scroll-cue {
  grid-column: 1 / -1;
  margin-top: 90px;
}

/* ============ LOOP ============ */
.loop {
  padding: 130px var(--gutter);
  max-width: 1000px;
  margin: 0 auto;
}
.loop .section-title { margin-bottom: 80px; max-width: 20ch; }

.loop__trace-wrap { left: 39px; top: 300px; }

.loop__steps { gap: 64px; }
.loop__step-title { font-size: 24px; }
.loop__step-desc { font-size: 16px; }

/* ============ STACK ============ */
.stack {
  padding: 130px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.stack__intro { margin-bottom: 56px; }
.stack__intro .section-title { max-width: 16ch; }
.stack__all-btn:hover { opacity: 1; }

.stack__carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: visible;
  margin: 0;
  padding: 0;
}
.stack__card { flex: initial; padding: 34px 30px; }
.stack__card:hover { border-color: rgba(91, 79, 232, 0.4); }
.stack__card-diagram { height: 120px; }

.stack__dots { display: none; }

/* ============ PROOF ============ */
.proof {
  padding: 130px var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}
.proof__sub { margin-bottom: 64px; }

.proof__grid {
  grid-template-columns: repeat(3, 1fr);
}
.proof__stat { padding: 36px 24px; }
.proof__stat-num { font-size: 32px; }

/* ============ TRUST ============ */
.trust { padding: 56px var(--gutter); }
.trust__logos {
  grid-template-columns: repeat(4, auto);
  gap: 64px;
}
.trust__logo { font-size: 18px; transition: opacity 0.15s ease; }
.trust__logo:hover { opacity: 1; }

/* ============ CAPABILITIES ============ */
.capabilities {
  padding: 130px var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}
.capabilities .section-title { margin-bottom: 56px; max-width: 22ch; }

.capabilities__grid {
  grid-template-columns: repeat(4, 1fr);
  flex-direction: initial;
}
.cap-card { padding: 32px 26px; }
.cap-card:hover { background: var(--bone-dim); }

/* ============ DEVELOPERS ============ */
.developers {
  padding: 130px var(--gutter);
  display: flex;
  flex-direction: column;
  max-width: 1240px;
  margin: 0 auto;
}
.developers__text { margin-bottom: 48px; max-width: 640px; }
.developers__sub { font-size: 16px; }
.code-block__body { font-size: 13.5px; padding: 24px 22px; }

/* dev-demo: drop the phone conceit entirely, become a short wide panel spanning the full row */
.dev-demo { padding: 0; background: none; width: 100%; }
.dev-demo__frame {
  display: block;
  border-radius: 16px;
  border-width: 1px;
  border-color: var(--line-on-ink);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35);
}
.dev-demo__notch { display: none; }

.dev-demo__thread {
  min-height: 340px;
  max-height: none;
  overflow-y: visible;
  padding: 28px 40px;
}

.dev-demo__caption { margin-top: 24px; }

.hero__visual {
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.hero__visual spline-viewer {
  width: 100%;
  height: 100%;
}

.hero__graphic{
    grid-column: 2;
    grid-row: 1;
    position: relative;
    justify-self: end;
    align-self: start;
    margin-top: -20px;
    margin-right: -60%;

    width: 100%;
    max-width: 500px;

    pointer-events: none;
    user-select: none;

    z-index: 1;
}

.hero__graphic img{
    width: 45%;
    height: auto;

    opacity: .95;

    filter:
        drop-shadow(0 0 25px rgba(255,255,255,.12))
        drop-shadow(0 0 90px rgba(197,159,87,.22));

    transform-origin: center center;

    animation:
        heroFloat 8s ease-in-out 2,
        heroSway 14s ease-in-out 1;
}

.hero__graphic:hover img{
    animation:
        heroFloat 8s ease-in-out infinite,
        heroSway 14s ease-in-out infinite;
}

@keyframes heroFloat{
    0%,100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-14px);
    }
}

@keyframes heroSway{
    0%,100%{
        rotate: -4deg;
        scale: 1;
    }

    50%{
        rotate: 4deg;
        scale: 1.03;
    }
}

/* ============ CTA ============ */
.cta-section {
  padding: 140px var(--gutter);
  max-width: 800px;
  margin: 0 auto;
}
.cta__actions { flex-direction: row; justify-content: center; margin-bottom: 36px; }
.cta__actions .btn { width: auto; }
.cta__notes {
  flex-direction: row;
  justify-content: center;
  gap: 28px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 80px var(--gutter) 40px;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto 56px;
}
.footer__tagline { margin-bottom: 0; }
.footer__socials { margin-bottom: 0; }
.footer__socials a:hover img { opacity: 1; }

.footer__cols {
  flex-direction: row;
  justify-content: flex-end;
  gap: 80px;
  max-width: 1240px;
  margin: 0 auto 56px;
}
.footer__col a:hover { color: var(--bone); }

.footer__bottom {
  max-width: 1240px;
  margin: 0 auto;
}

/* ============ CONTAINER CAP FOR ULTRAWIDE ============ */
@media (min-width: 1400px) {
  :root { --gutter: calc((100vw - 1240px) / 2); }
}
