:root {
  --cream-50: #faf8f2;
  --cream-100: #f2efe5;
  --cream-200: #eae7dc;
  --cream-300: #dad5c7;

  --ink-900: #1a1f1b;
  --ink-700: #3a433c;
  --ink-500: #5f6a60;
  --ink-400: #8c948d;

  --line: #e3dfd3;

  --accent: #145a32;
  --accent-hover: #0d4526;
  --accent-soft: #e3f1e8;

  --gold: #b8902e;
  --gold-soft: #f7f0de;

  --saffron: #e07a1f;
  --saffron-soft: #fdf1e3;

  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1rem;

  --shadow-soft: 0 1px 2px rgba(15, 15, 15, 0.04), 0 1px 3px rgba(15, 15, 15, 0.06);
  --shadow-pop: 0 4px 16px rgba(15, 15, 15, 0.06), 0 2px 6px rgba(15, 15, 15, 0.04);
  --shadow-lift: 0 12px 32px rgba(15, 15, 15, 0.08), 0 4px 10px rgba(15, 15, 15, 0.05);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 6.75rem;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header / nav ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(115deg, rgba(6, 31, 21, 0.97) 0%, rgba(13, 58, 38, 0.97) 55%, rgba(20, 90, 50, 0.97) 100%);
  box-shadow: var(--shadow-pop);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  height: 4.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink-900);
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.feature-icon img,
.mock-chat img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.mock-chat img {
  width: 1rem;
  height: 1rem;
}

.brand-biz {
  color: var(--ink-900);
}

.brand-grace {
  color: var(--accent);
  margin-left: 0.15em;
}

.brand-tagline {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.brand-tagline .dot {
  color: var(--gold);
  margin: 0 0.35em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
  transition: background-color 120ms ease, transform 120ms ease;
}

.nav-cta:hover {
  background: var(--cream-100);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--saffron-soft);
  color: var(--saffron);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink-900);
}

.hero .lede {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  color: var(--ink-500);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Hero visual (product mock) ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.mock-card {
  width: 100%;
  max-width: 25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem;
  transform: rotate(-1deg);
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-900);
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.mock-date {
  font-weight: 500;
  color: var(--ink-400);
  font-size: 0.8125rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
}

.mock-row + .mock-row {
  border-top: 1px solid var(--cream-200);
}

.mock-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.mock-row-text strong {
  font-size: 0.875rem;
  color: var(--ink-900);
}

.mock-row-text span {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.mock-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}

.mock-badge-done {
  background: var(--accent-soft);
  color: var(--accent);
}

.mock-badge-upcoming {
  background: var(--gold-soft);
  color: var(--gold);
}

.mock-chat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- How it works ---------- */

.how-it-works {
  padding-top: 1rem;
}

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

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink-900) !important;
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--cream-300);
  background: var(--cream-100);
}

/* ---------- Sections / features ---------- */

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-heading {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.section-heading p {
  color: var(--ink-500);
  margin: 0;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--ink-900);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-500);
}

.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  color: #fff;
}

.cta-band p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent) !important;
}

.cta-band .btn-primary:hover {
  background: var(--cream-100);
}

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-header {
  margin-bottom: 2.5rem;
}

.legal-badge {
  display: inline-block;
  background: var(--cream-200);
  color: var(--ink-500);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.legal-badge.pending {
  background: var(--saffron-soft);
  color: var(--saffron);
}

.legal-header h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-updated {
  color: var(--ink-400);
  font-size: 0.875rem;
  margin: 0;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

.legal-card h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
  color: var(--ink-900);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 0.5rem;
  color: var(--ink-700);
  text-align: justify;
}

.legal-card p + h2 {
  margin-top: 2rem;
}

.legal-card h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink-900);
}

.legal-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--ink-700);
}

.legal-card li {
  margin: 0 0 0.35rem;
}

.legal-card address {
  font-style: normal;
  color: var(--ink-700);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

/* ---------- Generic content wrapper (fallback) ---------- */

main:not(.legal-main) {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: var(--ink-900);
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 60ch;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--cream-100);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(14rem, 24rem) 1fr;
  gap: 2rem;
}

.footer-brand {
  max-width: 24rem;
}

.footer-brand .brand {
  gap: 0.625rem;
  font-size: 1.375rem;
  margin-bottom: 0.85rem;
}

.footer-brand .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-brand .brand-word {
  line-height: 1;
}

.footer-brand p:not(.brand-tagline) {
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

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

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-400);
  margin: 0 0 0.875rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  color: var(--ink-700);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col address {
  font-style: normal;
  color: var(--ink-500);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.625rem;
}

.footer-col .gstin {
  color: var(--ink-500);
  font-size: 0.8125rem;
  margin: 0;
}

.footer-col .gstin span {
  font-weight: 600;
  color: var(--ink-700);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--ink-400);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact a {
  color: var(--ink-500);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact .sep {
  color: var(--line);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
  }

  .hero-copy {
    max-width: 40rem;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .mock-card {
    transform: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(7rem, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-top: 4.5rem;
  }

  .nav {
    padding: 0.5rem 1rem;
  }

  /* Secondary nav links move to the footer at this width; keep only
     brand + primary CTA so the header never forces horizontal scroll. */
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    height: 3rem;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
