/* ═══════════════════════════════════════════════════════════════
   Meltalice · RHEOX Landing Page
   Aesthetic: Industrial precision — dark ink, warm stone, teal signal
   Typography: Instrument Serif (display) + DM Sans (body) + DM Mono
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --ink:      #0E0E0D;
  --stone:    #F4F1EC;
  --stone-md: #E5E0D8;
  --stone-dk: #C8C0B4;
  --teal:     #1D9E75;
  --teal-lt:  #D4F0E6;
  --amber:    #C8873A;
  --white:    #FDFCFA;
  --border:   #D8D2C8;
  --txt-2:    #5A5550;
  --txt-3:    #968E84;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Consolas', monospace;

  --max-w: 1100px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-melt  { color: var(--ink); font-weight: 500; }
.brand-alice { color: var(--teal); font-weight: 500; }
.brand-sep   { color: var(--stone-dk); margin: 0 6px; }
.brand-rheox { color: var(--txt-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--txt-2);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}

nav a:hover { color: var(--ink); }

.nav-cta {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  color: var(--teal) !important;
  border: 1px solid var(--teal);
  padding: 5px 14px;
  border-radius: 3px;
  transition: background .15s !important;
}

.nav-cta:hover { background: var(--teal-lt) !important; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stone-md) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone-md) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
  pointer-events: none;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 16px;
  color: var(--txt-2);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-val {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--txt-3);
  letter-spacing: .04em;
}

.val-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}

/* Curve card */
.curve-card {
  background: #111110;
  border-radius: 6px;
  padding: 24px;
  border: 1px solid #2a2926;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: fadeUp .8s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .2s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.curve-label {
  font-size: 10px;
  color: #555;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
}

.curve-gp, .curve-gdp {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: .6s;
}

.curve-gdp { animation-delay: .9s; }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.curve-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 10px;
  color: #555;
  letter-spacing: .05em;
}

.valid-badge {
  color: var(--teal);
  letter-spacing: .04em;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--stone-dk);
  letter-spacing: .1em;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(4px); }
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: var(--section-pad); }
.section-dark   { background: var(--ink); color: var(--stone); }
.section-accent { background: var(--stone); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-dark .section-tag { color: #4EC89A; }

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

.section-dark h2 { color: var(--stone); }

.section-intro {
  max-width: 560px;
  color: var(--txt-2);
  font-size: 15px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* ── Problem ─────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-text p {
  color: var(--txt-2);
  font-weight: 300;
  margin-bottom: 16px;
  font-size: 15px;
}

.problem-text p:last-child { margin-bottom: 0; }

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-item { padding: 28px 32px; }
.stat-divider { height: 1px; background: var(--border); }

.stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.03em;
}

.stat-label {
  font-size: 11px;
  color: var(--txt-3);
  letter-spacing: .04em;
  line-height: 1.5;
}

/* ── Engine ──────────────────────────────────────────────────── */
.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
}

.engine-block {
  padding: 36px 32px;
  border: 1px solid #1E1E1C;
  transition: background .2s;
}

.engine-block:hover { background: #141413; }

.eb-num {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: .1em;
  margin-bottom: 14px;
  opacity: .7;
}

.engine-block h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.engine-block p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Validation table ────────────────────────────────────────── */
.val-table-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.val-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.val-table thead tr {
  background: var(--stone);
  border-bottom: 1px solid var(--border);
}

.val-table th {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-3);
}

.val-table td {
  padding: 16px 18px;
  vertical-align: top;
  color: var(--txt-2);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.val-table tbody tr:last-child td { border-bottom: none; }

.val-active td { background: #FAFEF8; }
.val-pending td { background: var(--white); opacity: .65; }

.val-table .mono { font-size: 12px; }

.status-ok      { color: var(--teal); font-size: 12px; letter-spacing: .04em; }
.status-pending { color: var(--amber); font-size: 12px; letter-spacing: .04em; }

.val-note {
  font-size: 11px;
  color: var(--txt-3);
  letter-spacing: .04em;
  font-style: italic;
}

/* ── Partners ────────────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}

.partner-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.pc-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.partner-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.partner-card p {
  font-size: 13.5px;
  color: var(--txt-2);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;
}

.pc-tag {
  font-size: 10px;
  color: var(--txt-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── CTA block ───────────────────────────────────────────────── */
.cta-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.cta-text p {
  color: var(--txt-2);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 10px;
}

.cta-email a {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .02em;
  transition: opacity .15s;
}

.cta-email a:hover { opacity: .7; }

.access-card {
  background: var(--ink);
  color: var(--stone);
  border-radius: 6px;
  padding: 28px 32px;
  text-align: center;
  min-width: 220px;
}

.ac-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 12px;
}

.ac-price {
  font-size: 36px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -.03em;
  margin-bottom: 4px;
  line-height: 1;
}

.ac-price span { font-size: 14px; color: #666; font-weight: 400; }

.ac-trial {
  font-size: 11px;
  color: #555;
  margin-bottom: 20px;
  letter-spacing: .04em;
}

.ac-btn {
  display: block;
  background: var(--teal);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: opacity .15s;
}

.ac-btn:hover { opacity: .85; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 40px 24px;
  border-top: 1px solid #1A1A18;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-melt  { color: var(--stone); font-family: var(--font-mono); }
.footer-brand .brand-alice { color: var(--teal);  font-family: var(--font-mono); }

.footer-loc {
  font-size: 11px;
  color: #444;
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color .15s;
  letter-spacing: .03em;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: 10px;
  color: #333;
  letter-spacing: .04em;
}

/* ── Scroll animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}

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

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid      { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid   { grid-template-columns: 1fr; gap: 40px; }
  .engine-grid    { grid-template-columns: 1fr; }
  .partners-grid  { grid-template-columns: 1fr; }
  .cta-block      { grid-template-columns: 1fr; }
  nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
  :root { --section-pad: 64px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
