:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --primary: #1a73e8;
  --primary-strong: #155fc0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --success-soft: #e8f1ff;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 16px 36px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(26, 115, 232, 0.08), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(26, 115, 232, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  padding: 18px 0 0;
  margin-bottom: 18px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 115, 232, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4a95f3);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.22);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(26, 115, 232, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.topbar-link:hover {
  transform: translateY(-1px);
}

.topbar-link-primary {
  background: linear-gradient(135deg, var(--primary), #4a95f3);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.18);
}

.topbar-link-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-strong);
}

.section-pad {
  padding: 80px 0;
}

h2.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
}

.hero-grid > div:first-child {
  animation: fade-up 560ms ease-out 60ms both;
}

.hero-divider {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--primary), rgba(26, 115, 232, 0.12));
}

.hero-grid > .hero-visual {
  animation: fade-up 720ms ease-out 140ms both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(26, 115, 232, 0.16);
  animation: badge-glow 3.8s ease-in-out 900ms infinite;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #4b5563;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  appearance: none;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4a95f3);
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.28);
}

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

.btn-secondary {
  color: var(--primary-strong);
  background: #fff;
  border: 1px solid rgba(26, 115, 232, 0.28);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.hero-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0f5fcc 0%, #1a73e8 50%, #4da3ff 100%);
  color: #fff;
  min-height: 360px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 41, 87, 0.14) 0%, rgba(9, 28, 58, 0.72) 70%, rgba(9, 28, 58, 0.88) 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: image-settle 900ms ease-out 120ms both;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  left: -36px;
  bottom: -56px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  z-index: -1;
}

.visual-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
}

.visual-title {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-size: 1.45rem;
}

.visual-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.about-list,
.user-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  color: #374151;
}

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

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms ease,
    transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes image-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(26, 115, 232, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.10);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.32);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--primary-strong);
  font-weight: 800;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

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

.card-meta {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--primary-strong);
}

.disclaimer-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(26, 115, 232, 0.16);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.footer {
  padding: 22px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .two-col,
  .cards-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-divider {
    margin: 14px 0 18px;
  }

  .hero-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 56px 0;
  }

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

  .hero-cta,
  .topbar-actions,
  .footer-links {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .topbar-link {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
