/* Design tokens mirror UI/marketing in chanakya-app-design. */
:root {
  --bg: #f2f4f9;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --border: #e3e7f0;
  --text: #1b2233;
  --muted: #616b82;
  --faint: #97a0b5;
  --primary: #5468a6;
  --tint: #eceff8;
  --accent: #4e8c9e;
  --income: #3f9e86;
  --expense: #c56b62;
  --warning: #c6a24e;
  --on-primary: #ffffff;
  --grad1: #6274b4;
  --grad2: #3e4e86;
  --shadow: 0 8px 24px rgba(27, 34, 51, 0.1);
}

[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #171b24;
  --surface-alt: #1e2330;
  --border: #2a3040;
  --text: #e6e9f2;
  --muted: #8b93a8;
  --faint: #5d6579;
  --primary: #8a9bdc;
  --tint: #232a44;
  --accent: #6fb0c0;
  --income: #4fc0a0;
  --expense: #e58b82;
  --warning: #ddb968;
  --on-primary: #151824;
  --grad1: #4a5a9a;
  --grad2: #354477;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1248px, 100% - 3rem);
  margin: 0 auto;
}

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

.section {
  padding: 5rem 0;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand__mark {
  width: 34px;
  height: 30px;
}

.brand--sm .brand__mark {
  width: 30px;
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 0 3rem;
}

.site-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--faint);
  cursor: pointer;
  font-size: 1rem;
}

.theme-toggle:hover {
  color: var(--text);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: 1.4px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  border-color: var(--border);
  background: none;
  color: var(--text);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.pill--quiet {
  background: var(--surface-alt);
  color: var(--muted);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 4.5rem 0 5rem;
}

.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  margin: 1.5rem 0 1.25rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
}

.hero .note {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Abstracted product preview: the app's own dashboard, drawn in CSS. */
.preview {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview__url {
  margin: 0 auto;
  padding: 0.15rem 1.5rem;
  border-radius: 9px;
  background: var(--border);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.preview__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.preview__side {
  padding: 1rem 0.75rem;
  background: var(--surface-alt);
  font-size: 0.72rem;
}

.preview__side li {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--muted);
}

.preview__side li[aria-current="true"] {
  background: var(--tint);
  color: var(--text);
  font-weight: 700;
}

.preview__main {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.preview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.stat dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.stat--balance dd {
  color: var(--primary);
}

.stat--income dd {
  color: var(--income);
}

.stat--spent dd {
  color: var(--expense);
}

.preview__charts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.chart {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chart svg {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------- content */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card--quiet {
  background: var(--surface-alt);
  box-shadow: none;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 13px;
  background: var(--tint);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.card--expense .card__icon {
  color: var(--expense);
}

.card--accent .card__icon {
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.card__step {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
}

.feature {
  position: relative;
  padding: 1.6rem 1.75rem 1.75rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature + .feature {
  margin-top: 1.25rem;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.feature h3 {
  font-size: 1.2rem;
}

.feature p {
  margin: 0.5rem 0 1rem;
  max-width: 62rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack {
  margin-top: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.next {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.next::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--warning);
}

.next h3 {
  font-size: 1.03rem;
}

.next p {
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy {
  padding: 3rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--grad2), var(--grad1));
  color: #ffffff;
}

.privacy h2 {
  font-size: 1.75rem;
  font-weight: 800;
}

.privacy p {
  max-width: 48rem;
  margin: 1rem 0 2rem;
  color: #dde3f7;
}

.privacy .btn {
  background: #ffffff;
  color: var(--grad2);
}

.closing {
  padding: 5rem 0;
  text-align: center;
}

.closing h2 {
  font-size: 1.9rem;
  font-weight: 800;
}

.closing p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.closing .btn-row {
  justify-content: center;
}

.timeline {
  margin-top: 2rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 2.25rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 7px;
  width: 2px;
  height: calc(100% - 1.75rem);
  background: var(--border);
}

.timeline h3 {
  font-size: 1.05rem;
}

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

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.owner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
}

.avatar--lg {
  width: 116px;
  height: 116px;
  font-size: 2.1rem;
}

img.avatar {
  object-fit: cover;
  object-position: center top;
}

/* -------------------------------------------------------------------- bio */

.bio-header > .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}

.bio-header h1 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 800;
}

.bio-header .role {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2.5rem;
  align-items: start;
}

.resume h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resume section + section {
  margin-top: 2.5rem;
}

.entry {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.entry + .entry {
  margin-top: 1rem;
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.entry h3 {
  font-size: 1.08rem;
}

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

.entry ul {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry ul li {
  padding-left: 1.1rem;
  text-indent: -1.1rem;
}

.entry ul li::before {
  content: "· ";
  color: var(--faint);
}

.placeholder {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.skill-group {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.skill-group + .skill-group {
  margin-top: 1rem;
}

.skill-group dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.aside {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 1.25rem;
}

.aside__card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.aside h2 {
  margin-bottom: 0.9rem;
  font-size: 1.03rem;
}

.toc li a {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.toc li a:hover {
  color: var(--primary);
}

.aside__card hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.elsewhere dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.elsewhere dd {
  margin: 0.15rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ----------------------------------------------------------------- legal */

.legal-meta {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.15rem;
}

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

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal p {
  margin-top: 0.85rem;
}

.legal ul {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.legal li {
  padding-left: 1.1rem;
  text-indent: -1.1rem;
}

.legal li::before {
  content: "· ";
  color: var(--faint);
}

.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer__blurb {
  margin-top: 1.25rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.site-footer li a {
  display: block;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer li a:hover {
  color: var(--text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.owner-credit {
  font-weight: 700;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.linkedin::before {
  content: "in";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.linkedin--icon {
  gap: 0;
}

.linkedin--icon::before {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.linkedin--icon:hover::before {
  background: var(--grad2);
}

.copyright {
  margin-left: auto;
  color: var(--faint);
}

@media (max-width: 900px) {
  .hero > .wrap,
  .resume,
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    position: static;
  }

  .site-nav {
    margin: 0 auto 0 0;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header > .wrap {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    min-height: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    gap: 0.25rem;
    margin: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.6rem;
  }

  .header-actions {
    margin-left: auto;
  }
}
