*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
}

/* Top nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: -2px;
  position: relative;
  top: -5px;
}

.logo-text {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.logo-highlight {
  font-weight: 700;
  color: #f97316;
}


.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: #111827;
  opacity: 0.75;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  padding: 9px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  text-decoration: none;
}

.btn-dark,
.btn-primary {
  background: #020617;
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.btn-dark:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.btn-dark.pressed,
.btn-primary.pressed {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.02);
}

.btn-light {
  background: #f9fafb;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-light:hover {
  background: #e5e7eb;
}

/* Pages (SPA) */

.page {
  display: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.page.active {
  display: block;
  opacity: 1;
}

/* Hero */

.hero {
  padding: 48px 24px 40px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px; /* space between text and visuals */
}

.hero-text h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-weight: 400;
}

.hero-text p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 24px;
  color: #555;
}

.hero-actions {
  display: inline-flex;
  gap: 12px;
}

/* Hero visuals */

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Left gradient panel + card */

.hero-panel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #0b1020;
  min-height: 260px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.45);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9 35%, #f97316 80%);
  opacity: 0.96;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-card {
  position: absolute;
  inset: auto 20px 20px 20px;
  background: #f9fafb;
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.06);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Typewriter */

.typewriter-container {
  margin-top: 12px;
}

.typewriter-input {
  font-size: 13px;
  color: #374151;
  min-height: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.cursor {
  animation: blink 1s step-end infinite;
  color: #f97316;
  font-weight: 300;
}

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

.typewriter-response {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-top: 12px;
  line-height: 1.5;
  min-height: 36px;
  padding: 10px 12px;
  background: rgba(249, 115, 22, 0.08);
  border-left: 3px solid #f97316;
  border-radius: 0 8px 8px 0;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #0f172a;
  color: #f9fafb;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.hero-card-body {
  font-size: 11px;
}

.hero-card-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
}

.hero-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.badge-soft-green {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.badge-soft-blue {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.badge-soft-amber {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.18);
  color: #c05621;
}

.hero-card-prompt {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
}

.prompt-label {
  font-size: 11px;
  color: #9ca3af;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.prompt-text {
  font-size: 12px;
  margin: 0;
  color: #374151;
}

.prompt-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: white;
  cursor: pointer;
}

/* Right photo placeholder */

.hero-photo {
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(15, 23, 42, 0.02) 20px,
      rgba(15, 23, 42, 0.02) 40px
    ),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #fef3c7 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-photo-inner {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
}

.hero-photo-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Logos */

.logos {
  padding: 32px 24px 24px;
  text-align: center;
}

.logos-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 16px;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 200ms ease, filter 200ms ease;
}

.logo-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-img-small {
  height: 20px;
  opacity: 0.5;
}

/* Features */

.features {
  padding: 40px 24px 80px;
}

.features-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.features-inner > h2 {
  font-size: 24px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.feature-item {
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.feature-item svg {
  margin-bottom: 16px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-item p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

.feature-link {
  font-size: 13px;
  text-decoration: none;
  color: #111827;
}

/* Responsiveness */

@media (max-width: 960px) {
  .hero {
    padding-top: 72px;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    padding-inline: 16px;
  }

  .hero-text {
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
