/* ============================================
   LexiConn Content — Design System v2
   Design-taste principles applied:
   - DESIGN_VARIANCE: 8 (asymmetric, editorial)
   - MOTION_INTENSITY: 6 (fluid CSS transitions)
   - VISUAL_DENSITY: 4 (art gallery, generous space)
   ============================================ */

:root {
  --ink: #18181b;        /* zinc-950, never pure black */
  --ink-soft: #27272a;   /* zinc-800 */
  --text: #3f3f46;       /* zinc-700 */
  --text-muted: #71717a; /* zinc-500 */
  --text-soft: #a1a1aa;  /* zinc-400 */
  --cream: #fafaf9;      /* stone-50 */
  --cream-dark: #f5f5f4; /* stone-100 */
  --white: #fefefe;
  --red: #a73e4a;
  --red-dark: #8d3039;
  --red-light: #c85660;
  --border: #e4e4e7;     /* zinc-200 */
  --border-dark: #3f3f46;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color .2s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover { color: var(--red-dark); }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--red); color: var(--white); }

/* Container */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ============================================
   Fade-in animations (staggered on load)
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero h1, .hero .eyebrow, .hero .lede, .hero-ctas {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.1s; }
.hero .lede { animation-delay: 0.2s; }
.hero-ctas { animation-delay: 0.3s; }

.section-eyebrow, .section-heading, .section-intro {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trust-strip {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky; top: 0;
  background: rgba(254,254,254,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 18px 0;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  line-height: 1;
  transition: opacity .2s;
}
.logo:hover { opacity: 0.7; text-decoration: none; color: var(--ink); }

.logo img { height: 56px; width: auto; }

.logo span { color: var(--red); }

.nav-main { display: flex; align-items: center; gap: 36px; }
.nav-main a:not(.btn) {
  color: var(--text); font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  transition: color .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-main a:not(.btn):hover { color: var(--red); text-decoration: none; }
.nav-main a:not(.btn)::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-main a:not(.btn):hover::after { width: 100%; }

/* ============================================
   Buttons (with tactile feedback)
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 15px;
  line-height: 1; letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer; border: none;
  white-space: nowrap;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: 0 8px 24px rgba(167,62,74,0.2); }

.btn-secondary { background: var(--ink); color: var(--white); }
.btn-secondary:hover { background: #000; color: var(--white); box-shadow: 0 8px 24px rgba(24,24,27,0.15); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-ghost-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-large { padding: 18px 36px; font-size: 16px; }

/* ============================================
   Hero (asymmetric, left-aligned on desktop)
   ============================================ */
.hero {
  padding: 120px 0 100px;
  background: var(--ink);
  color: var(--white);
  position: relative; overflow: hidden;
}

.hero .eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-light); margin-bottom: 36px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--red-light);
}

.hero .lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55; color: #a1a1aa;
  max-width: 56ch; margin: 0 0 48px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero variants */
.hero-light { background: var(--cream); color: var(--ink); }
.hero-light .eyebrow { color: var(--red); }
.hero-light .lede { color: var(--text-muted); }
.hero-light h1 em { color: var(--red); }

.hero-compact { padding: 100px 0 80px; }
.hero-compact h1 { font-size: clamp(32px, 5vw, 72px); }

/* ============================================
   Section patterns
   ============================================ */
section { padding: 100px 0; }

.section-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}

.section-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 22ch;
}

.section-intro {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65; color: var(--text-muted);
  max-width: 58ch;
}

.section-header { margin-bottom: 72px; }
.section-header.centered { text-align: center; margin-inline: auto; }
.section-header.centered .section-heading { margin-inline: auto; }
.section-header.centered .section-intro { margin-inline: auto; }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-intro { color: var(--text-soft); }

.section-cream { background: var(--cream); }

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  padding: 56px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 36px;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 48px;
  align-items: center;
  justify-items: center;
}
.trust-logos img {
  transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), filter .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.trust-logos img:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
}
.trust-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 18px;
  color: var(--text-muted); letter-spacing: -0.01em;
}

/* ============================================
   Editorial content grids (asymmetric)
   ============================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}

.editorial-grid.wide { grid-template-columns: 1fr 1.6fr; }

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }

/* ANTI-PATTERN: no 3-equal-column layouts. Use 2fr 1fr 1fr or zig-zag */
.three-col { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }

.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ============================================
   Cards (reduced usage, spacing > boxing)
   ============================================ */
.card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(167,62,74,0.06);
}

.card-dark {
  background: var(--ink-soft);
  border-color: var(--border-dark);
  color: var(--white);
}
.card-dark:hover {
  border-color: var(--red);
  box-shadow: 0 16px 48px rgba(167,62,74,0.1);
}

.card-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px; font-weight: 300;
  line-height: 1; color: var(--red);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.card p {
  font-size: 15px; line-height: 1.65;
  color: var(--text-muted); margin: 0;
}

.card-dark p { color: var(--text-soft); }

