:root {
  --bg: #070812;
  --bg-2: #0d0d1d;
  --ink: #111223;
  --muted: #666a82;
  --soft: #f6f3ff;
  --paper: #ffffff;
  --line: #e6def8;
  --line-dark: rgba(255,255,255,.14);
  --purple: #6f42ff;
  --purple-2: #9b7cff;
  --purple-3: #d9ccff;
  --green: #20c981;
  --shadow: 0 24px 80px rgba(50,32,120,.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #080916 0, #080916 360px, #faf8ff 361px, #fff 100%);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,8,18,.78);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: url("/assets/yomiku-logo-rounded.png") center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(111,66,255,.45);
  overflow: hidden;
}

.brand-mark img {
  width: 0;
  height: 0;
  display: block;
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 750;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select {
  height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.store-button, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.store-button {
  min-height: 46px;
  padding: 8px 15px 8px 13px;
  color: #fff;
  background: #050507;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.store-button small {
  display: block;
  font-size: 9px;
  line-height: 1;
  opacity: .78;
  font-weight: 800;
}

.store-button strong {
  display: block;
  font-size: 17px;
  line-height: 1.05;
}

.store-button .apple {
  font-size: 22px;
  line-height: 1;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #7b56ff);
  box-shadow: 0 14px 36px rgba(111,66,255,.22);
}

.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--purple);
  background: rgba(111,66,255,.08);
}

.store-button:hover, .primary-button:hover, .secondary-button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 68% 50%, rgba(123,86,255,.36), transparent 28%),
    radial-gradient(circle at 25% 20%, rgba(111,66,255,.22), transparent 28%),
    linear-gradient(145deg, #080916 0%, #111024 55%, #080916 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 190px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 62% 42%, rgba(178,140,255,.6), transparent 15%),
    linear-gradient(100deg, transparent 30%, rgba(119,75,255,.42) 55%, transparent 75%);
  filter: blur(20px);
  opacity: .8;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  padding: 72px 0 34px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.06em;
}

.hero h1 span { color: var(--purple-2); }

.hero-copy {
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 19px;
  line-height: 1.55;
}

.hero-proof {
  margin: 18px 0 26px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--purple-3);
  font-size: 14px;
  font-weight: 850;
}

.phone-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(310px, 82vw);
  min-height: 600px;
  border: 9px solid #101017;
  border-radius: 42px;
  background: #f7f6fb;
  box-shadow: 0 30px 90px rgba(0,0,0,.52);
  overflow: hidden;
}

.phone.real-screen {
  background: #11121c;
}

.phone.real-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 118px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #101017;
  z-index: 3;
}

.phone-ui {
  padding: 42px 18px 18px;
  color: #161728;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  font-weight: 850;
}

.online {
  display: block;
  color: var(--green);
  font-size: 11px;
  text-align: center;
  font-weight: 750;
}

.bubble {
  max-width: 86%;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
  background: #fff;
  box-shadow: 0 12px 34px rgba(44,33,88,.08);
}

.bubble small {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 850;
}

.bubble.mine {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #835fff);
}

.phone-chip-row {
  position: absolute;
  right: 10px;
  bottom: 26px;
  left: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.glass-chip {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(14,13,24,.58);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(6,7,17,.7);
  backdrop-filter: blur(18px);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}

.strip-item {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 850;
  border-left: 1px solid rgba(255,255,255,.08);
}

.section {
  padding: 72px 0;
  background: #fff;
}

.section.soft { background: linear-gradient(180deg, #fbf9ff, #fff); }
.section.tint { background: #f7f3ff; }

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2, .page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-head p, .page-hero p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 42px rgba(61,36,132,.06);
}

.feature-card {
  padding: 22px;
  min-height: 170px;
}

.icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--purple);
  background: rgba(111,66,255,.1);
  margin-bottom: 16px;
}

.feature-card h3, .learn-copy h2, .pricing-card h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.step {
  text-align: center;
}

.step-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple);
  font-weight: 900;
  border: 1px solid var(--purple-3);
  background: #fff;
  box-shadow: 0 10px 30px rgba(111,66,255,.12);
}

.step h3 {
  margin: 0;
  font-size: 15px;
}

