/* CSS Reset & Base Styles */

::selection {
  /* background-color: rgba(168, 85, 247, 0.3);
  color: #ffffff; */
}

/* Main Content */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-gradient-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background-color: rgba(147, 51, 234, 0.2);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-gradient-2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background-color: rgba(234, 88, 12, 0.1);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1024px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background-color: rgba(24, 24, 27, 0.5);
  border: 1px solid #27272a;
  font-size: 14px;
  font-weight: 500;
  color: #d4d4d8;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22d3ee;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title-gradient {
  background: linear-gradient(to right, #c084fc, #ec4899, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 24px;
  color: #a1a1aa;
  max-width: 672px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.hero-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background-color: rgba(24, 24, 27, 0.5);
  padding: 8px;
  border-radius: 24px;
  border: 1px solid #27272a;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  max-width: 768px;
  margin: 0 auto;
}

.hero-form:focus-within {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5);
}

.hero-input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-input-icon {
  position: absolute;
  left: 24px;
  width: 20px;
  height: 20px;
  color: #71717a;
}

.hero-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 24px 16px 56px;
  color: #ffffff;
  font-size: 18px;
  border-radius: 9999px;
  outline: none;
}

.hero-input::placeholder {
  color: #71717a;
}

.hero-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #00b8db 0%, #ad46ff 100%);

  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px 0 rgba(34, 211, 238, 0.4);

  width: 100%;
}

.hero-button:hover:not(:disabled) {
  background: linear-gradient(to right, #67e8f9, #3b82f6);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
}

.hero-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-button-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.3s ease;
}

.hero-button:hover:not(:disabled) .hero-button-icon {
  transform: translateY(-4px);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 32px;
  margin-top: 32px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #a1a1aa;
}

.hero-feature img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.hero-form-wrap {
  max-width: 768px;
  margin: 0 auto;
}

.hero-form-error {
  margin: 14px 0 0;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #f87171;
  text-align: center;
}

.hero-form-error[hidden] {
  display: none !important;
}

/* Download manager (after parse succeeds) */
.download-result-panel {
  margin-top: 24px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid #27272a;
  background-color: #0a0a0a;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.download-result-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.download-result-hint {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.55;
  margin: 0 0 22px;
}

