/* Casagbic Creator: /creator page and the home page Creator section.
   Extends css/style.css; uses its tokens. */

.creator-hero {
  min-height: 0;
  padding: 168px 24px 88px;
}

.creator-hero .hero__title {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 0.92;
}

.creator-hero .hero__subtitle {
  max-width: 560px;
}

.creator-frame {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-alt);
  box-shadow: 0 48px 96px -48px rgba(245, 116, 26, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  line-height: 0;
}

.creator-frame img,
.creator-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.creator-caption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-light);
  text-align: left;
}

.creator-lead {
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.75;
  max-width: 600px;
  margin-top: 16px;
}

/* Proof */
.creator-proof {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.creator-quote {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--white);
  text-wrap: balance;
}

.creator-quote::before { content: '\201C'; color: var(--orange); }
.creator-quote::after { content: '\201D'; color: var(--orange); }

.creator-proof__copy p {
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 20px;
  max-width: 520px;
}

.creator-proof__copy p strong {
  color: var(--white);
  font-weight: 500;
}

.creator-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.creator-phones img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}

.creator-phones img:nth-child(2) {
  transform: translateY(-20px);
}

.creator-film {
  margin-top: 64px;
}

/* Ways to work */
.creator-rows {
  display: grid;
  gap: 96px;
  margin-top: 64px;
}

.creator-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 4;
}

.creator-rows .creator-row:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}

.creator-rows .creator-row:nth-child(even) .creator-row__copy {
  order: 2;
}

.creator-row__copy h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.creator-row__copy p {
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 440px;
}

.creator-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.creator-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}

.creator-list svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--orange);
}

/* Creator or the main builder */
.creator-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  position: relative;
  z-index: 4;
}

.creator-compare__item {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.creator-compare__item--creator {
  border-color: var(--orange-border);
  background: linear-gradient(180deg, rgba(245, 116, 26, 0.07), rgba(245, 116, 26, 0) 60%), var(--bg);
}

.creator-compare__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-light);
}

.creator-compare__item--creator .creator-compare__name {
  color: var(--orange);
}

.creator-compare__item h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-top: 12px;
}

.creator-compare__item .creator-list {
  margin-bottom: 28px;
}

.creator-compare__item .creator-list li {
  color: var(--muted-light);
}

.creator-compare__link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .creator-compare__link:hover { color: var(--orange); }
}

.creator-note {
  margin-top: 28px;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.7;
  max-width: 720px;
  position: relative;
  z-index: 4;
}

.creator-note a {
  color: var(--white);
  text-underline-offset: 3px;
}

/* Home page section */
.creator-teaser .creator-row {
  grid-template-columns: 5fr 6fr;
}

.creator-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.creator-teaser .creator-frame {
  transition: border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .creator-teaser a.creator-frame:hover { border-color: var(--orange-border); }
}

@media (max-width: 880px) {
  .creator-hero {
    padding: 128px 20px 56px;
  }


  .creator-proof,
  .creator-row,
  .creator-teaser .creator-row,
  .creator-compare {
    grid-template-columns: 1fr;
  }

  .creator-proof {
    gap: 56px;
    margin-top: 36px;
  }

  .creator-rows {
    gap: 64px;
    margin-top: 44px;
  }

  .creator-row {
    gap: 28px;
  }

  .creator-rows .creator-row:nth-child(even) .creator-row__copy {
    order: 0;
  }

  .creator-rows .creator-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .creator-film {
    margin-top: 48px;
  }

  .creator-compare__item {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .creator-hero .hero__title {
    font-size: clamp(26px, 7.4vw, 40px);
    line-height: 1;
  }

  .creator-phones {
    gap: 8px;
  }

  .creator-phones img {
    border-radius: 9px;
  }
}

/* 3D product visuals: the app taken apart (hero) and the editor taken apart */
.cx { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); position: relative; z-index: 4; width: min(1100px, 100%); margin: 72px auto 0; }
.cx img { display: block; width: 100%; height: 100%; }
.cx-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); background: #06060E; border: 1px solid var(--orange-border); padding: 5px 9px; white-space: nowrap; line-height: 1; }
.cx-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--muted-light); text-align: center; }

