:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #14182a;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.16);
  --accent-strong: #6366f1;
  --accent-2: #14b8a6;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --radius-lg: 18px;
  --radius-full: 999px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #111827 0, #020617 42%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  font-size: 0.92rem;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--text-soft);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.8);
  transform: translateY(-1px);
}

.main-nav a.active {
  color: var(--text);
  border-color: var(--accent-2);
}

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.11) 0, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.18) 0, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.1) 0, transparent 55%);
  pointer-events: none;
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  align-content: start;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #22c55e);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(79, 70, 229, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
  transform: translateY(-1px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags span {
  font-size: 0.78rem;
  color: var(--text-soft);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.8) 0, rgba(15, 23, 42, 0.95) 40%, #020617 100%);
  backdrop-filter: blur(10px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.code-card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16) 0, rgba(15, 23, 42, 0.99) 38%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.red {
  background: #f97373;
}

.dot.yellow {
  background: #facc15;
}

.dot.green {
  background: #22c55e;
}

.code-title {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.code-card-body {
  padding: 0.95rem 1.1rem 1.05rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.code-card-body p {
  margin: 0.08rem 0;
}

.code-comment {
  color: #6b7280;
}

.code-key {
  color: #e5e7eb;
}

.code-string {
  color: #22c55e;
}

.code-ok {
  color: #22c55e;
}

.code-number {
  color: #38bdf8;
}

.hero-highlight {
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(45, 212, 191, 0.6);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.96);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-highlight strong {
  color: #e5e7eb;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top center, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header.left {
  text-align: left;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.section-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 32rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  flex: 1;
}

.card li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #22c55e);
}

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}

.pill-cloud {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.5);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 55%),
    rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.workflow-steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.98));
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.sample-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.7);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.5);
}

.sample-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.sample-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.sample-card li {
  padding-left: 0.95rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.sample-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(226, 232, 240, 0.9);
}

.sample-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-intro {
  min-width: 0;
}

.contact-info {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.contact-info a {
  color: var(--accent-strong);
}

.contact-card {
  background: radial-gradient(circle at top left, rgba(8, 47, 73, 0.5), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin: 0;
}

.contact-card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-email {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5, #6366f1, #22c55e);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.contact-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(79, 70, 229, 0.72);
  filter: saturate(1.1);
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.7);
  background: rgba(15, 23, 42, 1);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.privacy-hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0 0 0.9rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top center, rgba(15, 23, 42, 0.98), #020617);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 1.3rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-inner a {
  color: var(--text-soft);
}

.footer-inner a:hover {
  color: var(--accent-strong);
}

.legal-body {
  background: radial-gradient(circle at top left, #020617 0, #020617 42%, #000 100%);
}

.legal-main {
  padding: 3rem 0 3.5rem;
}

.legal-container {
  max-width: 720px;
}

.legal-container h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.legal-intro {
  margin: 0 0 1.5rem !important;
  font-size: 0.9rem !important;
  color: var(--text-soft);
}

.legal-section {
  margin-bottom: 1.6rem;
}

.legal-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.legal-section p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.legal-section a {
  color: var(--accent-strong);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-panel {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid,
  .workflow-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-grid {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.65rem 0;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.5rem 0 3rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