.download-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.download-result-btn {
  flex: 1 1 200px;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.download-result-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.download-result-btn--primary {
  border: none;
  color: #ffffff;
  background: linear-gradient(90deg, #00b8db 0%, #ad46ff 100%);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.download-result-btn--primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.download-result-btn--secondary {
  border: 1px solid #3f3f46;
  color: #fafafa;
  background-color: transparent;
}

.download-result-btn--secondary:hover:not(:disabled) {
  border-color: #71717a;
  background-color: rgba(39, 39, 42, 0.5);
}

.download-result-legal {
  font-size: 12px;
  color: #71717a;
  margin: 0;
  line-height: 1.5;
}

.download-result-legal a {
  color: #c084fc;
  text-decoration: none;
}

.download-result-legal a:hover {
  text-decoration: underline;
}

/* Sections */
section {
  padding: 96px 24px;
}

.section-dark {
  background-color: rgba(24, 24, 27, 0.2);
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

.container {
  max-width: 1152px;
  margin: 0 auto;
}
.container-xl {
  max-width: 1024px;
  margin: 0 auto;
}
.container-sm {
  max-width: 768px;
  margin: 0 auto;
}

.container-md {
  max-width: 896px;
  margin: 0 auto;
}

.stack-y-128 {
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.section-header {
  text-align: center;
  max-width: 672px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.section-title.section-title--loose-bottom {
  margin-bottom: 40px;
  justify-content: start;
}

.section-description {
  font-size: 18px;
  color: #a1a1aa;
  line-height: 1.75;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-cols-4 {
  grid-template-columns: repeat(1, 1fr);
}

.usecase-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Steps Cards - Photo Style */
.step-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #27272a;
  background-color: #000000;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s ease;
}

.step-card:hover {
  border-color: #3f3f46;
}

.step-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.7; */
  transition: all 0.5s ease;
}

.step-card:hover .step-photo {
  /* opacity: 0.85; */
  transform: scale(1.05);
}

.step-photo-gradient {
  position: absolute;
  /* inset: 0; */
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(63, 63, 70, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.step-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.step-content {
  position: relative;
  padding: 32px;
  z-index: 10;
}

.step-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title img {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.step-description {
  color: #d4d4d8;
  line-height: 1.75;
  font-size: 16px;
}

/* Feature Cards */
.feature-card {
  background-color: #000000;
  border: 1px solid #27272a;
  padding: 24px;
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.feature-card:hover {
  border-color: #3f3f46;
}

.feature-icon {
  position: relative;
  width: 40px;
  height: 40px;
  background-color: #18181b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid #27272a;
}

.feature-icon-img {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.3s ease;
}

.feature-icon-img--accent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.feature-card:hover .feature-icon-img--muted {
  opacity: 0;
}

.feature-card:hover .feature-icon-img--accent {
  opacity: 1;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.75;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  background-color: #000000;
  border: 1px solid #27272a;
  padding: 20px;
  border-radius: 24px;
}

.about-content {
  display: flex;
  flex-direction: column;
  /* gap: 24px; */
}

.about-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.about-title img {
  display: block;
  flex-shrink: 0;
}

.about-text {
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-text:last-child {
  margin-bottom: 0;
}
.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #27272a;
}

.about-image-overlay {
  position: absolute;
  /* inset: 0;
  background: linear-gradient(
    to top right,
    rgba(168, 85, 247, 0.2),
    rgba(34, 211, 238, 0.2)
  );
  mix-blend-mode: overlay; */
  z-index: 10;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid #3f3f46;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(to bottom right, #a855f7, #22d3ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-badge-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.about-badge-title {
  color: #ffffff;
  font-weight: 700;
}

.about-badge-subtitle {
  font-size: 12px;
  color: #d4d4d8;
}

/* Use Cases Cards */
.usecase-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #27272a;
  background-color: #000000;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.usecase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.6; */
  transition: all 0.5s ease;
}

.usecase-card:hover .usecase-image {
  /* opacity: 0.8; */
  transform: scale(1.05);
}

.usecase-gradient {
  position: absolute;
  /* inset: 0; */
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 17.28%,
    rgba(0, 0, 0, 0) 34.55%
  );
}

.usecase-content {
  position: relative;
  padding: 24px;
  z-index: 10;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 17.28%,
    rgba(0, 0, 0, 0) 84.55%
  );
}

.usecase-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.usecase-description {
  color: #d4d4d8;
  line-height: 1.75;
}

/* Supported Links Cards */
.supported-card {
  background-color: #000000;
  border: 1px solid #27272a;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.supported-card:hover {
  border-color: #3f3f46;
}

.supported-image-wrapper {
  height: 224px;
  position: relative;
  overflow: hidden;
}

.supported-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.8; */
  transition: transform 0.5s ease;
}

.supported-card:hover .supported-image {
  transform: scale(1.1);
}

.supported-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.supported-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #22d3ee;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.supported-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
}

.supported-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.supported-description {
  color: #a1a1aa;
  font-size: 14px;
}

.supported-note {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.supported-note p {
  font-size: 14px;
  color: #71717a;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(39, 39, 42, 0.5);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #000000;
  border: 1px solid #27272a;
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
}

.faq-question:hover {
  background-color: rgba(24, 24, 27, 0.5);
}

.faq-question-text {
  padding-right: 32px;
}

.faq-chevron {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-icon {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.3s ease;
}

.faq-icon--default {
  opacity: 1;
}

.faq-icon--active {
  opacity: 0;
}

.faq-item.active .faq-icon--default {
  opacity: 0;
}

.faq-item.active .faq-icon--active {
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 160px;
  opacity: 1;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: #a1a1aa;
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile — tighter line-height & vertical rhythm */
@media (max-width: 639px) {
  .hero-section {
    padding: 72px 20px 80px;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-input {
    font-size: 16px;
    padding: 14px 20px 14px 52px;
  }

  .hero-input-icon {
    left: 20px;
  }

  .hero-features {
    gap: 14px 20px;
    margin-top: 24px;
  }

  section {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 14px;
    gap: 10px;
    line-height: 1.2;
  }

  .section-title img {
    width: 26px;
    height: 26px;
  }

  .section-title.section-title--loose-bottom {
    margin-bottom: 28px;
  }

  .section-description {
    font-size: 16px;
    line-height: 1.58;
  }

  .stack-y-128 {
    gap: 72px;
  }

  .grid {
    gap: 20px;
  }

  .step-content {
    padding: 24px;
  }

  .step-title {
    font-size: 22px;
    margin-bottom: 8px;
    gap: 10px;
  }

  .step-title img {
    width: 24px;
    height: 24px;
  }

  .step-description {
    line-height: 1.58;
    font-size: 15px;
  }

  .feature-description {
    line-height: 1.58;
  }

  .about-title {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.25;
  }

  .about-text {
    font-size: 16px;
    line-height: 1.58;
    margin-bottom: 12px;
  }

  .usecase-title {
    font-size: 20px;
    line-height: 1.25;
  }

  .usecase-description {
    line-height: 1.55;
    font-size: 15px;
  }

  .supported-title {
    line-height: 1.3;
  }

  .supported-description {
    line-height: 1.55;
  }

  .faq-question {
    font-size: 16px;
    padding: 16px 18px;
    line-height: 1.4;
  }

  .faq-question-text {
    padding-right: 16px;
  }

  .faq-answer p {
    line-height: 1.55;
    font-size: 15px;
  }

  .placeholder-wrap p {
    font-size: 17px;
    line-height: 1.55;
  }

  .download-result-panel {
    padding: 22px 18px 18px;
  }

  .download-result-title {
    font-size: 19px;
  }

  .download-result-actions {
    flex-direction: column;
  }

  .download-result-btn {
    flex: 1 1 auto;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .hero-section {
    padding: 128px 24px;
  }

  .hero-title {
    font-size: 72px;
  }

  .hero-form {
    flex-direction: row;
  }

  .hero-button {
    width: auto;
  }
}

@media (min-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    padding: 48px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-br {
  display: none;
}

@media (min-width: 640px) {
  .hero-title-br {
    display: block;
  }
}

.placeholder-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.placeholder-wrap h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .placeholder-wrap h1 {
    font-size: 48px;
  }
}

.placeholder-wrap p {
  font-size: 20px;
  color: #a1a1aa;
  max-width: 768px;
  line-height: 1.75;
}

.placeholder-wrap-back {
  margin-top: 16px;
}

.placeholder-wrap a {
  color: #c084fc;
  text-decoration: none;
}

.placeholder-wrap a:hover {
  text-decoration: underline;
}
