/* =========================================================
   Orbit LP - Design System
   Accent: #6366F1 (Indigo)
   ========================================================= */

:root {
  --color-primary: #6366F1;
  --color-primary-dark: #4F46E5;
  --color-primary-light: #818CF8;
  --color-primary-50: #EEF2FF;
  --color-primary-100: #E0E7FF;

  --color-accent: #EC4899;
  --color-cyan: #06B6D4;

  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-subtle: #94A3B8;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #0B0F1A;

  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, 0.18);

  --max-w: 1160px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.75;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--color-text);
  opacity: 1;
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-appstore {
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  transition: transform 0.15s, filter 0.2s;
  line-height: 0;
}
.btn-appstore img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 10px;
}
.btn-appstore:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
  opacity: 1;
}
.cta .btn-appstore img {
  height: 56px;
}
.site-header .btn-appstore img {
  height: 40px;
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  opacity: 1;
}

/* Mac 版ダウンロード。App Store バッジ(52-56px)と高さを揃える */
.btn-mac {
  background: #111318;
  color: #fff;
  height: 56px;
  padding: 0 26px;
  gap: 10px;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}
.btn-mac svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn-mac:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}
@media (max-width: 560px) {
  .btn-mac {
    height: 52px;
    font-size: 15px;
    padding: 0 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
  background: radial-gradient(
      1200px 500px at 20% 0%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    radial-gradient(900px 500px at 90% 20%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}
h1.hero-title {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-note {
  color: var(--color-text-subtle);
  font-size: 13px;
}

/* Hero mock */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.phone {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 100%);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(79, 70, 229, 0.28),
    0 8px 24px rgba(15, 23, 42, 0.2);
  transform: rotate(-2deg);
}
.phone-screen {
  border-radius: 30px;
  height: 100%;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  gap: 14px;
}
.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-title {
  font-weight: 700;
  font-size: 15px;
}
.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-stat {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.mock-stat .n {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.mock-stat .l {
  font-size: 10px;
  color: var(--color-text-subtle);
}
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.mock-col {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-col h4 {
  font-size: 10px;
  color: var(--color-text-subtle);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-card .t {
  font-size: 10px;
  font-weight: 600;
}
.mock-card .tag {
  align-self: flex-start;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-primary-100);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.mock-card .tag.urgent {
  background: #FEE2E2;
  color: #B91C1C;
}
.mock-card .tag.warn {
  background: #FEF3C7;
  color: #92400E;
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--color-text-muted);
}

/* ---------- Features grid ---------- */
.features {
  background: var(--color-bg-alt);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-50));
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse {
  direction: rtl;
}
.split.reverse > * {
  direction: ltr;
}
@media (max-width: 900px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}
.split h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.3;
}
.split p {
  color: var(--color-text-muted);
  font-size: 16.5px;
  margin-bottom: 20px;
}
.split ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split ul li {
  padding-left: 28px;
  position: relative;
  color: var(--color-text);
  font-size: 15px;
}
.split ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.visual-card {
  background: linear-gradient(160deg, #EEF2FF 0%, #FFFFFF 70%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.visual-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
}

/* Chat bubble mock */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
.bubble.user {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  background: #fff;
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  border: 1px solid var(--color-border);
}

/* Report mock */
.report-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bar-row .label {
  color: var(--color-text-muted);
  font-weight: 500;
}
.bar-row .bar {
  height: 10px;
  background: var(--color-primary-50);
  border-radius: 999px;
  overflow: hidden;
}
.bar-row .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
}
.bar-row .val {
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: right;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #3730A3 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(236,72,153,0.2), transparent 60%);
  pointer-events: none;
}
.cta .inner {
  position: relative;
}
.cta h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cta .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .body {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #CBD5E1;
  padding: 60px 0 32px;
  font-size: 14px;
}
.site-footer a {
  color: #CBD5E1;
}
.site-footer a:hover {
  color: #fff;
  opacity: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.footer-brand strong {
  color: #fff;
  font-size: 18px;
}
.footer-desc {
  color: #94A3B8;
  max-width: 320px;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748B;
  font-size: 13px;
}

/* =========================================================
   Legal Pages (privacy / terms)
   ========================================================= */
.legal {
  padding: 64px 0 96px;
  background: var(--color-bg);
}
.legal .inner {
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.legal .updated {
  color: var(--color-text-subtle);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal p,
.legal li {
  color: var(--color-text-muted);
  font-size: 15.5px;
  line-height: 1.85;
}
.legal p {
  margin-bottom: 14px;
}
.legal ul,
.legal ol {
  margin: 0 0 16px 24px;
}
.legal li {
  margin-bottom: 6px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.legal th,
.legal td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--color-text);
}
.legal th {
  background: var(--color-bg-alt);
  font-weight: 700;
}
.legal .note {
  background: var(--color-primary-50);
  border-left: 4px solid var(--color-primary);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 14.5px;
  margin: 16px 0 20px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
}
