/* ============================================================
   SiteWing Technologies — showcase v2
   editorial light direction: paper ground, navy ink, big Hebrew
   type, one flight path the brand wing glides along.
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece8de;
  --ink: #101a33;
  --ink-soft: #2a3358;
  --muted: #5a6280;
  --faint: #8b90a8;
  --line: rgba(16, 26, 51, 0.16);
  --accent: #6d4aff;
  --accent-2: #19b8e0;
  --accent-3: #d6368c;
  --grad: linear-gradient(100deg, #6d4aff 0%, #19b8e0 60%, #2dd4bf 100%);
  --font-body: 'Assistant', sans-serif;
  --font-display: 'Karantina', sans-serif;
  --font-hand: 'Gveret Levin', cursive;
  --pad: clamp(1.25rem, 5vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* decorative cursor removed — restraint over device count (council) */

/* ---------- flight path ---------- */
.flight-svg {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
#flightPath {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.45;
}
.glide-wing {
  position: absolute;
  top: 0; left: 0;
  width: 84px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  will-change: transform;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .2s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn-primary {
  color: var(--paper);
  background: var(--ink);
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 0.55rem 1.3rem; font-size: 0.95rem; }
.btn-big { padding: 1.25rem 3rem; font-size: 1.25rem; }
/* dark-section primary */
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent-2); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  transform: translateY(-110%);
  transition: background .4s ease, box-shadow .4s ease;
}
.nav.is-scrolled {
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-lockup { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -6px; right: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: right; }

/* ---------- shared ---------- */
.section-eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7.5vw, 6.5rem);
  line-height: 0.95;
}
.section-head { padding: 0 var(--pad); margin-bottom: 3rem; }
.section-lead { max-width: 52ch; color: var(--muted); margin-top: 1.2rem; font-size: 1.1rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text .char {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reveal-heading { overflow: hidden; }
.hand-note {
  font-family: var(--font-hand);
  color: var(--accent-3);
  transform: rotate(-1.8deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 0 3rem;
  overflow: hidden;
  z-index: 3;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  max-width: 100%;
}
.hero-stage {
  position: absolute;
  z-index: 3;
  left: -5vw;
  bottom: 0;
  width: min(620px, 44vw);
  margin: 0;
}
.hero-grid {
  display: block;
}
.badge {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.5);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 12.5vw, 12.5rem);
  line-height: 0.9;
  margin: 1.4rem 0 0.4rem;
  white-space: nowrap;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:nth-child(2) { margin-inline-start: clamp(3rem, 11vw, 12rem); }
.hero-title .char { display: inline-block; will-change: transform; }
.dot-accent { color: var(--accent); }
.hero-hand {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--accent-3);
  margin: 0.6rem 0 1.1rem;
  margin-inline-start: clamp(3rem, 12vw, 13rem);
  transform: rotate(-1.5deg);
}
.hero-sub {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}
.hero-cta {
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0 var(--pad);
  position: relative;
  z-index: 5;
}
.hero-sub { position: relative; z-index: 4; }

.hero-frame {
  position: relative;
  transform: rotate(2.4deg);
  z-index: 2;
}
.hero-stage-note {
  font-family: var(--font-hand);
  color: var(--accent-3);
  font-size: 1.35rem;
  position: absolute;
  bottom: 0.8rem;
  left: calc(100% + 1.2rem);
  white-space: nowrap;
  margin: 0;
  transform: rotate(-2deg);
}

/* browser / phone frames (shared with work) */
.tilt-frame, .tilt-frame-m {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(16, 26, 51, 0.12);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.tilt-frame:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 14px 18px 0 rgba(109, 74, 255, 0.18);
}
.frame-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1.5px solid var(--ink);
  color: var(--faint);
  font-size: 0.78rem;
  direction: ltr;
  background: var(--paper-2);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c8c2b2; }
.frame-bar i:nth-child(1) { background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: auto; }
.frame-screen {
  height: clamp(300px, 48vh, 500px);
  overflow: hidden;
}
.frame-screen.tall { height: clamp(340px, 56vh, 580px); }
.frame-screen img {
  width: 100%;
  transition: transform 4.5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.tilt-frame:hover .frame-screen img,
.tilt-frame-m:hover .frame-screen img { transform: translateY(calc(-100% + 100%)); }
.tilt-frame:hover .frame-screen img { transform: translateY(calc(-100% + clamp(300px, 48vh, 500px))); }
.tilt-frame:hover .frame-screen.tall img { transform: translateY(calc(-100% + clamp(340px, 56vh, 580px))); }

.scroll-hint {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}
.scroll-line { width: 1px; height: 48px; background: rgba(16,26,51,0.18); overflow: hidden; }
.scroll-line i {
  display: block; width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDrop 1.8s cubic-bezier(.7,0,.2,1) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(260%); }
}

