:root {
  --cyan-0: #f3fdff;
  --cyan-1: #dff8ff;
  --cyan-2: #bcefff;
  --cyan-3: #75d8f5;
  --aqua: #9ceee6;
  --cream: #fff9e8;
  --cream-2: #fff2c8;
  --orange: #f4ad42;
  --yellow: #ffd66a;
  --coral: #ff7371;
  --ink: #171a20;
  --muted: #60717a;
  --line: rgba(23, 26, 32, .1);
  --surface: rgba(255, 255, 255, .88);
  --shadow: 0 18px 50px rgba(50, 157, 186, .16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cyan-0);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 14px; border-radius: 12px;
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: var(--shell); margin: 0 auto; }
.section-pad { padding: 84px 0; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #3b7282;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.04em; }
h1 { font-size: clamp(3.8rem, 7vw, 7.5rem); line-height: .83; margin-bottom: 14px; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: .96; margin-bottom: 14px; }
h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  width: 100%; min-height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 22px; padding: 10px max(18px, calc((100vw - 1180px)/2));
  background: rgba(243, 253, 255, .93);
  border-bottom: 1px solid rgba(23,26,32,.07);
}
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; min-width: 0; }
.brand-face { width: 46px; height: 46px; border-radius: 15px; background: white; overflow: hidden; box-shadow: 0 6px 18px rgba(44,142,170,.14); }
.brand-face img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); }
.brand-copy { display: grid; line-height: 1.05; min-width: 0; }
.brand-copy strong { font-size: 14px; white-space: nowrap; }
.brand-copy span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.desktop-nav { display: flex; gap: 8px; background: white; border: 1px solid var(--line); padding: 5px; border-radius: 999px; box-shadow: 0 8px 24px rgba(44,142,170,.08); }
.desktop-nav a { padding: 8px 14px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { background: var(--cyan-1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.icon-link { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; transition: transform .18s ease; }
.icon-link img { width: 100%; height: 100%; object-fit: contain; }
.icon-link:hover { transform: translateY(-2px); }
.mini-buy { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 12px; font-weight: 900; text-transform: uppercase; }

.hero {
  min-height: calc(78svh - 68px);
  display: flex; align-items: stretch;
  background-image: url('../assets/02-shimoji-hero-bg-desktop.webp');
  background-size: cover; background-position: center right;
  position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.12), transparent 54%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; padding: 28px 0 22px; }
.hero-copy { max-width: 650px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; box-shadow: 0 0 0 5px rgba(244,173,66,.16); }
.ticker-pill { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: white; font-size: 14px; font-weight: 900; letter-spacing: .08em; margin-bottom: 18px; }
.hero-tagline { font-size: clamp(1.2rem, 2.2vw, 1.8rem); max-width: 530px; line-height: 1.2; font-weight: 900; margin-bottom: 8px; }
.hero-sub { max-width: 520px; color: #4c6871; font-size: 16px; line-height: 1.45; margin-bottom: 24px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.btn { min-height: 52px; padding: 0 22px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; transition: transform .16s ease, box-shadow .16s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 10px 0 rgba(23,26,32,.1); }
.btn-secondary { background: rgba(255,255,255,.72); }
.btn-full { width: 100%; }

.ca-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; width: min(100%, 520px); background: rgba(255,255,255,.83); border: 1px solid rgba(23,26,32,.09); border-radius: 16px; padding: 8px 8px 8px 12px; box-shadow: 0 10px 28px rgba(44,142,170,.1); }
.ca-label { font-size: 11px; font-weight: 900; color: #3b7282; }
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { border: 0; background: var(--cream-2); border-radius: 11px; padding: 9px 11px; font-size: 11px; font-weight: 900; cursor: pointer; }
.copy-btn:disabled { cursor: default; opacity: .52; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-dog { width: min(34vw, 520px); max-height: 68vh; object-fit: contain; filter: drop-shadow(0 24px 18px rgba(48,128,151,.12)); animation: dogFloat 5.8s ease-in-out infinite; }
.reaction-float { position: absolute; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: 28px; border: 1px solid rgba(23,26,32,.05); animation: chipFloat 4.4s ease-in-out infinite; }
.reaction-heart { top: 14%; right: 7%; color: var(--coral); font-size: 36px; transform: rotate(7deg); }
.reaction-fire { right: 2%; bottom: 24%; animation-delay: -1.3s; }
.reaction-laugh { left: 8%; bottom: 15%; animation-delay: -2.1s; }

.reaction-section { background: #f7feff; }
.section-heading { max-width: 670px; margin-bottom: 32px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.reaction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.reaction-card { position: relative; padding: 8px; overflow: hidden; border: 1px solid rgba(23,26,32,.09); border-radius: 27px; background: white; box-shadow: 0 16px 38px rgba(44,142,170,.1); cursor: pointer; color: var(--ink); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.reaction-card:hover, .reaction-card:focus-visible { transform: translateY(-7px) scale(1.01); box-shadow: 0 24px 46px rgba(44,142,170,.18); }
.reaction-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 20px; background: #edfafd; }
.reaction-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 7px 5px; }
.reaction-card-foot strong { font-size: 18px; }
.tap-label { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.reaction-card.popped { animation: reactionPop .45s ease; }

.emoji-section { background: linear-gradient(180deg, #effcff 0%, #e6fbff 100%); }
.emoji-grid { display: grid; grid-template-columns: minmax(360px, 500px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 56px); }
.chat-art { width: 100%; max-width: 500px; margin: 0 auto; border-radius: 32px; overflow: hidden; box-shadow: 0 26px 70px rgba(44,142,170,.2); transform: none; }
.chat-art img { width: 100%; height: auto; }
.emoji-copy h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: .95; max-width: 620px; }
.emoji-copy > p { font-size: 17px; color: var(--muted); max-width: 520px; }
.mini-chat { margin-top: 26px; max-width: 520px; display: grid; gap: 10px; padding: 18px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 26px; }
.chat-row { display: flex; align-items: end; gap: 8px; }
.chat-row-reply { justify-content: flex-end; }
.chat-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--cyan-2); font-size: 11px; font-weight: 900; color: #397486; }
.chat-bubble { display: grid; gap: 3px; background: white; border-radius: 16px 16px 16px 5px; padding: 10px 13px; box-shadow: 0 7px 18px rgba(44,142,170,.09); }
.chat-bubble.sent { background: #d8f6ff; border-radius: 16px 16px 5px 16px; }
.chat-bubble small { color: #4d8596; font-weight: 900; font-size: 10px; }
.sent-reaction { display: inline-flex; align-items: center; gap: 6px; }
.sent-reaction img { width: 30px; height: 30px; object-fit: contain; }

.live-section { background: var(--cream); }
.live-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.live-heading h2 { margin-bottom: 0; }
.live-state { padding: 9px 12px; border-radius: 999px; background: white; border: 1px solid var(--line); color: #4e7e8a; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.market-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 34px rgba(118,107,56,.07); margin-bottom: 16px; }
.market-stat { padding: 18px 20px; min-width: 0; border-right: 1px solid var(--line); }
.market-stat:last-child { border-right: 0; }
.market-stat span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #78817c; font-weight: 900; margin-bottom: 7px; }
.market-stat strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.05rem,2vw,1.45rem); }
.market-stat strong.positive { color: #1f9c6a; }
.market-stat strong.negative { color: #d85757; }
.live-grid { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(290px,.62fr); gap: 16px; }
.chart-card, .community-card { border: 1px solid var(--line); background: white; border-radius: 28px; box-shadow: 0 18px 44px rgba(118,107,56,.08); }
.chart-card { overflow: hidden; }
.chart-topline { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: #62716c; }
.chart-stage { min-height: 445px; }
.chart-stage iframe { width: 100%; height: 445px; border: 0; display: block; background: white; }
.chart-placeholder { min-height: 445px; display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; padding: 30px; background: radial-gradient(circle at 50% 10%, #ecfbff, #fff 60%); }
.chart-placeholder strong { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.chart-placeholder > span:last-child { color: var(--muted); font-size: 13px; }
.chart-face { width: 82px; height: 82px; display: grid; place-items: center; background: var(--cyan-1); border-radius: 25px; margin-bottom: 7px; }
.chart-face img { width: 95px; height: 95px; object-fit: contain; }
.community-card { padding: 22px; display: flex; flex-direction: column; }
.community-badge { width: max-content; padding: 7px 9px; border-radius: 999px; background: var(--cream-2); font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; margin-bottom: 17px; }
.community-card > p { color: var(--muted); line-height: 1.45; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 8px 0 20px; }
.social-tile { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 17px; background: #fbfeff; font-size: 11px; font-weight: 900; transition: transform .16s ease, background .16s ease; }
.social-tile img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.social-tile:not(.is-disabled):hover { transform: translateY(-2px); background: var(--cyan-1); }
.config-link.is-disabled { opacity: .38; cursor: default; pointer-events: none; filter: grayscale(.25); }
.community-card .btn { margin-top: auto; }

.site-footer { background: #d8f7ff; border-top: 1px solid rgba(23,26,32,.07); }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; padding: 18px 0; }
.footer-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand div { display: grid; min-width: 0; }
.footer-brand strong { font-size: 14px; }
.footer-brand span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.footer-socials { display: flex; gap: 5px; }
.footer-ca { border: 0; background: rgba(255,255,255,.75); border-radius: 13px; padding: 11px 13px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 900; color: #4f6970; cursor: pointer; }
.footer-ca:disabled { cursor: default; opacity: .6; }

.reaction-toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 12px; font-weight: 900; transition: opacity .16s ease, transform .16s ease; }
.reaction-toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes dogFloat { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-7px) rotate(.5deg); } }
@keyframes chipFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes reactionPop { 0%{ transform: scale(1); } 40%{ transform: scale(.97); } 70%{ transform: scale(1.035); } 100%{ transform: scale(1); } }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reaction-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .emoji-grid { grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); gap: 36px; }
  .live-grid { grid-template-columns: 1fr; }
  .community-card { min-height: 0; }
  .community-card .btn { margin-top: 10px; }
  .social-grid { grid-template-columns: repeat(4,1fr); }
  .social-tile { justify-content: center; padding: 6px; }
  .social-tile span { display: none; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 24px, 620px); --radius-xl: 26px; }
  .section-pad { padding: 62px 0; }
  .site-header { min-height: 62px; padding: 8px 12px; gap: 10px; }
  .brand-face { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { font-size: 10px; }
  .header-actions .icon-link { width: 38px; height: 38px; }
  .mini-buy { display: none; }
  h1 { font-size: clamp(3.25rem,17vw,5.2rem); }
  h2 { font-size: clamp(2.2rem,11vw,3.5rem); }

  .hero {
    min-height: calc(88svh - 62px);
    background-image: url('../assets/03-shimoji-hero-bg-mobile.webp');
    background-size: cover; background-position: center;
  }
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 65%); }
  .hero-inner { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 34px 0 28px; }
  .hero-copy { width: 100%; text-align: center; z-index: 2; }
  .hero-copy .eyebrow { display: none; }
  .ticker-pill { margin-bottom: 12px; }
  .hero-tagline { margin: 0 auto 7px; font-size: 1.15rem; }
  .hero-sub { margin: 0 auto 16px; max-width: 340px; font-size: 13px; }
  .hero-buttons { justify-content: center; margin-bottom: 10px; }
  .btn { min-height: 46px; padding: 0 17px; font-size: 11px; border-radius: 15px; }
  .ca-card { margin: 0 auto; grid-template-columns: auto minmax(0,1fr) auto; max-width: 390px; }
  .hero-visual { min-height: 0; width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; margin-top: -2px; }
  .hero-dog { width: min(76vw, 420px); max-height: 34svh; object-fit: contain; }
  .reaction-float { width: 50px; height: 50px; border-radius: 16px; font-size: 21px; }
  .reaction-heart { top: 8%; right: 3%; }
  .reaction-fire { right: 2%; bottom: 17%; }
  .reaction-laugh { left: 2%; bottom: 12%; }

  .reaction-grid { gap: 10px; }
  .reaction-card { border-radius: 20px; padding: 6px; }
  .reaction-card img { border-radius: 15px; }
  .reaction-card-foot { padding: 8px 5px 3px; }
  .reaction-card-foot strong { font-size: 15px; }

  .emoji-grid { grid-template-columns: 1fr; gap: 26px; }
  .chat-art { width: min(92%, 420px); margin: 0 auto; border-radius: 26px; }
  .emoji-copy { text-align: left; }
  .emoji-copy > p { font-size: 16px; }
  .mini-chat { padding: 14px; }

  .live-heading { align-items: center; }
  .live-state { font-size: 9px; }
  .market-strip { grid-template-columns: 1fr 1fr; border-radius: 20px; }
  .market-stat { padding: 14px 15px; }
  .market-stat:nth-child(2) { border-right: 0; }
  .market-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chart-stage, .chart-placeholder, .chart-stage iframe { min-height: 390px; height: 390px; }
  .community-card { padding: 18px; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-tile { justify-content: flex-start; padding: 7px 9px 7px 7px; }
  .social-tile span { display: inline; }

  .footer-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .footer-ca { grid-column: 1 / -1; width: 100%; max-width: none; }
}

@media (max-width: 430px) {
  .header-actions .icon-link:first-child { display: none; }
  .hero-inner { padding-top: 25px; }
  h1 { font-size: clamp(3rem, 18vw, 4.5rem); }
  .hero-sub { display: none; }
  .hero-dog { max-height: 40svh; }
  .reaction-float { display: none; }
  .ca-card { font-size: 10px; }
  .copy-btn { padding: 8px 9px; }
  .reaction-card-foot strong { font-size: 14px; }
  .tap-label { display: none; }
  .footer-socials { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
