/* ---------------------------------------------------
   Singavan — design tokens
--------------------------------------------------- */
:root {
  --ink: #0F131B;
  --mist: #171C27;
  --mist-2: #1E2532;
  --paper: #EDE9E1;
  --paper-dim: #C9C5BC;
  --fog: #8D95A3;
  --amber: #E3A23B;
  --amber-dim: #B77E2C;
  --teal: #5A8177;
  --line: rgba(237, 233, 225, 0.13);
  --line-strong: rgba(237, 233, 225, 0.24);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --gutter: clamp(24px, 5vw, 72px);
  --content-max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}

em {
  font-style: italic;
  font-weight: 420;
  color: var(--amber);
}

p { margin: 0; }

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

::selection {
  background: var(--amber);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: rgba(15, 19, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.wordmark-mark .mono-s { fill: var(--paper); }
.wordmark-mark .mono-v { fill: var(--amber); }

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
}

.wordmark.small .wordmark-mark {
  height: 24px;
}

.wordmark.small .wordmark-text {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--fog);
  transition: color 0.15s ease;
}

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

@media (max-width: 780px) {
  .site-nav { display: none; }
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 2px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 500;
}
.btn-primary:hover { background: #EDB158; }

.btn-line {
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.btn-line:hover { border-color: var(--amber); color: var(--amber); }

.btn-ghost {
  border: 1px solid transparent;
  color: var(--paper);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--amber); }

.btn-small { padding: 10px 18px; font-size: 0.78rem; }

.header-cta { display: none; }
@media (min-width: 780px) {
  .header-cta { display: inline-flex; }
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(96px, 16vw, 168px) var(--gutter) clamp(72px, 10vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 56px;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 620px) minmax(280px, 380px);
  }
}

.hero-figure {
  display: none;
}

@media (min-width: 980px) {
  .hero-figure {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}

#heroShape {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--paper-dim);
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------
   Sections
--------------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 108px) var(--gutter);
  border-bottom: 1px solid var(--line);
  max-width: var(--content-max);
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  max-width: 24ch;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lede {
  font-size: 1.05rem;
  color: var(--paper-dim);
  max-width: 62ch;
  margin-bottom: 36px;
}

/* ---------------------------------------------------
   Product card
--------------------------------------------------- */
.product-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
}

.product-card-top {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(90, 129, 119, 0.18);
  color: var(--teal);
}

.tag-mono {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fog);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.product-card p {
  color: var(--paper-dim);
  max-width: 52ch;
  margin-bottom: 24px;
}

/* ---------------------------------------------------
   Services grid
--------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--ink);
  padding: clamp(24px, 3vw, 34px);
}

.service h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.service p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 42ch;
}

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

/* ---------------------------------------------------
   Process (método)
--------------------------------------------------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.process li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.process li:last-child { border-bottom: 1px solid var(--line); }

.process-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--amber);
  padding-top: 4px;
}

.process h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.section-contact { border-bottom: none; }

.contact-body .lede { margin-bottom: 28px; }

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--amber);
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 4px;
  transition: opacity 0.15s ease;
}

.contact-email:hover { opacity: 0.8; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter) 40px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fog);
  max-width: var(--content-max);
}
