/* prayukta.com — homepage
   Shares its design language with magnum.prayukta.com:
   framed dark canvas, mono headings, gold hairlines, rust accent. */

:root {
  --bg: #1D1F20;
  --surface: #191B1C;
  --code-bg: #0d0d0d;

  --line: #2c2e2f;
  --line-strong: #3b3d3e;

  --ink: #D2CFC1;
  --text: #e8e8e8;
  --text-secondary: #9b9b96;
  --text-muted: #73746f;

  --gold: #986C1B;
  --gold-text: #C99A45;
  --rust: #F66F53;
  --green: #07f05c;

  --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-deva: 'Tiro Devanagari Sanskrit', 'Kohinoor Devanagari', 'Noto Serif Devanagari', 'Nirmala UI', serif;

  --pad: 24px;
  --section: 88px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 3px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1008px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Frame ─────────────────────────────────────────── */

.app-wrapper {
  max-width: 1200px;
  margin: 40px auto 0;
  border: 1px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

header {
  border-bottom: 1px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-bullet {
  color: var(--rust);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { color: var(--rust); }
  50% { color: var(--green); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -8px;
}

.nav-link {
  display: block;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  border-radius: 3px;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current='true'] {
  color: var(--gold-text);
}

/* ── Type ──────────────────────────────────────────── */

h1 {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

h1 em {
  color: var(--rust);
  font-style: italic;
  white-space: nowrap;
}

.subtitle-small {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #999;
}

h2 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: lowercase;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 34em;
  text-wrap: pretty;
}

/* ── Hero ──────────────────────────────────────────── */

.intro {
  padding: 96px 0 104px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.intro-content > * + * {
  margin-top: 24px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  background: var(--code-bg);
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  color: var(--gold-text);
}

.btn:active {
  transform: scale(0.99);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

a:hover > .arrow-down,
.btn:hover .arrow-down {
  transform: translateY(2px);
}

a:hover > .arrow-out {
  transform: translate(2px, -2px);
}

a:hover > .arrow-right {
  transform: translateX(3px);
}

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--gold-text);
}

/* Hero manifest: a terminal-style index of the products below */

.manifest {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--code-bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.manifest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.manifest-dots {
  display: inline-flex;
  gap: 6px;
}

.manifest-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.manifest-body {
  padding: 18px 8px 16px;
}

.manifest-cmd {
  padding: 0 8px 10px;
  color: var(--text-secondary);
}

.prompt {
  color: var(--gold-text);
  margin-right: 8px;
  user-select: none;
}

.manifest-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 0.9fr) minmax(0, 1.2fr) 14px;
  align-items: baseline;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 3px;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.manifest-row:hover {
  background: #17191a;
}

.manifest-idx {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.manifest-name {
  color: var(--ink);
  transition: color 0.15s ease;
}

.manifest-row:hover .manifest-name {
  color: var(--gold-text);
}

.manifest-type {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manifest-go {
  color: var(--text-muted);
  text-align: right;
  transition: transform 0.2s var(--ease), color 0.15s ease;
}

.manifest-row:hover .manifest-go {
  color: var(--gold-text);
  transform: translateX(2px);
}

.manifest-tail {
  padding: 10px 8px 0;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--ink);
  animation: blink 1.2s steps(1, end) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* ── Sections ──────────────────────────────────────── */

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 8px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* ── Products ──────────────────────────────────────── */

.product {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 216px;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 8px;
}

.product:first-child {
  padding-top: 0;
  border-top: 0;
}

.product:last-child {
  padding-bottom: 0;
}

.product-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-index {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.product-name {
  position: relative;
  margin-top: 14px;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.product-name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  transition: background-color 0.2s ease;
}

.product:hover .product-name::before {
  background: var(--rust);
}

.product-kind {
  margin-top: 8px;
  padding-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-text);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.product-link {
  margin-top: 20px;
  margin-left: 16px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.product-link:hover {
  color: var(--gold-text);
  border-color: var(--gold);
}

.product-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 46em;
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tag {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}

.metrics {
  display: flex;
  flex-direction: column;
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.metric:first-child {
  padding-top: 2px;
  border-top: 0;
}

.metric dt {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  text-transform: lowercase;
}

.metric dd {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ── About ─────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 36em;
  text-wrap: pretty;
}

.about-copy p + p {
  margin-top: 20px;
}

.about-copy strong {
  font-weight: 500;
  color: var(--text);
}

.definition {
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.definition-word {
  font-family: var(--font-deva);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.definition-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.definition-meta b {
  font-weight: 500;
  color: var(--gold-text);
}

.definition-senses {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  counter-reset: sense;
}

.definition-senses li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  counter-increment: sense;
}

.definition-senses li + li {
  margin-top: 6px;
}

.definition-senses li::before {
  content: counter(sense);
  position: absolute;
  left: 0;
  top: 0.25em;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
}

.spec dd {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

/* ── Contact ───────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}

.contact-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mailbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailbox-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-text);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.mailbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  background: var(--code-bg);
  border: 1px solid var(--gold);
  border-radius: 4px;
}

.mailbox-address {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.mailbox-address:hover {
  color: var(--gold-text);
}

.copy-btn {
  flex-shrink: 0;
  min-width: 68px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover,
.copy-btn[data-state='copied'] {
  color: var(--gold-text);
  border-color: var(--gold);
}

.copy-btn:active {
  transform: scale(0.98);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}

/* ── Footer ────────────────────────────────────────── */

footer {
  padding: 32px 0 48px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--gold-text);
}

/* ── Reveal (only when JS is running) ──────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 960px) {
  .product {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px 40px;
  }

  .metrics {
    grid-column: 2;
    flex-direction: row;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .metric,
  .metric:first-child {
    flex: 1;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 14px 16px 0 0;
    border-top: 0;
  }

  .metric dd {
    text-align: left;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 20px;
    --section: 60px;
  }

  .app-wrapper {
    margin: 16px 16px 0;
    border-radius: 2px;
  }

  .nav {
    padding: 14px 20px;
  }

  .logo {
    font-size: 17px;
  }

  .nav-link {
    padding: 6px 7px;
  }

  h1 {
    font-size: 26px;
  }

  .subtitle-small {
    font-size: 17px;
  }

  .intro {
    padding: 56px 0 60px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .intro-content > * + * {
    margin-top: 20px;
  }

  .intro-actions {
    margin-top: 32px;
  }

  .lead {
    font-size: 15px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 0;
  }

  .product-name {
    margin-top: 12px;
  }

  .product-link {
    margin-top: 16px;
  }

  .metrics {
    grid-column: 1;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .about-copy p,
  .contact-lead {
    font-size: 15px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
    padding-top: 28px;
  }

  .footer-content {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 23px;
  }

  .nav-links {
    gap: 0;
  }

  .section-note {
    display: none;
  }

  .manifest-row {
    grid-template-columns: 20px minmax(0, 1fr) 14px;
  }

  .manifest-type {
    display: none;
  }

  .metric,
  .metric:first-child {
    padding-right: 10px;
  }

  .metric dd {
    font-size: 13px;
  }

  .definition-word {
    font-size: 38px;
  }

  .specs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mailbox {
    padding-left: 14px;
  }

  .mailbox-address {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .app-wrapper {
    border: 0;
    margin: 0;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
