/* ktismalab — standalone landing page styles.
   Hand-written CSS (no Tailwind build). Mirrors the React landing design. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}
.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #ffffff;
  color: #1f2937;
  border-color: #d1d5db;
}
.btn-secondary:hover {
  background: #f9fafb;
}

.btn-ghost {
  background: transparent;
  color: #1f2937;
}
.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-white {
  background: #ffffff;
  color: #1d4ed8;
}
.btn-white:hover {
  background: #eff6ff;
}

.btn-ghost-light {
  background: transparent;
  color: #ffffff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}
@media (min-width: 640px) {
  .btn-auto {
    width: auto;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom-color: #e5e7eb;
}
.nav-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .nav-actions {
    gap: 0.75rem;
  }
}
.lang-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  padding: 0.4rem 0.5rem;
  border-radius: 0.375rem;
}
.lang-link:hover {
  color: #111827;
  background: #f3f4f6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}
@media (min-width: 640px) {
  .hero {
    padding-top: 9rem;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom right, #eff6ff, #ffffff, #eef2ff);
  background-size: 200% 200%;
  animation: gradient-pan 12s ease infinite;
}
.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-copy {
  text-align: center;
}
@media (min-width: 1024px) {
  .hero-copy {
    text-align: left;
  }
}
.eyebrow-pill {
  display: inline-block;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.hero-title {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}
.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  color: #4b5563;
}
@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
  }
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .hero-cta {
    justify-content: flex-start;
  }
}
.hero-media {
  position: relative;
}
.hero-frame {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  outline: 1px solid rgba(0, 0, 0, 0.05);
  animation: float 6s ease-in-out infinite;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-blob {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  z-index: -1;
  height: 10rem;
  width: 10rem;
  border-radius: 9999px;
  background: rgba(191, 219, 254, 0.5);
  filter: blur(40px);
}

/* ---------- Section shells ---------- */
.section {
  padding: 5rem 0;
}
@media (min-width: 640px) {
  .section {
    padding: 7rem 0;
  }
}
.section-gray {
  background: #f9fafb;
}
.section-white {
  background: #ffffff;
}
.section-head {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
}
.section-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}
.section-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #4b5563;
}

/* ---------- How it works ---------- */
.steps {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.step-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.step-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.25rem;
}
.step-num {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
}
.step-title {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}
.step-body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature {
  display: flex;
  gap: 0.75rem;
}
.feature-icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
}
.feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.feature-body {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: #4b5563;
}
.feature-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature-media img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.feature-media .wide {
  grid-column: span 2;
  height: 14rem;
}
.feature-media .tall {
  height: 10rem;
}

/* ---------- Testimonials ---------- */
.tst-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .tst-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tst-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.stars {
  color: #fbbf24;
}
.tst-quote {
  margin-top: 0.75rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}
.tst-foot {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tst-foot img {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
}
.tst-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.tst-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ---------- CTA ---------- */
.cta-section {
  background: #f9fafb;
  padding: 5rem 1rem;
}
@media (min-width: 640px) {
  .cta-section {
    padding: 7rem 1.5rem;
  }
}
.cta-wrap {
  max-width: 64rem;
  margin: 0 auto;
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}
.cta-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 138, 0.7);
}
.cta-inner {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .cta-inner {
    padding: 4rem 3rem;
  }
}
.cta-title {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}
@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}
.cta-sub {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  color: #dbeafe;
}
.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.footer-links a:hover {
  color: #111827;
}
.footer-copy {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame,
  .hero-bg {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