/* ============================================
   Service items (divider-based, no cards)
   ============================================ */
.service-item {
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.service-item:hover { padding-left: 16px; }
.service-item-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 40px; align-items: start;
}
.service-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 42px; font-weight: 300;
  line-height: 1; color: var(--red);
  letter-spacing: -0.02em;
}
.service-item h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.service-item p {
  font-size: 16px; color: var(--text-soft);
  line-height: 1.65; margin: 0;
}

/* ============================================
   Pull quote / founder
   ============================================ */
.pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300; line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 40px;
}

.attribution {
  display: flex; align-items: center; gap: 20px;
  font-size: 15px;
}
.attribution .name { font-weight: 700; color: var(--ink); }
.attribution .title { color: var(--text-muted); }

/* ============================================
   Case study cards (divider-based)
   ============================================ */
.case-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card:first-child { border-top: 1px solid var(--border); }
.case-card:hover { padding-left: 12px; }
.case-meta {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.case-meta .industry { display: block; color: var(--text-soft); margin-top: 8px; font-weight: 500; }
.case-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px; font-weight: 400;
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.case-metrics {
  display: flex; gap: 48px; margin-top: 32px;
  border-top: 1px solid var(--border); padding-top: 24px;
}
.case-metric { flex: 1; }
.metric-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px; font-weight: 300;
  line-height: 1; color: var(--red);
  display: block; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-tier {
  padding: 48px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; flex-direction: column;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-tier:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.pricing-tier.featured {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(24,24,27,0.15);
}
.pricing-tier.featured:hover { transform: translateY(-12px); box-shadow: 0 32px 80px rgba(24,24,27,0.2); }
.pricing-tier.featured .tier-name { color: var(--red-light); }
.pricing-tier.featured .tier-description { color: var(--text-soft); }
.pricing-tier.featured .tier-features li { color: #d4d4d8; }
.pricing-tier.featured .tier-features li::before { color: var(--red-light); }
.tier-name {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.tier-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px; font-weight: 300;
  line-height: 1; margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.tier-price span { font-size: 16px; color: var(--text-muted); font-family: 'Outfit', sans-serif; }
.tier-description {
  font-size: 15px; color: var(--text-muted);
  margin: 0 0 32px;
}
.tier-features {
  list-style: none; padding: 0; margin: 0 0 32px;
  flex: 1;
}
.tier-features li {
  font-size: 15px; color: var(--text);
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tier-features li::before {
  content: "~"; position: absolute; left: 0; top: 12px;
  color: var(--red); font-weight: 400;
  font-family: 'Fraunces', Georgia, serif;
}
.pricing-tier.featured .tier-features li { border-color: var(--border-dark); }

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover { padding-left: 8px; }
.faq-item h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 400;
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.faq-item p { font-size: 16px; color: var(--text-muted); margin: 0; }

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167,62,74,0.08);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ============================================
   CTA sections
   ============================================ */
.cta-section {
  padding: 120px 0;
  background: var(--ink); color: var(--white);
  text-align: center;
}
.cta-section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  max-width: 20ch;
}
.cta-section p {
  font-size: 18px; color: var(--text-soft);
  max-width: 52ch; margin: 0 auto 40px;
}
.cta-section .hero-ctas { justify-content: center; }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--ink); color: var(--text-soft);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer-brand p { font-size: 15px; color: #71717a; max-width: 42ch; margin-top: 24px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #71717a; font-size: 15px;
  transition: color .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-soft);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .india-link a { color: var(--red-light); }

/* ============================================
   Utility
   ============================================ */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 48px; }
.mb-4 { margin-bottom: 48px; }
.text-center { text-align: center; }

.label-row {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}

.byline-row {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  font-size: 14px;
}
.byline-row .author { font-weight: 700; color: var(--ink); }
.byline-row .date { color: var(--text-muted); }
.byline-row .read-time { color: var(--text-muted); margin-left: auto; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .trust-logos { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-grid.wide { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; gap: 24px; }
  .four-col { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-tier.featured { transform: none; }
  .pricing-tier.featured:hover { transform: translateY(-4px); }
  .case-card { grid-template-columns: 1fr; gap: 20px; }
  .service-item-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-item:hover { padding-left: 0; }
  .case-card:hover { padding-left: 0; }
  .faq-item:hover { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 20px; }
  .site-header { padding: 14px 0; }
  .logo img { height: 44px; }
  .nav-main { gap: 20px; }
  .nav-main a:not(.btn) { display: none; }
  .hero { padding: 72px 0 56px; }
  .hero-compact { padding: 56px 0 44px; }
  .hero .eyebrow { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 24px; }
  .hero .lede { margin-bottom: 32px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .two-col, .four-col { grid-template-columns: 1fr; gap: 24px; }
  .case-metrics { flex-direction: column; gap: 20px; }
  .case-metrics .case-metric { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .case-metrics .case-metric:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; justify-content: center; }
  .cta-section { padding: 72px 0; }
  .trust-strip { padding: 36px 0; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
