:root {
  --color-bg: #0F172A;
  --color-surface: #1E293B;
  --color-primary-from: #7C3AED;
  --color-primary-to: #00D4FF;
  --color-text: #F8FAFC;
  --color-muted: #94A3B8;
  --color-line: rgba(124, 58, 237, 0.3);
  --color-line-strong: rgba(0, 212, 255, 0.38);
  --shadow-soft: 0 24px 80px rgba(2, 6, 23, 0.35);
  --gradient-brand: linear-gradient(135deg, var(--color-primary-from), var(--color-primary-to));
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--color-accent, #60A5FA);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible,
.header-cta:focus-visible,
.creator-dl-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: 'Noto Sans JP', sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.28), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(0, 212, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #0F172A 0%, #101827 48%, #0B1120 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.18) 0%, rgba(15, 23, 42, 0.95) 55%, rgba(0, 212, 255, 0.10) 100%);
  font-weight: 900;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.18),
    0 0 18px rgba(124, 58, 237, 0.45),
    0 0 36px rgba(0, 212, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 13.5px;
  background: linear-gradient(135deg, #7C3AED 0%, #00D4FF 100%);
  z-index: -1;
}

.brand:hover .brand-mark {
  transform: scale(1.07);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.27),
    0 0 27px rgba(124, 58, 237, 0.68),
    0 0 54px rgba(0, 212, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-word span:first-child {
  color: #fff;
}

.brand-word span:last-child,
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-cta {
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.62);
}

.section-block {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  min-height: calc(100svh - 150px);
  gap: 56px;
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #A5F3FC;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subcopy {
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: 1.16rem;
  font-weight: 700;
}

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

.hero-note {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.platform-chip a {
  color: #A5F3FC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-free-chip {
  flex-wrap: wrap;
  white-space: normal;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .ai-free-chip { font-size: 0.74rem; padding: 4px 8px; }
}

.section-disclaimer {
  max-width: 720px;
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--color-line);
  background: rgba(15, 23, 42, 0.4);
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.section-disclaimer a,
.creator-desc a,
.creator-guide-link a {
  color: #A5F3FC;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-creator-disclaimer {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.csv-example-block {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: left;
}

.csv-example-title {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.csv-example-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #E2E8F0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(196, 181, 253, 0.42);
  background: rgba(124, 58, 237, 0.14);
  color: #EDE9FE;
}

.btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.btn-secondary:disabled:hover {
  transform: none;
}

.landing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

.landing-modal-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 8px;
  background: #0F172A;
  color: #F8FAFC;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.landing-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.landing-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.landing-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #F8FAFC;
  cursor: pointer;
  font-size: 1.2rem;
}

.landing-beta-copy {
  color: var(--color-muted);
  line-height: 1.7;
}

.landing-beta-copy:focus {
  outline: none;
}

.landing-modal-terms-link {
  margin: 16px 0;
  color: #A5F3FC;
  font-size: 0.9rem;
}

.landing-modal-terms-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-beta-preview {
  display: none;
  gap: 10px;
  margin: 16px 0;
  color: #CBD5E1;
  font-size: 0.86rem;
}

.landing-beta-preview textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  color: #CBD5E1;
  resize: none;
}

.landing-beta-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.landing-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-preview {
  position: relative;
}

.preview-shell {
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.preview-topbar {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 18px;
  padding: 22px;
}

.preview-main-card,
.preview-side,
.glass-card,
.feature-card,
.solution-card {
  border: 1px solid var(--color-line);
  background: rgba(30, 41, 59, 0.62);
  backdrop-filter: blur(10px);
}

.preview-main-card {
  min-height: 290px;
  border-radius: 8px;
  padding: 24px;
}

.preview-label,
.answer-pill,
.card-number,
.feature-number,
.solution-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.18);
  color: #C4B5FD;
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-label {
  border-radius: 999px;
  margin-bottom: 20px;
  padding: 6px 12px;
}

.preview-main-card h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.preview-main-card p {
  color: var(--color-muted);
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.answer-pill {
  border-radius: 999px;
  padding: 8px 12px;
}

.answer-pill.active {
  background: var(--gradient-brand);
  color: #fff;
}

.preview-side {
  display: grid;
  align-content: space-between;
  border-radius: 8px;
  padding: 18px;
}

.score-ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00D4FF 0 82%, rgba(148, 163, 184, 0.22) 82% 100%);
}

.score-ring span {
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #0F172A;
  font-weight: 900;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  height: 96px;
}

.mini-bars span {
  border-radius: 999px 999px 6px 6px;
  background: var(--gradient-brand);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.glass-card,
.feature-card,
.solution-card {
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.2);
}

.glass-card {
  min-height: 180px;
  padding: 24px;
}

.card-number,
.feature-number {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.glass-card h3,
.feature-card h3,
.solution-card h3,
.steps h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.solution-list {
  display: grid;
  gap: 16px;
}

.solution-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.solution-index {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff;
}

.solution-card p,
.feature-card p,
.steps p,
.cta-section p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.feature-block {
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 8px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
}

.feature-block + .feature-block {
  margin-top: 24px;
}

.feature-block-premium {
  border-color: rgba(124, 58, 237, 0.46);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0.48));
}

.feature-block-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.feature-block-heading h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.feature-block-heading p {
  margin-bottom: 0;
  color: var(--color-muted);
}

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

.feature-card .badge {
  margin: 0 0 18px 10px;
  vertical-align: top;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
}

.badge-free {
  border: 1px solid rgba(34, 197, 94, 0.34);
  background: rgba(22, 163, 74, 0.16);
  color: #BBF7D0;
}

.badge-ai-premium {
  border: 1px solid rgba(196, 181, 253, 0.44);
  background: rgba(124, 58, 237, 0.22);
  color: #EDE9FE;
}

.premium-features {
  margin-bottom: 22px;
}
