/* —— Home hero (DeepSeek-style centered composer) —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vh, 2.5rem) 1.25rem 3.5rem;
  overflow: hidden;
}

.hero-center {
  width: min(100%, var(--composer-max));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0 0 0.65rem;
  color: var(--ink);
  animation: hero-rise 0.75s ease 0.05s both;
}

.hero-brand-mark span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  animation: hero-rise 0.8s ease 0.1s both;
}

.hero-lead {
  margin: -0.85rem 0 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 26rem;
  animation: hero-rise 0.8s ease 0.12s both;
}

.composer-shell {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 1px 2px rgba(60, 90, 140, 0.04),
    0 18px 48px rgba(70, 100, 150, 0.1);
  padding: 1rem 1.05rem 0.85rem;
  text-align: left;
  animation: hero-rise 0.85s ease 0.16s both;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.composer-shell:focus-within {
  border-color: rgba(77, 107, 254, 0.35);
  box-shadow:
    0 1px 2px rgba(60, 90, 140, 0.04),
    0 22px 56px rgba(70, 100, 150, 0.14),
    0 0 0 3px rgba(77, 107, 254, 0.08);
}

.composer-shell textarea {
  width: 100%;
  min-height: 72px;
  max-height: 160px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.55;
  padding: 0.15rem 0.35rem 0.75rem;
}

.composer-shell textarea::placeholder {
  color: var(--muted-2);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.composer-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mode-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.mode-chip:hover {
  background: rgba(26, 35, 50, 0.04);
  color: var(--ink-2);
}

.mode-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(77, 107, 254, 0.22);
}

.composer-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.composer-send:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.composer-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.composer-send svg {
  width: 18px;
  height: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  animation: hero-rise 0.9s ease 0.22s both;
}

.hero-cta .btn {
  min-height: 44px;
  padding: 0 1.15rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line-strong);
  color: var(--ink-2);
  box-shadow: none;
}

.hero-cta .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(77, 107, 254, 0.3);
  color: var(--accent-deep);
}

.hero-cta .btn svg {
  width: 16px;
  height: 16px;
}

.hero-hint {
  margin: 0.9rem 0 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.86rem;
  animation: hero-rise 0.9s ease 0.28s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#enter-app-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(244, 248, 252, 0.82);
  backdrop-filter: blur(10px);
}

.enter-app-card {
  text-align: center;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: min(86vw, 280px);
}

.enter-app-card p {
  margin: 0.9rem 0 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.enter-app-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.enter-app-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(77, 107, 254, 0.18);
  border-top-color: var(--accent);
  animation: enter-spin 0.8s linear infinite;
}

@keyframes enter-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Logos / strip */
.proof-strip {
  padding: 1.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.proof-strip .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proof-pills span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 107, 254, 0.4);
  box-shadow: var(--shadow-sm);
}

.feature-card .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Split showcase */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse .split-copy {
  order: 2;
}

.canvas-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.canvas-types li {
  list-style: none;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.canvas-types {
  margin: 1.4rem 0 0;
  padding: 0;
}

.canvas-types strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.canvas-types span {
  color: var(--muted);
  font-size: 0.8rem;
}

.mock-board {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 340px;
  padding: 1.25rem;
}

.mock-board .tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mock-board .tabs span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.mock-board .tabs span.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.scratch-paper {
  border-radius: 14px;
  min-height: 240px;
  padding: 1.1rem 1.2rem;
  background:
    #fbf8f1
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(80, 120, 160, 0.18) 27px,
      rgba(80, 120, 160, 0.18) 28px
    );
  border: 1px solid rgba(12, 17, 22, 0.08);
  font-family: "Segoe Script", "Brush Script MT", "Noto Sans SC", cursive;
  color: #243042;
  font-size: 1.05rem;
  line-height: 28px;
}

.scratch-paper .eq {
  color: var(--accent-deep);
}

/* Plaza */
.plaza-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.plaza-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.plaza-card .thumb {
  flex: 1;
  min-height: 140px;
  background:
    linear-gradient(145deg, rgba(77, 107, 254, 0.18), rgba(120, 150, 200, 0.1) 40%, #dfe8ee),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 50%);
  position: relative;
}

.plaza-card:nth-child(2) .thumb {
  background:
    linear-gradient(160deg, #d9e7f2, #f0f4f7 55%, rgba(77, 107, 254, 0.15));
}

.plaza-card:nth-child(3) .thumb {
  background:
    linear-gradient(200deg, #e8efe8, #f5f7f8 50%, rgba(12, 17, 22, 0.08));
}

.plaza-card .thumb::after {
  content: attr(data-label);
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 17, 22, 0.72);
  color: #fff;
  font-size: 0.72rem;
}

.plaza-card .meta {
  padding: 0.95rem 1rem 1.1rem;
}

.plaza-card .meta strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.plaza-card .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Loop */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}

.loop-step {
  position: relative;
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.loop-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.7rem;
}

.loop-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.loop-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  margin: 1rem 0 4rem;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.2rem);
  background:
    linear-gradient(135deg, #0f171d 0%, #1a2a24 55%, #0d3d2c 100%);
  color: #eef5f0;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: #fff;
}

.cta-band p {
  margin: 0.7rem 0 0;
  color: rgba(238, 245, 240, 0.78);
  max-width: 36rem;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cta-band .btn-accent {
  color: #fff;
}

.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #fff;
}

/* Inner pages */
.page-hero {
  padding: clamp(3rem, 8vh, 5rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-hero .lead {
  max-width: 42rem;
}

.detail-list {
  display: grid;
  gap: 1rem;
}

.detail-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.detail-item:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-item h3 {
  font-size: 1.15rem;
}

.detail-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.detail-item .label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 0.2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.info-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 107, 254, 0.45);
}

.store-card .os {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.store-card p {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  max-width: 48rem;
}

.contact-box {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #eef5f0;
}

.contact-box a {
  color: var(--accent);
  font-weight: 600;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-visual {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.fulcrum-scene {
  width: min(100%, 420px);
}

.lever-group {
  transform-origin: 320px 320px;
  animation: lever-breathe 5.8s ease-in-out infinite;
}

.load {
  transform-origin: 150px 278px;
  animation: load-lift 5.8s ease-in-out infinite;
}

.effort {
  transform-origin: 500px 278px;
  animation: effort-press 5.8s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes card-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes card-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes lever-breathe {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes load-lift {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-12px); }
}

@keyframes effort-press {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(10px); }
}

@media (max-width: 980px) {
  .split,
  .split.reverse .split-copy,
  .plaza-grid,
  .loop,
  .cta-band,
  .about-story,
  .feature-grid,
  .two-col,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .detail-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  @media (min-width: 640px) {
    .feature-grid,
    .store-grid,
    .two-col {
      grid-template-columns: 1fr 1fr;
    }

    .loop {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 560px) {
  .composer-shell {
    border-radius: 22px;
    padding: 0.85rem 0.8rem 0.7rem;
  }

  .mode-chip span {
    display: none;
  }

  .mode-chip {
    padding: 0.45rem;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }
}
