/* Marketing pages of matewan.ayonix.com (home, credits). Builds on /styles.css. */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; }
section { position: relative; }
.curve { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wrap, .ribbon .row { z-index: 1; }
.curve path { fill: none; vector-effect: non-scaling-stroke; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple); background: var(--soft); border-radius: 999px; padding: 6px 14px; }
:lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow { letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font-weight: 700;
  font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--purple), var(--purple-2) 55%, var(--pink)); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(91,60,196,.6); }
.btn.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Hero */
.hero-x { padding: 40px 0 60px; overflow: hidden; }
.hero-x .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: 640px; }
.hero-x h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; margin: 18px 0 18px; letter-spacing: -.035em; }
:lang(ja) .hero-x h1, :lang(zh-Hans) .hero-x h1 { font-size: clamp(30px, 4.3vw, 54px); line-height: 1.25; letter-spacing: 0; }
.hero-x h1 .l { white-space: nowrap; }
h1, h2 { font-weight: 800; } h3, .card h3 { font-weight: 700; }
.hero-x h1 em { font-style: normal; background: linear-gradient(90deg, var(--purple), var(--pink) 60%, var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.chips span b { color: var(--pink); }

.stage { position: relative; height: 640px; }
.stage .phone { position: absolute; width: 300px; filter: drop-shadow(0 0 0 transparent); }
.stage .phone img { width: 100%; height: auto; display: block; }
.stage .p1 { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 3; }
.stage .p2 { left: 42%; top: 0; transform: rotate(5deg); z-index: 2; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; border: 6px solid #fff; z-index: 4;
  box-shadow: 0 18px 40px -16px rgba(29,24,56,.45); background: var(--soft); }
.bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .b1 { width: 132px; height: 132px; right: 2%; top: 400px; }
.stage .b2 { width: 104px; height: 104px; left: -2%; top: 470px; }
.stage .b3 { width: 86px; height: 86px; right: 6%; top: 40px; z-index: 1; }
.stage .tag { position: absolute; z-index: 5; background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(29,24,56,.4); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stage .tag i { width: 10px; height: 10px; border-radius: 50%; background: #2bc48a; display: inline-block; }
.stage .t1 { left: 36%; top: 560px; }
.stage .t2 { right: -2%; top: 300px; }

/* Photo ribbon */
.ribbon { padding: 10px 0 30px; overflow: hidden; }
.ribbon .row { display: flex; gap: 18px; width: max-content; animation: drift 60s linear infinite; }
.ribbon figure { margin: 0; width: 280px; height: 200px; flex: none; position: relative; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(29,24,56,.5); }
.ribbon figure:nth-child(3n+1) { border-radius: 120px 30px 120px 30px; }
.ribbon figure:nth-child(3n+2) { border-radius: 30px 110px 30px 110px; height: 230px; margin-top: -15px; }
.ribbon figure:nth-child(3n) { border-radius: 100px; width: 230px; }
.ribbon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ribbon figcaption { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 14px; color: #fff; font-weight: 700; font-size: 15px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon .row { animation: none; } }

/* Feature sections */
.feature { padding: 90px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature.flip .text { order: 2; }
.feature h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.025em; margin: 16px 0 16px; }
:lang(ja) .feature h2, :lang(zh-Hans) .feature h2 { line-height: 1.3; letter-spacing: 0; }
.feature p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), var(--pink)); box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--line); }
.duo { position: relative; height: 620px; }
.duo .phone { position: absolute; width: 280px; }
.duo .phone img { width: 100%; height: auto; display: block; }
.duo .a { left: 6%; top: 40px; z-index: 2; transform: rotate(-4deg); }
.duo .b { right: 4%; top: 0; z-index: 1; transform: rotate(4deg); }
.duo .bubble.x { width: 150px; height: 150px; left: -4%; bottom: 0; }
.duo .bubble.y { width: 110px; height: 110px; right: -2%; bottom: 40px; }
.duo .blob { position: absolute; inset: 60px 0 40px; border-radius: 48% 52% 38% 62% / 55% 40% 60% 45%; z-index: 0;
  background: radial-gradient(circle at 30% 30%, #f3eeff, #fdf0f6 60%, #fff 75%); }

/* Languages band */
.speaks { padding: 70px 0; text-align: center; }
.speaks .hello { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; font-size: clamp(34px, 6vw, 72px);
  font-weight: 800; letter-spacing: -.02em; margin: 10px 0 14px; }
.speaks .hello span:nth-child(1) { color: var(--purple); }
.speaks .hello span:nth-child(2) { color: var(--pink); }
.speaks .hello span:nth-child(3) { color: var(--coral); }
.speaks p { color: var(--muted); font-size: 18px; max-width: 38em; margin: 0 auto; }

/* Safety cards */
.safety { padding: 80px 0; }
.safety h2, .faq h2, .soon h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: 0 24px 60px -40px rgba(91,60,196,.45); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, #efe9ff, #ffe8f2); }
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.links-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }

/* Mosaic of photos */
.mosaic { padding: 40px 0 80px; }
.mosaic .grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 16px; }
.mosaic figure { margin: 0; overflow: hidden; position: relative; border-radius: 28px; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.mosaic .grid { grid-template-rows: repeat(5, 120px); }
.mosaic .m1 { grid-area: 1 / 1 / 4 / 4; border-radius: 180px 40px 40px 40px; }
.mosaic .m2 { grid-area: 1 / 4 / 3 / 7; border-radius: 40px 180px 40px 40px; }
.mosaic .m3 { grid-area: 3 / 4 / 5 / 6; border-radius: 50%; }
.mosaic .m4 { grid-area: 3 / 6 / 5 / 7; border-radius: 999px; }
.mosaic .m5 { grid-area: 4 / 1 / 6 / 4; border-radius: 40px 40px 40px 160px; }
.mosaic .m6 { grid-area: 5 / 4 / 6 / 7; border-radius: 40px 40px 120px 40px; }
.mosaic .m3 figcaption { left: 50%; transform: translateX(-50%); bottom: 22px; white-space: nowrap; }
.mosaic .m4 figcaption { display: none; }
.mosaic .m5 figcaption { left: auto; right: 18px; }
.mh { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 22px; }

/* FAQ */
.faq { padding: 70px 0; }
.faq .list { max-width: 820px; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Coming soon */
.soon { padding: 40px 0 90px; }
.soon .box { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(30px, 6vw, 64px); color: #fff;
  background: linear-gradient(135deg, #3b2595, var(--purple) 40%, #b0398f 80%, #e0577b); }
.soon .box h2 { color: #fff; margin-top: 0; }
.soon .box p { opacity: .9; max-width: 34em; font-size: 18px; }
.soon .box .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.soon .box .btn.light { background: #fff; color: var(--purple); }
.soon .box .peek { position: absolute; right: 4%; bottom: -170px; width: 260px; transform: rotate(-8deg); }
.soon .box .peek img { width: 100%; display: block; }
.soon .box .inner { position: relative; z-index: 2; max-width: 620px; }

/* Footer (home) */
footer.site { border-top: 1px solid var(--line); padding-top: 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
footer.site .co { line-height: 1.7; }

/* Credits */
.credits { padding: 30px 0 70px; }
.credits ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.credits li { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; font-size: 14px; }
.credits li img { width: 100%; height: 150px; object-fit: cover; display: block; }
.credits li div { padding: 10px 14px; }

@media (max-width: 980px) {
  .hero-x .wrap, .feature .wrap { grid-template-columns: 1fr; }
  .hero-x .wrap { min-height: 0; }
  .feature.flip .text { order: 0; }
  .stage, .duo { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  /* Narrow screens: the curves run behind the pictures at the bottom of a section, not through the text. */
  .curve { top: auto; bottom: 0; height: 380px; }
  .soon .curve { height: 100%; }
  .cards { grid-template-columns: 1fr 1fr; }
  footer.site { grid-template-columns: 1fr; }
  footer.site nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero-x { padding: 16px 0 30px; }
  .stage { height: 470px; }
  .stage .phone { width: 210px; }
  .stage .p1 { left: 0; top: 20px; }
  .stage .p2 { left: auto; right: 0; top: 0; }
  .stage .b1 { width: 96px; height: 96px; right: 0; top: 330px; }
  .stage .b2 { width: 78px; height: 78px; left: 0; top: 370px; }
  .stage .b3 { width: 64px; height: 64px; right: 40%; top: 0; }
  .stage .t1 { left: 18%; top: 420px; font-size: 13px; }
  .stage .t2 { display: none; }
  .duo { height: 450px; }
  .duo .phone { width: 200px; }
  .duo .a { left: 0; }
  .duo .b { right: 0; }
  .duo .bubble.x { width: 100px; height: 100px; left: 0; }
  .duo .bubble.y { width: 80px; height: 80px; }
  .feature { padding: 50px 0; }
  .cards { grid-template-columns: 1fr; }
  .ribbon figure { width: 200px; height: 150px; }
  .ribbon figure:nth-child(3n+2) { height: 170px; }
  .ribbon figure:nth-child(3n) { width: 170px; }
  .mosaic .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; gap: 10px; }
  .mosaic .grid { grid-template-rows: none; }
  .mosaic .m1, .mosaic .m2, .mosaic .m6 { grid-area: auto / span 2 / auto / auto; grid-row: span 2; }
  .mosaic .m3, .mosaic .m5 { grid-area: auto; grid-column: span 1; grid-row: span 2; }
  .mosaic .m5 figcaption { right: auto; left: 16px; }
  .mosaic .m4 { display: none; }
  .soon .box .peek { display: none; }
  .btn { padding: 12px 20px; font-size: 15px; }
}