.cxp { --cxp-d: 14px; position: relative; aspect-ratio: 1080 / 2400; transform-style: preserve-3d; will-change: transform; }
.cxp-edge { position: absolute; inset: 0; border-radius: 13% / 6%; background: #2B2B36; }
.cxp-edge:last-of-type { background: #15151D; box-shadow: 0 50px 70px -20px rgba(0, 0, 0, 0.9); }
.cxp-front { position: absolute; inset: 0; border-radius: 13% / 6%; background: #0B0B12; padding: 3.2%; transform-style: preserve-3d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.cxp-screen { position: relative; width: 100%; height: 100%; border-radius: 10% / 4.6%; overflow: hidden; background: #FDECEF; }

@media (min-width: 1200px) {
  .cxc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: center; text-align: left; max-width: 1240px; margin: 0 auto; padding-left: 52px; padding-right: 52px; }
  .cxc-hero > .hero__mesh, .cxc-hero > .hero__grid { grid-column: 1 / -1; }
  .cxc-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 5; }
  .cxc-hero .hero__title { font-size: clamp(32px, 3.15vw, 46px); line-height: 1.02; letter-spacing: -1.5px; white-space: nowrap; }
  .cxc-hero .hero__subtitle { margin-left: 0; max-width: 480px; }
  .cxc-hero .hero__actions { justify-content: flex-start; }
  .cxc-hero .cx { grid-column: 2; grid-row: 1; margin-top: 0; width: 100%; }
  .cxc-hero .cx-note { text-align: left; max-width: 420px; margin-left: 8%; }
}
.cxc-scene { position: relative; height: 640px; perspective: 1800px; perspective-origin: 40% 40%; }
.cxc-rig { position: absolute; left: 14%; top: 24px; width: 262px; transform-style: preserve-3d; will-change: transform; }
.cxc-rig .cxp { --cxp-d: 16px; }
.cxc-screen { overflow: visible; background: #F3DDE3; transform-style: preserve-3d; display: flex; flex-direction: column; }
.cxc-part { position: relative; transform-style: preserve-3d; will-change: transform; flex: 0 0 auto; transition: filter 200ms ease; }
.cxc-part > img { height: auto; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.55); outline: 1px solid rgba(0, 0, 0, 0.08); }
.cxc-part--bar > img { border-radius: 26px 26px 0 0; }
.cxc-part--nav > img { border-radius: 0 0 26px 26px; }
.cxc-label { position: absolute; left: 100%; top: 50%; display: flex; align-items: center; transform-origin: left center; will-change: transform, opacity; pointer-events: none; }
.cxc-wire { width: 54px; height: 1px; background: linear-gradient(90deg, var(--orange), rgba(245, 116, 26, 0.35)); flex: 0 0 auto; }
.cxc-card { text-align: left; background: rgba(13, 13, 24, 0.96); border: 1px solid var(--orange-border); padding: 9px 12px; width: max-content; max-width: 250px; }
.cxc-card strong { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13px; color: var(--orange); letter-spacing: 0.5px; }
.cxc-card span { display: block; font-size: 12px; color: var(--muted-light); margin-top: 2px; }
.cxc-block { margin-top: 9px; width: 220px !important; height: auto !important; border: 1px solid rgba(255, 255, 255, 0.1); }
@media (hover: hover) and (pointer: fine) {
  .cxc-screen:hover .cxc-part { filter: brightness(0.72) saturate(0.8); }
  .cxc-screen:hover .cxc-part:hover { filter: none; }
}
@media (max-width: 1199px) {
  .cxc-scene { height: 600px; }
  .cxc-rig { left: 50%; margin-left: -250px; }
}
@media (max-width: 700px) {
  .cxc { margin-top: 40px; }
  .cxc-scene { height: 520px; }
  .cxc-rig { left: 4%; margin-left: 0; width: 196px; top: 16px; }
  .cxc-wire { width: 26px; }
  .cxc-card { padding: 6px 8px; max-width: 150px; }
  .cxc-block { width: 132px !important; }
  .cxc-part--bar > img { border-radius: 20px 20px 0 0; }
  .cxc-part--nav > img { border-radius: 0 0 20px 20px; }
}

.cxa { margin-top: 56px; }
#ways { overflow-x: clip; }
.cxa-scene { position: relative; aspect-ratio: 16 / 9; perspective: 2400px; perspective-origin: 50% 20%; }
.cxa-board { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.cxa-l { position: absolute; transform-style: preserve-3d; will-change: transform; background: #06060E; outline: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.cxa-top { left: 0; top: 0; width: 100%; height: 8.52%; }
.cxa-palette { left: 0; top: 8.52%; width: 17.708%; height: 91.48%; }
.cxa-canvas { left: 17.708%; top: 8.52%; width: 66.458%; height: 91.48%; }
.cxa-props { left: 84.167%; top: 8.52%; width: 15.833%; height: 91.48%; }
.cxa-phone { left: 41.98%; top: 12.87%; width: 17.86%; height: 57.2%; border-radius: 9% / 5%; overflow: visible; outline: none; background: none; box-shadow: 0 60px 80px -30px rgba(245, 116, 26, 0.45); }
.cxa-phone img { border-radius: 9% / 5%; }
.cxa-blocks { left: 22%; top: 16%; width: 56%; height: 74.6%; outline-color: var(--orange-border); }
.cxa-tag { position: absolute; left: 0; top: -30px; transform: translateZ(1px); }
.cxa-phone .cxa-tag { left: auto; right: -8px; top: -34px; }
.cxa-blocks .cxa-tag { top: auto; bottom: -30px; left: auto; right: 0; }
@media (max-width: 700px) {
  .cxa { margin-top: 32px; }
  .cxa-scene { aspect-ratio: 1 / 1.02; overflow: hidden; }
  .cxa-board { inset: auto; left: -28%; top: 16%; width: 156%; aspect-ratio: 16 / 9; }
  .cx-tag { font-size: 9px; padding: 4px 6px; }
  .cxa-tag { top: -22px; }
}