/* ---------- manifesto ---------- */
.manifesto {
  position: relative;
  z-index: 3;
  padding: 16vh var(--pad) 14vh;
  max-width: 76rem;
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.12;
}
.manifesto-text .word { display: inline-block; opacity: 0.13; will-change: opacity; }

/* ---------- benefits ---------- */
.benefits { position: relative; z-index: 3; padding: 6vh 0 14vh; }
.benefit-list {
  list-style: none;
  padding: 0 var(--pad);
  border-top: 1.5px solid var(--line);
}
.benefit {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1.5px solid var(--line);
  transition: background .3s ease, padding-inline-start .3s ease;
}
.benefit:hover { background: rgba(255,255,255,0.45); }
.benefit:nth-child(even) { padding-inline-start: clamp(0rem, 8vw, 9rem); }
.benefit-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3rem;
  color: var(--faint);
}
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color .25s ease;
}
.benefit:hover h3 { color: var(--accent); }
.benefit p { color: var(--muted); max-width: 52ch; }

/* ---------- process ---------- */
.process { position: relative; z-index: 3; }
.process-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 3.5rem;
  overflow: hidden;
  padding: 4rem 0;
}
.process-head { padding: 0 var(--pad); }
.process-progress {
  width: min(320px, 40vw);
  height: 2px;
  margin-top: 1.6rem;
  background: rgba(16,26,51,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.process-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
}
.process-track {
  display: flex;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: 0 clamp(1.5rem, 6vw, 8rem);
  width: max-content;
  will-change: transform;
}
.p-panel {
  position: relative;
  width: clamp(300px, 33vw, 460px);
  min-height: 340px;
  padding: 2.4rem 0.4rem 0;
  border-top: 1.5px solid var(--ink);
  background: transparent;
  display: flex; flex-direction: column; justify-content: flex-end;
  flex-shrink: 0;
}
.p-panel:nth-child(even) { transform: translateY(3rem); }
.p-num {
  position: absolute;
  top: 0.6rem; right: 1.4rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(6rem, 8vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16,26,51,0.35);
}
.p-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.p-panel p { color: var(--muted); }

/* ---------- work ---------- */
.work { position: relative; z-index: 3; padding: 12vh 0 10vh; }
.work-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: 0 var(--pad);
}
.work-desktop { transform: rotate(-1.6deg); }
.work-desktop:hover { transform: rotate(0deg) translateY(-6px); }
.tilt-frame-m {
  border-radius: 30px;
  background: #fff;
  transform: rotate(2.5deg);
}
.tilt-frame-m:hover { transform: rotate(0deg) translateY(-6px); }
.phone-notch {
  width: 34%; height: 16px;
  margin: 10px auto 6px;
  border-radius: 100px;
  background: var(--ink);
  opacity: .85;
}
.phone-screen {
  height: clamp(340px, 52vh, 540px);
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
}
.phone-screen img {
  width: 100%;
  transition: transform 4.5s cubic-bezier(.2,.8,.2,1);
}
.tilt-frame-m:hover .phone-screen img { transform: translateY(calc(-100% + clamp(340px, 52vh, 540px))); }
.work-note {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  text-align: left;
  margin-top: 0.5rem;
}
.work-points {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  margin-top: 2.2rem;
}
.work-points li {
  border-top: 1.5px solid var(--ink);
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* ---------- statement ---------- */
.statement {
  position: relative; z-index: 3;
  padding: 14vh var(--pad);
  text-align: center;
}
.statement-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.95;
}

