/* CooRan / MyCut public site — black & white theme */
:root {
  --bg: #000;
  --bg2: #0a0a0a;
  --card: #0f0f10;
  --card2: #141416;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --ink: #fff;
  --ink2: #d4d4d8;
  --mute: #a1a1aa;
  --mute2: #71717a;
  --green: #22c55e;
  --radius: 20px;
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
::selection { background: #fff; color: #000; }
.nw { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line2); background: transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.white { background: #fff; color: #000; border-color: #fff; }
.btn.white:hover { box-shadow: 0 10px 30px -8px rgba(255, 255, 255, .45); }
.btn.black { background: #000; color: #fff; border-color: #000; }
.btn.black:hover { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.btn.ghost { color: #fff; background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.stuck { background: rgba(0, 0, 0, .72); backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.nav-in { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 17px; width: auto; }
.links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--mute); }
.links a:not(.btn):hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 0; overflow: hidden; isolation: isolate; }
.silk { position: absolute; inset: 0; z-index: -1; background: #000; overflow: hidden; }
.silk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #000 96%); }
.silk i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.silk i:nth-child(1) { width: 140%; height: 46%; left: -30%; top: 6%; background: linear-gradient(100deg, transparent 20%, #3a3a3a 45%, #111 55%, transparent 75%); transform: rotate(-14deg); }
.silk i:nth-child(2) { width: 120%; height: 38%; left: -10%; top: 30%; background: linear-gradient(80deg, transparent 15%, #2a2a2a 40%, #0c0c0c 52%, #333 64%, transparent 85%); transform: rotate(12deg); animation-duration: 28s; animation-delay: -6s; }
.silk i:nth-child(3) { width: 90%; height: 60%; right: -30%; top: -12%; background: radial-gradient(closest-side, #2b2b2b, transparent); animation-duration: 18s; animation-delay: -3s; }
.silk i:nth-child(4) { width: 70%; height: 50%; left: -20%; bottom: 0; background: radial-gradient(closest-side, #1d1d1d, transparent); animation-duration: 25s; }
@keyframes drift { to { translate: 6% 4%; rotate: 6deg; scale: 1.08; } }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(20, 20, 20, .7); font-size: 15px; color: var(--ink2); backdrop-filter: blur(6px); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
h1 { margin: 26px 0 20px; font-size: clamp(44px, 7.4vw, 92px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.lead { max-width: 660px; text-wrap: balance; margin: 0; color: var(--mute); font-size: clamp(16px, 1.8vw, 19px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin: 16px 0 0; font-size: 14px; color: var(--mute2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 42px; max-width: 760px; }
.chip { height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(24, 24, 27, .75); color: var(--ink2); font-size: 15px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.chip.on { background: #fff; border-color: #fff; color: #000; font-weight: 600; }
.promo { position: relative; margin-top: 64px; max-width: 860px; }
.promo-sound { position: absolute; right: 16px; bottom: 16px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); transition: background .15s, transform .15s; }
.promo-sound:hover { background: rgba(0, 0, 0, .8); transform: translateY(-1px); }
.promo-sound .snd-on, .promo-sound.on .snd-off { display: none; }
.promo-sound.on .snd-on { display: inline; }
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; border: 1px solid var(--line2); background: #0f0f10; box-shadow: 0 40px 120px -40px rgba(255, 255, 255, .18); }

/* ---------- sections ---------- */
.sec { padding: 120px 0 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--mute); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 12px; margin-bottom: 18px; }
.eyebrow.dark { color: #52525b; border-color: #d4d4d8; }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.sec-head p { margin: 14px 0 0; color: var(--mute); font-size: 17px; }

/* news */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.nc { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.nc.wide { grid-column: 1 / -1; }
.nc.pin { background: linear-gradient(135deg, #1a1a1c, #0c0c0d); border-color: var(--line2); }
.nt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute2); flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 11px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 12.5px; }
.tag.ghost { background: transparent; color: var(--ink2); border: 1px solid var(--line2); }
.tag .i { width: 13px; height: 13px; }
.nc h3 { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -.01em; }
.nc p { margin: 0; color: var(--mute); }
.nc .btn { margin-top: 8px; }

/* features */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fc { position: relative; padding: 26px 24px 52px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s, background .25s, opacity .25s; }
.fc:hover { transform: translateY(-4px); border-color: var(--line2); background: var(--card2); }
.fc.hide { display: none; }
.fc .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #fff; color: #000; margin-bottom: 18px; }
.fc .ic .i { width: 22px; height: 22px; }
.fc h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.fc p { margin: 0; color: var(--mute); font-size: 14.5px; }
.fc-cat { position: absolute; left: 24px; bottom: 20px; font-size: 12px; color: var(--mute2); }

/* download (inverted: white card on black) */
.dl { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 60px; padding: 56px; border-radius: 28px; background: #fff; color: #000; }
.dl h2 { font-size: clamp(36px, 5vw, 60px); }
.dl .ver { font-size: .5em; color: #71717a; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.dl-main p { color: #52525b; margin: 14px 0 28px; font-size: 17px; }
.dl-main .dl-file { margin: 16px 0 0; font-size: 14px; color: #71717a; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: center; counter-reset: s; }
.steps li { position: relative; padding-left: 58px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; font-size: 17px; }
.steps span { color: #52525b; font-size: 14.5px; }
.note { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: #f4f4f5; color: #27272a; }
.note .i { margin-top: 3px; }
.note b { display: block; }
.note span { color: #52525b; font-size: 14.5px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ct { display: flex; flex-direction: column; gap: 4px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.ct:hover { transform: translateY(-4px); border-color: var(--line2); }
.ct .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #fff; color: #000; margin-bottom: 14px; }
.ct b { font-size: 18px; }
.ct small { color: var(--mute); font-size: 14px; }
.go { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 15px; }
.go .i { transition: transform .2s; }
.ct:hover .go .i { transform: translateX(4px); }
.teach { margin-top: 16px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, #141416, #070707); }
.teach img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.teach div { flex: 1; }
.teach h3 { margin: 0; font-size: 20px; }
.teach p { margin: 2px 0 0; color: var(--mute); }

/* stats band */
.stats { margin-top: 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 0%, #161618, #000 70%); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.st { padding: 56px 20px; text-align: center; }
.st + .st { border-left: 1px solid var(--line); }
.st b { display: block; font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.st span { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--mute); font-size: 15px; }

/* footer */
.foot { padding: 34px 0 40px; color: var(--mute2); font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.foot-in img { height: 14px; width: auto; opacity: .85; }
.foot-links { margin-left: auto; display: flex; gap: 20px; }
.foot-links a:hover { color: #fff; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf-box img { height: 22px; width: auto; margin: 0 auto 30px; }
.nf-box h1 { margin: 0; font-size: 110px; }
.nf-box p { color: var(--mute); margin: 0 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .feat { grid-template-columns: repeat(3, 1fr); }
  .dl { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 820px) {
  .links a:not(.btn) { display: none; }
  .hero { padding-top: 132px; }
  .promo { margin-top: 50px; }
  .promo-video { border-radius: 14px; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .news, .contact { grid-template-columns: 1fr; }
  .sec { padding-top: 90px; }
  .stats-in { grid-template-columns: 1fr; }
  .st + .st { border-left: 0; border-top: 1px solid var(--line); }
  .st { padding: 38px 20px; }
  .teach { flex-wrap: wrap; }
  .foot-links { margin-left: 0; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .btn.lg { width: 100%; }
  .cta { width: 100%; }
  .feat { grid-template-columns: 1fr; }
  .dl { padding: 28px; border-radius: 22px; }
  .chip { height: 36px; padding: 0 14px; font-size: 14px; }
}
