/* Polymorph 2026 site styles, shared by all pages (from Figma: Polymorph-Website-2024 › Claude space) */

@font-face { font-family: "Clash Display"; font-weight: 400; font-display: swap;
  src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 500; font-display: swap;
  src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 600 700; font-display: swap;
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"); }

:root {
  /* Figma styles */
  --ink: #001428;          /* Polymorph Primary/Dark Blue */
  --blue: #3E85FF;         /* Polymorph Primary/Blue */
  --blue-hover: #1F6BEB;
  --red: #EF413D;
  --sky: #9FC1FF;
  --white: #FFFFFF;
  --label: #B5B5B5;
  --muted: #CCCCCC;
  --base-60: #8C8C8C;
  --base-80: #6B6B6B;
  --display: "Clash Display", "Figtree", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--white); font: 400 18px/23px var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }

/* Section label: 36px rule + 25px text */
.label { display: flex; align-items: center; gap: 8px; font: 400 25px/30px var(--body); color: var(--label); }
.label::before { content: ""; width: 36px; height: 2px; background: currentColor; flex: none; }
.h2 { font: 500 58px/74px var(--display); letter-spacing: -.005em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 16px 32px; border-radius: 5px; font: 600 18px/23px var(--body); color: var(--white); background: var(--blue); border: 1.5px solid var(--blue); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.ghost { background: transparent; border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Navigation (sticky) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav .logo img { width: 157px; height: 29px; }
.menu { display: flex; align-items: center; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font: 400 18px/23px var(--body); color: var(--white); background: none; border: 0; cursor: pointer; }
.menu .current { font-weight: 700; }
.menu a:hover, .menu button:hover { color: var(--sky); }
.menu img { width: 24px; height: 24px; transition: transform .2s; }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: 8px; min-width: 300px; list-style: none; background: var(--ink); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: 8px 0; box-shadow: 0 16px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.drop a { padding: 12px 20px; white-space: nowrap; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover > button img, .has-drop.open > button img { transform: rotate(180deg); }
.contact { display: inline-flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 5px; background: var(--blue); font: 600 18px/23px var(--body); transition: background .2s; }
.contact:hover { background: var(--blue-hover); }
.contact img { width: 20px; height: 20px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; color: var(--white); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; margin: 0 auto; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -8px; } .burger span::after { top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; height: 765px; }
.hero .wrap { position: relative; height: 100%; }
.hero-copy { position: relative; z-index: 1; padding-top: 127px; max-width: 741px; }
.hero h1 { font: 600 80px/84px var(--display); letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 27px; margin-top: 54px; }

/* Shape cluster: 853.6 × 856.7 box positioned per Figma (left 52.55%, top -0.98% of the 1439 × 765 hero) */
.shapes { position: absolute; left: calc(50% - 720px + 756.2px); top: -7.5px; width: 853.6px; height: 856.7px; pointer-events: none; }
.shapes img { position: absolute; }
.s-star { position: absolute; left: 90px; top: 90px; width: 341.4px; height: 341.8px; }
.s-star .a { left: 22px; top: 0; width: 297.37px; height: 341.777px; }
.s-star .b { left: 0; top: 22.1px; width: 341.382px; height: 297.719px; }
.s-cube { left: 282.9px; top: 423.3px; width: 297.017px; height: 343.366px; }
.s-hex { left: 468.5px; top: 126.2px; width: 295.142px; height: 341.196px; }
/* Figma motion: 3s entrance, ease cubic-bezier(.22,1,.36,1) */
.s-star { animation: enter-star 3s cubic-bezier(.22,1,.36,1) both; }
.s-cube { animation: enter-cube 2.88s cubic-bezier(.22,1,.36,1) .12s both; }
.s-hex  { animation: enter-hex 2.76s cubic-bezier(.22,1,.36,1) .24s both; }
@keyframes enter-star { from { transform: translate(-33.804px, -34.078px) rotate(9deg); } to { transform: none; } }
@keyframes enter-cube { from { transform: translate(1.327px, 47.982px) rotate(-8deg); } to { transform: none; } }
@keyframes enter-hex  { from { transform: translate(39.409px, -27.403px) rotate(-7deg); } to { transform: none; } }

/* ---------- Brands ---------- */
.brands { position: relative; z-index: 1; padding: 80px 0 100px; overflow: hidden; }
.brands .label { margin-bottom: 40px; }
.logo-row { height: 80px; overflow: hidden; display: flex; align-items: center; }
.logo-row + .logo-row { margin-top: 20px; }
.logo-track { display: flex; align-items: center; gap: 120px; padding-right: 120px; width: max-content; flex: none; animation: marquee 45s linear infinite; }
.logo-row.r2 .logo-track { animation-duration: 55s; animation-direction: reverse; }
.logo-track img { height: 30px; object-fit: cover; }
.logo-track img.contain { object-fit: contain; }
.logo-track img.sq { height: 40px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- How can we support ---------- */
.support { padding: 80px 0 120px; }
.support .h2 { margin-top: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; margin-top: 60px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.1)); }
.card { background: var(--blue); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; transition: background .25s, transform .25s; }
.card:hover { background: var(--blue-hover); transform: translateY(-4px); }
.icon-box { position: relative; width: 300px; height: 300px; max-width: 100%; }
.icon-box img { position: absolute; }
.cards .icon-box { transform: scale(.7); transform-origin: 0 0; margin: 0 -90px -90px 0; } /* 300px Figma icons at 210px for four across */
.card h3 { font: 500 32px/37px var(--display); min-height: 74px; }
.card p { margin-top: 12px; }
.card > div:last-child { flex: 1; display: flex; flex-direction: column; }
.card .more { display: block; margin-top: auto; padding-top: 12px; font: 700 16px/24px var(--body); text-decoration: underline; }

/* ---------- Case studies ---------- */
.cs-head { padding: 80px 0; }
.cases { padding-bottom: 120px; }
.cs-row { display: flex; align-items: center; min-height: 448px; }
.cs-row + .cs-row { margin-top: 100px; }
.cs-row.r1 { gap: 120px; }
.cs-row.r2 { gap: 80px; }
.cs-text { width: 450px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.cs-text h3 { font: 500 32px/37px var(--display); }
.cs-tags { display: flex; align-items: flex-end; gap: 8px; padding: 21px 0; color: var(--blue); }
.cs-tags img { width: 20px; height: 20.926px; }
.cs-text > p { color: var(--muted); }
.phones { position: relative; width: 403.76px; height: 449.9px; flex: none; }
.phone { position: absolute; width: 182.923px; height: 396.089px; border-radius: 25px; object-fit: cover; filter: drop-shadow(-10px -6px 22px rgba(0,0,0,.15)); }
.phone.p1 { left: 24.66px; top: 10.1px; transform: rotate(-7.37deg); }
.phone.p2 { left: 212.6px; top: 50.1px; transform: rotate(2.41deg); }
.cs-shot { flex: 1; min-width: 0; height: 400px; border-radius: 13px; overflow: hidden; position: relative; }
.cs-shot img { position: absolute; width: 125.88%; height: 132.24%; left: -12.94%; top: -16.12%; }
.cases .more-work { display: flex; justify-content: center; margin-top: 100px; }

/* ---------- Testimonial ---------- */
.quote { background: var(--sky); color: var(--ink); padding: 80px 0; }
.quote .label { color: var(--ink); gap: 4px; }
.quote blockquote { font: 600 24px/normal var(--body); margin-top: 32px; }
.author { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.author img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.author b { display: block; font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dots i.on { background: var(--white); }

/* ---------- Blogs ---------- */
.blogs { padding: 120px 0; }
.blogs .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.blogs-intro { width: 534px; max-width: 100%; }
.blogs-intro .label { gap: 4px; }
.blogs-intro .h2 { margin-top: 8px; }
.posts { width: 582px; flex: none; }
.post { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 32px; border-bottom: .5px solid var(--white); margin-bottom: 32px; }
.post:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; align-items: center; }
.thumb { position: relative; width: 112px; height: 120px; flex: none; }
.thumb .hex { position: absolute; left: -2.96px; top: 0; width: 103.923px; height: 120px; overflow: hidden;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); } /* same regular hexagon as hex-mask.svg */
.thumb img { position: absolute; object-fit: cover; }
.post-body { width: 456px; display: flex; flex-direction: column; gap: 8px; }
.post h3 { font: 500 25px/30px var(--display); }
.post h3 a:hover { color: var(--sky); }
.post time { font-size: 16px; line-height: 19px; }
.posts .btn { margin-top: 100px; }

/* ---------- Team strip ---------- */
.team { display: flex; overflow: hidden; }
.team-track { display: flex; flex: none; animation: marquee-half 90s linear infinite; }
@keyframes marquee-half { to { transform: translateX(-50%); } }
.tile { position: relative; width: 288.2px; height: 288.2px; overflow: hidden; flex: none; }
.tile img { position: absolute; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { padding: 120px 0 40px; }
.f-nav { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.f-brand img.logo { width: 196px; height: 37px; }
.f-brand p { width: 233px; margin-top: 12px; }
.socials { display: flex; gap: 15px; margin-top: 39px; }
.socials img { width: 32px; height: 32px; }
.f-menu { display: flex; justify-content: space-between; gap: 32px; width: 601px; max-width: 100%; align-items: flex-start; }
.f-contact { width: 175px; font-size: 16px; line-height: 19px; }
.f-col h4 { font: 700 18px/23px var(--body); } /* Figma: Gotham Bold */
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.f-col a:hover { color: var(--sky); }
.f-col.pages { width: 188px; }
.f-col.pages ul { width: 184px; white-space: nowrap; }
.f-rule { height: 1px; background: var(--base-80); margin: 40px 0; }
.subscribe { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.subscribe h4 { font: 400 25px/30px var(--body); }
.subscribe p { margin-top: 6px; }
.subscribe form { display: flex; gap: 10px; }
.subscribe input { width: 275px; height: 53px; border: 0; border-radius: 5px; padding: 0 14px; font: 400 18px/23px var(--body); color: var(--ink); }
.subscribe input::placeholder { color: var(--base-60); }
.legal { display: flex; justify-content: space-between; gap: 30px; font-size: 16px; line-height: 19px; color: var(--base-60); }
.legal a { color: var(--white); }
.legal .right { text-align: right; }

/* ---------- AI + Polymorph comparison (Figma 7103:9447) ---------- */
.why { padding: 80px 0 120px; }
.why .h2 { margin-top: 12px; }
.why .lede { max-width: 760px; margin-top: 12px; color: var(--muted); }
.vs { margin-top: 60px; }
.vs-head { display: flex; }
.vs-head span { padding: 16px; font: 400 25px/30px var(--body); white-space: nowrap; }
.vs-head .gap { width: 363px; padding: 0; }
.vs-head .alone { width: 409px; color: var(--sky); }
.vs-head .us { width: 435px; }
.vs-rows { display: flex; flex-direction: column; gap: 16px; }
.vs-row { display: flex; gap: 10px; background: rgba(62,133,255,.15); border-radius: 16px; padding: 4px 32px 16px; }
.vs-row > * { padding: 22px 0; }
.vs-row b { width: 319px; flex: none; font: 600 25px/30px var(--body); }
.vs-row .alone { width: 398px; flex: none; padding: 22px 16px; color: var(--sky); }
.vs-row .us { flex: 1; min-width: 0; padding: 22px 16px; }

/* Testimonial slider */
.q-viewport { overflow: hidden; margin-top: 32px; }
.q-track { display: flex; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.q-slide { flex: 0 0 100%; padding-right: 8px; }
.quote blockquote { margin-top: 0; }
.initials { width: 70px; height: 70px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 600 22px var(--body); flex: none; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button.on { background: var(--white); }
@media (max-width: 1100px) {
  .vs-head .gap { width: 30%; } .vs-head .alone, .vs-head .us { width: 35%; }
  .vs-row b { width: 30%; } .vs-row .alone { width: 35%; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .has-drop.open .drop { display: block; }
}
@media (max-width: 760px) {
  .why { padding: 56px 0 72px; }
  .vs-head { display: none; }
  .vs-row { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .vs-row > *, .vs-row .alone, .vs-row .us { width: auto; padding: 8px 0; }
  .vs-row b { width: auto; font-size: 22px; line-height: 27px; }
  .vs-row .alone::before { content: "You + AI: "; font-weight: 600; }
  .vs-row .us::before { content: "You + AI + Polymorph: "; font-weight: 600; }
  .quote blockquote { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .s-star, .s-cube, .s-hex, .logo-track, .team-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .shapes { left: auto; right: -260px; }
  .f-nav { flex-wrap: wrap; gap: 48px; }
  .f-menu { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 1100px) {
  .menu, .nav .contact { display: none; }
  .burger { display: block; }
  .nav.open .menu { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--ink); padding: 8px 0 24px; }
  .nav.open .contact { display: inline-flex; position: absolute; top: calc(100% + 330px); left: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cs-row, .cs-row.r1, .cs-row.r2 { flex-direction: column; align-items: flex-start; gap: 40px; min-height: 0; }
  .cs-row.r2 .cs-shot { order: 2; width: 100%; flex: none; height: 320px; }
  .blogs .wrap { flex-direction: column; align-items: flex-start; gap: 64px; }
  .posts { width: 100%; }
}
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero-copy { padding-top: 56px; }
  .hero h1 { font-size: 44px; line-height: 48px; }
  .hero-ctas { gap: 16px; margin-top: 36px; }
  .hero-ctas .btn { width: 100%; }
  .hero { padding-bottom: 340px; }
  .shapes { transform: scale(.4); transform-origin: 0 100%; left: 0; right: auto; top: auto; bottom: 0; }
  .cs-tags { align-items: flex-start; }
  .label { font-size: 20px; line-height: 26px; }
  .h2 { font-size: 36px; line-height: 44px; }
  .brands, .support { padding: 72px 0; }
  .logo-track { gap: 60px; padding-right: 60px; }
  .card { padding: 28px; }
  .cards { grid-template-columns: 1fr; }
  .cards .icon-box { transform: scale(.6); margin: 0 -120px -120px 0; }
  .cs-head { padding: 40px 0; }
  .cs-text { width: 100%; }
  .cs-text h3 { font-size: 26px; line-height: 31px; }
  .phones { transform: scale(.8); transform-origin: 0 0; margin-bottom: -90px; }
  .cs-row.r2 .cs-shot { height: 220px; }
  .quote { padding: 56px 0; }
  .quote blockquote { font-size: 20px; }
  .blogs { padding: 72px 0; }
  .post-body { width: auto; flex: 1; min-width: 0; }
  .post h3 { font-size: 20px; line-height: 25px; }
  .post p { font-size: 16px; line-height: 21px; }
  .posts .btn { margin-top: 56px; }
  .tile { width: 200px; height: 200px; }
  .tile img { transform: scale(.694); transform-origin: 0 0; }
  .footer { padding-top: 72px; }
  .f-menu { flex-direction: column; }
  .subscribe, .legal { flex-direction: column; align-items: flex-start; }
  .subscribe form { width: 100%; }
  .subscribe input { flex: 1; min-width: 0; width: auto; }
  .legal .right { text-align: left; }
}
