/* LekhaSutra marketing — teal brand, vision-led composition */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&display=swap');

:root {
  --ink: #0c1929;
  --ink-soft: #2c3e52;
  --muted: #5a6f86;
  --paper: #f3f7f6;
  --surface: #ffffff;
  --line: #d5e0df;
  --teal: #0d9488;
  --teal-deep: #0b7a71;
  --teal-bright: #14b8a6;
  --teal-mist: #e6f7f5;
  --navy: #16324f;
  --navy-deep: #0a1a2e;
  --sand: #e8efe8;
  --radius: 16px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(13, 148, 136, 0.09), transparent 45%),
    radial-gradient(ellipse 90% 60% at -10% 40%, rgba(22, 50, 79, 0.05), transparent 40%),
    var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.shell {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.shell-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  background:
    linear-gradient(145deg, var(--teal-bright) 0%, var(--teal) 48%, var(--navy) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 6px 16px rgba(13, 148, 136, 0.28);
}

.brand-name {
  font-size: 1.38rem;
  font-weight: 650;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.2rem 1.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link[aria-current='page'] { color: var(--teal-deep); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.65rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.8rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover { background: var(--teal-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-secondary {
  background: var(--surface);
  color: var(--teal-deep);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.btn-lg {
  min-height: 3.15rem;
  padding-inline: 1.55rem;
  font-size: 1.05rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 82% 18%, rgba(20, 184, 166, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 75%, rgba(13, 148, 136, 0.5), transparent 50%),
    radial-gradient(ellipse 40% 35% at 55% 90%, rgba(132, 204, 22, 0.12), transparent 45%),
    linear-gradient(158deg, #041c1a 0%, #0a4a44 38%, #0d7480 68%, #1a3558 100%);
  transform: scale(1.05);
  opacity: 0.9;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
}

.hero-plane.hero-ready {
  transform: scale(1);
  opacity: 1;
}

.hero-plane::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 78%);
  animation: gridDrift 32s linear infinite;
}

.hero-plane::after {
  content: '';
  position: absolute;
  width: 55%;
  height: 70%;
  right: -5%;
  top: 10%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08), transparent 60%),
    conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(20, 184, 166, 0.15) 80deg, transparent 160deg);
  filter: blur(2px);
  animation: floatGlow 12s ease-in-out infinite alternate;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 28px, 28px 56px; }
}

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-3%, 4%) scale(1.05); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  max-width: 40rem;
}

.hero .brand-name {
  display: block;
  color: #fff;
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700;
  margin: 0 0 1.15rem;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 500;
  margin: 0 0 1rem;
  max-width: 26ch;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin: 0 0 1.9rem;
  max-width: 38ch;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-cta .btn-primary {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-primary:hover { background: var(--teal-mist); }

.hero-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
section { padding: 5.5rem 0; }

.section-kicker {
  color: var(--teal-deep);
  font-weight: 650;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.section-title {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  margin: 0 0 0.85rem;
  max-width: 20ch;
}

.section-title.wide { max-width: 28ch; }

.section-copy {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.08rem;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band-deep {
  background:
    linear-gradient(165deg, var(--navy-deep) 0%, #0d3d3a 55%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.88);
  border: 0;
}

.band-deep .section-kicker { color: var(--teal-bright); }
.band-deep .section-title,
.band-deep h3 { color: #fff; }
.band-deep .section-copy { color: rgba(255, 255, 255, 0.72); }

.band-mist {
  background:
    linear-gradient(180deg, var(--teal-mist) 0%, color-mix(in srgb, var(--paper) 70%, #fff) 100%);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.stack > * + * { margin-top: 1rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--teal);
}

.band-deep .feature-list li::before { background: var(--teal-bright); }

/* Architecture layers */
.arch {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.arch-layer {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, background 0.35s ease;
}

.arch-layer:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.1);
}

.arch-layer .tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-bright);
}

.arch-layer strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.arch-layer span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.arch-layer.kernel {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.28), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15);
}

/* Faces */
.faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.face {
  padding: 0.25rem 0;
  border-top: 3px solid var(--teal);
}

.face h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
}

.face p {
  margin: 0;
  color: var(--muted);
}

.face .who {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 0.15rem;
}

/* Pillars / feature grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.25rem;
  margin-top: 2.75rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 2.75rem;
}

.feature-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
}

.feature-block p {
  margin: 0;
  color: var(--muted);
}

/* Quote / principle */
.principle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: var(--ink);
  line-height: 1.35;
  max-width: 28ch;
}

.principle cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

/* Compare */
.compare-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.95rem;
}

table.compare th,
table.compare td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th {
  background: color-mix(in srgb, var(--teal-mist) 75%, #fff);
  color: var(--ink);
  font-weight: 650;
}

table.compare tbody tr:last-child td { border-bottom: 0; }

.yes { color: var(--teal-deep); font-weight: 650; }
.partial { color: var(--navy); font-weight: 600; }
.no { color: var(--muted); }

/* Pricing */
.price-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.price-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.75rem;
}

.price-option.featured {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  background: linear-gradient(160deg, #fff 0%, var(--teal-mist) 100%);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
}

.price-option h3 { margin: 0 0 0.35rem; }

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  margin: 0.6rem 0 0.2rem;
  line-height: 1;
}

.price-amount small {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 500;
}

.price-option p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.price-option .btn { width: 100%; }

.price-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.price-points li::before {
  content: '·';
  color: var(--teal);
  font-weight: 700;
  margin-right: 0.45rem;
}

/* Contact */
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.65rem;
}

.contact-panel label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.contact-panel input,
.contact-panel textarea,
.contact-panel select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
  background: #fff;
}

.contact-panel textarea { min-height: 8rem; resize: vertical; }

.note { color: var(--muted); font-size: 0.92rem; }

.page-hero { padding: 4.75rem 0 1.5rem; }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  margin: 0 0 0.85rem;
}

/* CTA */
.cta-strip {
  background: linear-gradient(125deg, var(--navy-deep), var(--teal-deep) 55%, #0a5c56);
  color: #fff;
  padding: 4rem 0;
}

.cta-strip h2 {
  color: #fff;
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-strip p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: none;
}

.cta-strip .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 250, 252, 0.78);
  padding: 3.75rem 0 2rem;
  margin-top: 0;
}

.site-footer .brand-name { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.9rem 0 0;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.site-footer a {
  display: block;
  color: rgba(248, 250, 252, 0.72);
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.site-footer a:hover { color: #fff; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .shell-nav { grid-template-columns: auto auto; }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav,
  .nav-actions { display: none; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 1 / -1;
    padding: 0.5rem 0 0.75rem;
  }

  .shell-nav:has(.site-nav.open) .nav-actions,
  .nav-actions.open {
    display: flex;
    grid-column: 1 / -1;
    padding-bottom: 1rem;
  }

  .split,
  .faces,
  .pillars,
  .grid-2,
  .price-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content { padding-top: 6.5rem; }
}