.step p {
  margin: 7px auto 0;
  max-width: 150px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.learn-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 42px;
}

.learn-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.learn-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #2b2d42;
  font-weight: 750;
}

.check span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--purple);
  background: rgba(111,66,255,.1);
}

.learn-board {
  position: relative;
  min-height: 430px;
}

.learn-video-frame {
  position: relative;
  width: min(290px, 100%);
  aspect-ratio: 9 / 19.5;
  border: 8px solid #11121c;
  border-radius: 36px;
  background: #f7f4ff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.learn-video-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 21px;
  border-radius: 999px;
  background: #11121c;
  transform: translateX(-50%);
}

.learn-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f7f4ff;
}

.video-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(17,18,28,.58);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 850;
}

.mini-phone {
  width: 250px;
  min-height: 450px;
  border: 8px solid #11121c;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 30px 16px 16px;
}

.word-card {
  padding: 18px;
  margin: 12px 0;
  border-radius: 16px;
  background: #f4f0ff;
}

.word-card strong {
  display: block;
  font-size: 22px;
}

.floating-note {
  position: absolute;
  right: 0;
  top: 70px;
  width: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.review-card {
  position: absolute;
  right: 38px;
  bottom: 32px;
  width: 250px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-card {
  padding: 26px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple-3);
  box-shadow: 0 24px 80px rgba(111,66,255,.14);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.price {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.pricing-card ul {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #2f3147;
  font-size: 14px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--purple);
  font-weight: 900;
  margin-right: 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.post-thumb {
  height: 66px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(111,66,255,.22), rgba(255,255,255,.8)),
    radial-gradient(circle at 30% 30%, rgba(111,66,255,.5), transparent 35%);
}

.post-row h3, .article-card h3 {
  margin: 0;
  font-size: 18px;
}

.meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(111,66,255,.1);
  font-size: 12px;
  font-weight: 850;
}

.article-card {
  padding: 24px;
}

.article-visual {
  min-height: 210px;
  margin-top: 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #111222, #080916),
    radial-gradient(circle at 60% 50%, rgba(111,66,255,.5), transparent 30%);
  position: relative;
  overflow: hidden;
}

.article-visual::after {
  content: "View original";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.faq-layout, .support-layout, .admin-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item.open .faq-answer { display: block; }

.search {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
}

.form-card {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #282a3d;
  font-size: 13px;
  font-weight: 850;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.admin-preview {
  min-height: 420px;
  padding: 20px;
  border-radius: 20px;
  background: #101124;
  color: #fff;
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 76px 0 42px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f8f4ff);
}

.legal-content {
  max-width: 820px;
  padding-bottom: 80px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 26px;
  letter-spacing: -.025em;
}

.legal-content p, .legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 44px 0;
  color: rgba(255,255,255,.72);
  background: #080916;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 750;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.chat-toggle {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #835fff);
  box-shadow: 0 18px 48px rgba(111,66,255,.35);
  font-weight: 900;
  cursor: pointer;
}

.chat-panel {
  display: none;
  width: min(360px, calc(100vw - 32px));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel.open { display: block; }

.chat-panel header {
  padding: 16px;
  color: #fff;
  background: #111222;
  font-weight: 900;
}

.chat-messages {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.bot-message, .user-message {
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.bot-message { background: #f3efff; color: var(--ink); }
.user-message { background: var(--purple); color: #fff; margin-left: 36px; }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .store-button.nav-store { display: none; }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 48px 0 28px;
  }
  .hero h1 { font-size: clamp(42px, 13vw, 68px); }
  .phone-stage { min-height: 500px; }
  .phone { min-height: 520px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .learn-layout, .blog-grid, .faq-layout, .support-layout, .admin-layout {
    grid-template-columns: 1fr;
  }
  .pricing-grid { grid-template-columns: 1fr; }
  .floating-note, .review-card {
    position: static;
    width: auto;
    margin-top: 14px;
  }
  .learn-board {
    min-height: auto;
    display: grid;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner { height: 62px; }
  .language-select { width: 66px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .text-link { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .post-row { grid-template-columns: 70px 1fr; }
  .post-row .tag { grid-column: 2; width: max-content; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-widget { right: 14px; bottom: 14px; }
}
