/* AniManager — marketing site (palette aligned with desktop app theme) */
:root {
  --ink: #07060a;
  --ink-2: #0c0b10;
  --panel: #101018;
  --panel-alt: #161622;
  --border: #24183a;
  --border-strong: #35285f;
  --text: #eceaf7;
  --muted: #9b92b8;
  --accent: #a78bfa;
  --accent-hot: #c084fc;
  --highlight: #5b21b6;
  --highlight-deep: #2e1065;
  --bright: #f0abfc;
  --glow: rgba(167, 139, 250, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hot);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--highlight);
  color: #faf5ff;
  border-radius: 8px;
  z-index: 10000;
}

/* Ambient background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(109, 40, 217, 0.35), transparent 55%),
    radial-gradient(700px 420px at 88% 8%, rgba(192, 132, 252, 0.22), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(91, 33, 182, 0.25), transparent 45%),
    linear-gradient(180deg, #07060a 0%, #05040a 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 10%, transparent 75%);
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--glow);
}

.brand .brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.02em;
}

.brand .brand-ani {
  font-style: italic;
  color: #fff;
}

.brand .brand-mgr {
  background: linear-gradient(135deg, #f0e6ff, #c4b5fd 45%, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

#site-nav a:not(.btn):hover {
  color: var(--text);
}

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

#nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  #nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    position: fixed;
    inset: var(--nav-h) 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    gap: 8px;
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  #site-nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  #site-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #35285f, #24183a);
  color: #f5f3ff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.35), 0 12px 40px rgba(91, 33, 182, 0.25);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #6d28d9, #7c3aed 40%, #a855f7);
  border-color: #7c3aed;
}

.btn-primary:hover {
  border-color: #c084fc;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ddd6fe;
  border: 1px solid var(--border);
  background: rgba(36, 24, 58, 0.55);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #a78bfa);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, #faf5ff, #c4b5fd 35%, #e879f9 70%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: #d8ccf7;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.micro {
  font-size: 14px;
  color: var(--muted);
}

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.55), rgba(36, 24, 58, 0.2), rgba(192, 132, 252, 0.35));
  box-shadow: 0 40px 100px rgba(36, 24, 58, 0.65);
}

.hero-card-inner {
  border-radius: var(--radius);
  background: linear-gradient(180deg, #12101c, #0c0b10);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #0a0910;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r {
  background: #fb7185;
}
.dot-y {
  background: #fbbf24;
}
.dot-g {
  background: #34d399;
}

.hero-card-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.hero-mock {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr 0.6fr;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.mock-row span:nth-child(1) {
  color: #e7e5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-bar {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1f1a2e, #35285f);
  position: relative;
  overflow: hidden;
}

.mock-bar::after {
  content: "";
  position: absolute;
  inset: 0 35% 0 0;
  background: linear-gradient(90deg, #5b21b6, #a78bfa);
  border-radius: 6px;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #c4b5fd;
  background: rgba(46, 16, 101, 0.35);
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(36, 24, 58, 0.55);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 36px;
  max-width: 62ch;
  color: #d8ccf7;
}

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

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.95), rgba(12, 11, 16, 0.92));
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.18), transparent 70%);
  pointer-events: none;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(46, 16, 101, 0.45);
  color: #ddd6fe;
}

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

@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  background: var(--ink-2);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-hot);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 26px 24px;
  background: linear-gradient(165deg, rgba(22, 22, 34, 0.98), rgba(8, 7, 12, 0.98));
  position: relative;
}

.price-card.featured {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25), 0 30px 80px rgba(91, 33, 182, 0.22);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.2);
  color: #ede9fe;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.price-card h3 {
  margin: 0 0 6px;
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 6px;
}

.price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #d8ccf7;
  font-size: 15px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

.trial-banner {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(167, 139, 250, 0.45);
  background: rgba(46, 16, 101, 0.22);
}

.trial-banner h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.trial-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 800px) {
  .download-panel {
    grid-template-columns: 1fr;
  }
}

.code {
  font-family: var(--mono);
  font-size: 13px;
  background: #0a0910;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #ddd6fe;
  overflow-x: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--ink-2);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #f5f3ff;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #e7e5f5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Modal */
.notice {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}

.notice[hidden] {
  display: none;
}

.notice-card {
  width: min(520px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 22px 22px 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.notice-card h3 {
  margin: 0 0 10px;
}

.notice-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.notice-mail {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Screenshots */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

.screenshot-card {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.screenshot-card figcaption {
  padding: 14px 16px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.screenshot-card figcaption strong {
  display: block;
  color: #e7e5f5;
  font-size: 15px;
  margin-bottom: 4px;
}

/* Deep-dive + scenarios */
.detail-grid {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}

.detail-block {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.92), rgba(12, 11, 16, 0.95));
  padding: 22px 24px 20px;
}

.detail-block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #f5f3ff;
}

.detail-block p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.detail-block ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: #d8ccf7;
  font-size: 15px;
}

.detail-block li {
  margin-bottom: 8px;
}

.detail-block li:last-child {
  margin-bottom: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

.scenario-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--ink-2);
  padding: 20px 22px 18px;
}

.scenario-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #ede9fe;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.scenario-card .scenario-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 6px;
}
