/* Website UI Kit — extends colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup img { width: 36px; height: 36px; object-fit: contain; }
.brand-lockup .name { font-weight: 800; font-size: 18px; color: var(--pn-purple-900); letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color var(--duration-base) var(--ease-out); }
.nav-links a:hover { color: var(--pn-purple-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.btn-primary { background: var(--pn-purple-500); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--pn-purple-600); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--pn-purple-700); transform: translateY(1px); box-shadow: var(--shadow-xs); }
.btn-secondary { background: var(--bg-1); color: var(--pn-purple-900); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--pn-purple-700); }
.btn-ghost:hover { background: var(--pn-purple-50); }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-on-dark { background: white; color: var(--pn-purple-900); }
.btn-on-dark:hover { background: var(--pn-purple-50); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--pn-purple-50); }
.section-ink { background: var(--pn-purple-900); color: white; }
.section-ink .eyebrow { color: var(--pn-purple-300); }
.section-ink .lede { color: rgba(255,255,255,0.78); }

.eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pn-purple-700);
  margin: 0 0 16px;
}

h1.headline {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
h2.section-title {
  font-size: clamp(1.875rem, 2vw + 1rem, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 75% 35%, rgba(166,109,206,0.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  position: relative;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-art .ring {
  position: absolute; width: 420px; height: 420px;
  border-radius: 50%; background: var(--pn-purple-100);
  filter: blur(0.5px);
}
.hero-art img { position: relative; width: 100%; max-width: 460px; }

.trustbar {
  display: flex; gap: 36px; align-items: center;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  color: var(--fg-3); font-size: 13px; font-weight: 500;
}
.trustbar .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--fg-4); }
.trustbar-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); font-weight: 600; }

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-card .icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--pn-purple-100);
  color: var(--pn-purple-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--fg-1); }
.feature-card p  { font-size: 14px; line-height: 1.6; margin: 0; color: var(--fg-2); }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 22px 22px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--pn-purple-500);
  margin-bottom: 12px;
}
.step-card h4 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.step-card p  { font-size: 13px; line-height: 1.55; margin: 0; color: var(--fg-2); }

/* ---------- Case study ---------- */
.case-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.case-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-1);
  background: var(--bg-1);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case-card .preview {
  height: 240px;
  background: linear-gradient(135deg, var(--pn-purple-200), var(--pn-purple-400));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.case-card.alt .preview { background: linear-gradient(135deg, var(--pn-purple-700), var(--pn-purple-900)); }
.case-card .body { padding: 24px 26px; }
.case-card .tags { display: flex; gap: 6px; margin-bottom: 12px; }
.case-card h3 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.case-card p  { font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.55; }

.tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--pn-purple-100); color: var(--pn-purple-800);
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 820px; margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.875rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 24px;
  text-wrap: balance;
}
.testimonial .author {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--pn-purple-300);
  color: white;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial .meta { text-align: left; }
.testimonial .meta .name { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.testimonial .meta .role { font-size: 13px; color: var(--fg-3); }

/* ---------- CTA Block ---------- */
.cta-block {
  border-radius: var(--radius-2xl);
  background: var(--pn-purple-900);
  color: white;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 80% 20%, rgba(166,109,206,0.35), transparent 60%);
  pointer-events: none;
}
.cta-block h2 {
  font-size: clamp(1.875rem, 2vw + 1rem, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 16px;
  position: relative;
}
.cta-block p { font-size: 17px; color: rgba(255,255,255,0.78); margin: 0 0 28px; position: relative; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-block .row { position: relative; display: inline-flex; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-1);
  background: var(--bg-1);
  font-size: 14px;
  color: var(--fg-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 40px;
}
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--fg-2); transition: color var(--duration-base) var(--ease-out); }
.footer ul a:hover { color: var(--pn-purple-700); }
.footer .bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border-1); font-size: 13px; color: var(--fg-3); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(39, 0, 67, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-1);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 520px;
  padding: 36px;
  box-shadow: var(--shadow-xl);
  transform: translateY(8px);
  transition: transform var(--duration-slow) var(--ease-out);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.modal p  { margin: 0 0 24px; color: var(--fg-2); }
.modal .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal label { font-size: 12px; font-weight: 600; color: var(--fg-2); }
.modal input, .modal textarea, .modal select {
  font-family: var(--font-sans); font-size: 14px;
  padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--bg-1); color: var(--fg-1);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.modal textarea { min-height: 96px; resize: vertical; font-family: inherit; }
.modal input:focus, .modal textarea:focus, .modal select:focus {
  outline: none;
  border-color: var(--pn-purple-500);
  box-shadow: 0 0 0 3px rgba(166,109,206,0.20);
}
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .check {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--pn-success-bg); color: var(--pn-success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