/* ---------- cta (dark contrast) ---------- */
.cta {
  position: relative; z-index: 3;
  background: var(--ink);
  color: #f2f4ff;
  padding: 11vh var(--pad) 14vh;
  text-align: center;
  overflow: hidden;
}
.cta-inner { position: relative; z-index: 2; }
.cta-lockup { height: 54px; width: auto; margin: 0 auto 1.6rem; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  margin-bottom: 1.4rem;
}
.cta-sub { color: #aab1d0; font-size: 1.12rem; max-width: 42ch; margin: 0 auto 2.4rem; }
.cta-glow {
  position: absolute;
  left: 50%; bottom: -35%;
  width: 70vw; height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(109,74,255,0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 3;
  padding: 2.8rem var(--pad) 2.2rem;
  display: flex; flex-direction: column; gap: 0.7rem; align-items: center;
  text-align: center;
  color: var(--muted);
}
.footer-lockup { height: 40px; width: auto; }
.footer-line { font-size: 0.95rem; }
.footer-copy { font-size: 0.85rem; color: var(--faint); }

/* ---------- reveals are JS-driven (gsap.from); no CSS hidden state ---------- */

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-lockup { height: 32px; }
  .hero { padding-top: 5.5rem; min-height: auto; }
  .hero-stage { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 2.2rem; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { order: 1; }
  .hero-cta { order: 2; margin-top: 1.8rem; }
  .hero-stage { order: 3; }
  .hero-title { font-size: clamp(4rem, 17vw, 6.4rem); white-space: normal; }
  .hero-hand { margin-inline-start: 2rem; }
  .hero-stage-note { position: static; margin-top: 1rem; text-align: right; }
  .scroll-hint { display: none; }
  .benefit { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .benefit:nth-child(even) { padding-inline-start: 0; }
  .benefit-num { font-size: 2.2rem; }
  .work-stage { grid-template-columns: 1fr; align-items: start; }
  .work-mobile { width: min(300px, 100%); margin-inline: auto; }
  .work-note { text-align: right; }
  .work-points { grid-template-columns: 1fr; gap: 1rem; }
  .p-panel { width: 78vw; min-height: 330px; }
  .process-track { padding: 0 var(--pad); }
  .glide-wing { width: 44px; }
}
@media (max-width: 640px) {
  .nav .btn { display: none; }
  .nav { padding: 0.8rem var(--pad); }
  .hero-title { font-size: clamp(3.6rem, 19vw, 5.4rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-line i { animation: none; }
  .flight-svg, .glide-wing { display: none; }
  * { transition-duration: 0.01ms !important; }
  .process-pin { min-height: 0; overflow: visible; }
  .process-track {
    width: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
  }
  .p-panel:nth-child(even) { transform: none; }
  .process-progress { display: none; }
}

/* ---------- keyboard focus ---------- */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- live demo frames ---------- */
.frame-screen, .phone-screen { position: relative; }
.frame-live {
  position: absolute;
  top: 0; right: 0;
  width: 1280px; height: 860px;
  border: 0;
  transform-origin: top right;
  pointer-events: none;
  background: #faf6ef;
}
.frame-live-mobile { width: 390px; height: 844px; }
.frame-live { touch-action: pan-y; }
.frame-screen.is-live .frame-live, .phone-screen.is-live .frame-live { pointer-events: auto; }
.frame-activate {
  position: absolute;
  inset-inline: 0; bottom: 0;
  z-index: 3;
  padding: 0.55rem 1rem;
  border: 0;
  border-top: 1.5px solid var(--ink);
  background: rgba(16, 26, 51, 0.92);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity .3s ease;
}
.frame-screen.is-live .frame-activate, .phone-screen.is-live .frame-activate { opacity: 0; pointer-events: none; }

/* ---------- mobile nav ---------- */
.nav-side { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu {
  position: fixed;
  top: 68px; right: var(--pad); left: var(--pad);
  z-index: 190;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 10px 0 rgba(16, 26, 51, 0.12);
  overflow: hidden;
}
.nav-menu a {
  padding: 1rem 1.4rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:active { background: var(--paper-2); }

/* ---------- try-name ---------- */
.try-name {
  grid-column: 1 / -1;
  margin-top: 2.5rem;
  padding: 1.8rem 0 0;
  border-top: 1.5px solid var(--ink);
  max-width: 560px;
}
.try-name label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.try-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.try-row input {
  flex: 1 1 220px;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.try-row input::placeholder { color: var(--faint); }
.try-note { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.try-row .btn { border: 1.5px solid var(--ink); cursor: pointer; font-family: var(--font-body); font-size: 1rem; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .nav-side .btn { display: none; }
}
.nav-menu[hidden] { display: none; }

.cta-actions{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}
@media(max-width:600px){.cta .btn-big{padding:1rem 2rem;font-size:1.1rem}}
