:root {
  --page-bg: #fafafa;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --gradient: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -12px rgba(79, 70, 229, 0.14);
  --wide-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 60px -16px rgba(79, 70, 229, 0.18);
  --font: "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(60px);
}

.page-glow--top {
  top: -35vh;
  left: 50%;
  width: 62vh;
  height: 62vh;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 70, 229, 0.55), transparent 70%);
  opacity: 0.07;
}

.page-glow--side {
  top: 24vh;
  right: -18vh;
  width: 42vh;
  height: 42vh;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  opacity: 0.05;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 12px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: opacity 150ms ease;
}

.brand:hover {
  opacity: 0.76;
}

.brand-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

.brand-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon circle {
  fill: currentColor;
}

.brand-gradient,
.footer-brand span {
  color: transparent;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
}

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

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  max-width: 768px;
  margin: 0 auto;
  font-size: clamp(2.15rem, calc(2.8vw + 1.25rem), 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 600px;
  margin: 12px auto 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.network-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.28) 1px, transparent 1.6px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 63% 62% at 50% 45%, transparent 56%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 63% 62% at 50% 45%, transparent 56%, #000 100%);
  pointer-events: none;
}

.hero-node {
  position: absolute;
  border: 1px dashed rgba(129, 140, 248, 0.38);
  border-radius: 50%;
  pointer-events: none;
}

.hero-node::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: linear-gradient(135deg, #eef2ff, #ddd6fe);
  box-shadow: 0 12px 32px -10px rgba(99, 102, 241, 0.22);
}

.hero-node--left {
  top: 185px;
  left: max(18px, calc(50% - 455px));
  width: 72px;
  height: 72px;
  opacity: 0.62;
}

.hero-node--right {
  right: max(20px, calc(50% - 445px));
  bottom: 105px;
  width: 54px;
  height: 54px;
  opacity: 0.5;
}

.upload-shell {
  width: min(100%, 672px);
  margin-inline: auto;
}

.upload-card {
  position: relative;
  overflow: hidden;
  min-height: 264px;
  padding: 40px 40px 22px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--wide-shadow);
  cursor: pointer;
  outline: none;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.upload-card:hover,
.upload-card:focus-visible {
  border-color: rgba(165, 180, 252, 0.8);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 28px 68px -16px rgba(79, 70, 229, 0.22);
}

.upload-card.is-dragging {
  border-color: #a5b4fc;
  background: rgba(238, 242, 255, 0.42);
  transform: scale(1.005);
}

.upload-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  opacity: 0.7;
}

.upload-empty,
.upload-preview {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.upload-icon {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(199, 210, 254, 0.75);
  border-radius: 16px;
  color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.upload-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px dashed rgba(129, 140, 248, 0.35);
  border-radius: 20px;
  animation: ring-pulse 3.6s ease-in-out infinite;
}

.upload-icon svg {
  width: 27px;
  height: 27px;
}

.upload-icon path,
.card-icon path,
.card-icon circle,
.card-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.upload-prompt {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.upload-prompt span {
  color: #4f46e5;
  font-weight: 500;
}

.upload-preview img {
  width: 144px;
  height: 144px;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.14);
}

.preview-details {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #475569;
  font-size: 14px;
}

#file-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-photo {
  padding: 0;
  border: 0;
  color: #4f46e5;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-meta strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-dot {
  color: #cbd5e1;
}

.upload-error {
  margin: 10px 0 0;
  color: #e11d48;
  font-size: 14px;
}

.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.28);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.primary-button:not(:disabled):hover {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.38);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.28);
  outline-offset: 3px;
}

.primary-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hero-button {
  margin-top: 16px;
}

.capabilities {
  display: flex;
  max-width: 920px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 12px;
}

.capabilities span {
  white-space: nowrap;
}

.capabilities span::first-letter {
  color: #6366f1;
}

.section {
  padding: 92px 0;
}

.features {
  padding-top: 40px;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(255, 255, 255, 0.55);
}

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

.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

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

.info-card {
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 34px -20px rgba(79, 70, 229, 0.22);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: var(--card-shadow);
}

.card-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h3,
.step h3 {
  margin: 20px 0 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.info-card p,
.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.how-it-works {
  background: var(--page-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px;
  max-width: 1020px;
  margin: 0 auto;
}

.step {
  position: relative;
  text-align: center;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 48px);
  width: calc(100% - 44px);
  height: 1px;
  background: linear-gradient(90deg, #c7d2fe, #ddd6fe);
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2fe;
  border-radius: 50%;
  color: #4f46e5;
  background: linear-gradient(135deg, #fff, #f5f3ff);
  box-shadow: 0 8px 22px -12px rgba(79, 70, 229, 0.45);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.step h3 {
  margin-top: 20px;
}

.section-button {
  margin: 42px auto 0;
}

.how-it-works .container {
  text-align: center;
}

.faq-section {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(255, 255, 255, 0.58);
}

.faq-container {
  max-width: 880px;
}

.faq-section .section-heading {
  margin-bottom: 34px;
}

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

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item.is-open {
  border-color: #c7d2fe;
  box-shadow: 0 8px 28px -22px rgba(79, 70, 229, 0.36);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 22px;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.2);
  outline-offset: -3px;
}

.chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-right: 3px;
  border-right: 1.75px solid #64748b;
  border-bottom: 1.75px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 180ms ease;
}

.faq-answer.is-open {
  max-height: 260px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 54px 22px 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.final-cta {
  padding: 94px 0 100px;
  text-align: center;
}

.final-cta p {
  max-width: 620px;
  margin: 15px auto 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  padding-top: 32px;
  padding-bottom: 30px;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.copyright {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .hero {
    padding: 34px 0 58px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(2.05rem, 10vw, 2.75rem);
  }

  .hero-subtitle {
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .network-pattern,
  .hero-node {
    display: none;
  }

  .upload-card {
    min-height: 245px;
    padding: 30px 20px 20px;
    border-radius: 28px;
    box-shadow: var(--card-shadow);
  }

  .upload-empty,
  .upload-preview {
    min-height: 145px;
  }

  .upload-icon {
    width: 56px;
    height: 56px;
  }

  .upload-title {
    font-size: 20px;
  }

  .upload-prompt {
    font-size: 14px;
  }

  .upload-meta {
    gap: 2px;
    font-size: 11px;
  }

  .upload-meta > span {
    width: 100%;
  }

  .upload-meta .meta-dot {
    display: none;
  }

  .upload-preview img {
    width: 120px;
    height: 120px;
  }

  .preview-details {
    flex-wrap: wrap;
    gap: 5px 12px;
  }

  #file-name {
    max-width: 200px;
  }

  .hero-button {
    width: 100%;
  }

  .capabilities {
    max-width: 390px;
    gap: 6px 12px;
    font-size: 10px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .section-heading p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.65;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card {
    min-height: auto;
    padding: 23px;
    border-radius: 20px;
  }

  .info-card h3 {
    margin-top: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 500px;
  }

  .step {
    padding-inline: 6px;
  }

  .step:not(:last-child)::after {
    top: 68px;
    left: calc(50% - 0.5px);
    width: 1px;
    height: 29px;
    background: linear-gradient(180deg, #c7d2fe, #ddd6fe);
  }

  .section-button {
    width: 100%;
    max-width: 320px;
    margin-top: 38px;
  }

  .faq-section .section-heading {
    margin-bottom: 26px;
  }

  .faq-question {
    gap: 18px;
    padding: 18px;
    font-size: 14px;
  }

  .faq-answer p {
    padding: 0 42px 19px 18px;
    font-size: 13px;
  }

  .final-cta {
    padding: 72px 0 76px;
  }

  .final-cta p {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .final-cta .primary-button {
    width: 100%;
    max-width: 320px;
  }

  .footer-topics {
    align-items: center;
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (max-width: 379px) {
  .brand {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .capabilities {
    gap-inline: 8px;
    font-size: 9.5px;
  }

  .footer-topics span:nth-child(even) {
    display: none;
  }

  .footer-topics span:nth-child(odd) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
