/* ── TOKENS ─────────────────────────────────── */
:root {
  --ink:    #0A0A0A;
  --ink2:   #1C1C1C;
  --mid:    #555;
  --muted:  #999;
  --line:   #E8E8E8;
  --bg:     #F7F5F0;
  --white:  #FFFFFF;
  --green:  #169B62;
  --green2: #0f7a4a;
  --green3: #D4EDDF;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  padding: 144px 40px 80px;
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
}
.hero-left { }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--green); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-desc {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--mid); max-width: 420px; margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; }
.btn-primary {
  background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--ink2); transform: translateY(-2px); color: #fff; }
.btn-ghost {
  font-size: 14px; font-weight: 600; color: var(--mid);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-right { padding-bottom: 8px; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; background: var(--line);
}
.hero-stat {
  background: var(--white); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat-num {
  font-family: var(--serif); font-size: 48px; line-height: 1;
  color: var(--ink);
}
.hero-stat-num span { color: var(--green); }
.hero-stat-label {
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.hero-tagline {
  grid-column: span 2; background: var(--green);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-tagline p {
  font-size: 15px; font-weight: 500; color: #fff; line-height: 1.5;
}
.hero-tagline::before { content: '✦'; font-size: 20px; color: rgba(255,255,255,0.5); flex-shrink: 0; }

/* ── DIVIDER ─────────────────────────────────── */
.divider {
  height: 1px; background: var(--line);
  max-width: 1300px; margin: 0 auto;
}

/* ── WORK SECTION ────────────────────────────── */
.work {
  max-width: 1300px; margin: 0 auto;
  padding: 80px 40px;
}
.work-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}
.work-header-left h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05; color: var(--ink);
}
.work-header-left h2 em { font-style: italic; color: var(--green); }
.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--white); color: var(--mid);
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── CARD GRID ───────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* card base */
.demo-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.demo-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.10); transform: translateY(-5px); }

/* image */
.card-img {
  position: relative; height: 220px; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.demo-card:hover .card-img img { transform: scale(1.07); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 55%);
}

/* live / soon pill */
.card-pill {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.pill-live {
  background: var(--green); color: #fff;
}
.pill-live::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.pill-soon {
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.8);
}

/* category tag on image */
.card-cat {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* body */
.card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-name { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.2; }
.card-desc { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.65; flex: 1; }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line);
  margin-top: 4px;
}
.card-pkg {
  font-size: 12px; font-weight: 600;
  background: var(--green3); color: var(--green2);
  padding: 3px 10px; border-radius: 999px;
}
.card-link {
  font-size: 13px; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 8px; }
.card-link.disabled { color: var(--muted); pointer-events: none; }
.card-link-arrow { transition: transform 0.2s; }
.demo-card:hover .card-link-arrow { transform: translateX(3px); }

/* ── BOTTOM CTA ──────────────────────────────── */
.bottom-cta {
  background: var(--ink);
  margin: 0 40px 80px;
  border-radius: 20px;
  max-width: 1220px;
  margin-left: auto; margin-right: auto;
  padding: 70px 64px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 400px; height: 400px;
  border: 80px solid rgba(22,155,98,0.1);
  border-radius: 50%;
}
.bottom-cta::after {
  content: '';
  position: absolute; bottom: -80px; left: 200px;
  width: 200px; height: 200px;
  border: 40px solid rgba(22,155,98,0.08);
  border-radius: 50%;
}
.cta-left h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  color: #fff; line-height: 1.1; margin-bottom: 12px;
}
.cta-left h2 em { font-style: italic; color: var(--green); }
.cta-left p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.6); max-width: 400px; line-height: 1.65; }
.cta-right { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; position: relative; z-index: 1; }
.btn-cta-green {
  background: var(--green); color: #fff;
  padding: 16px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-align: center; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  display: block;
}
.btn-cta-green:hover { background: var(--green2); transform: translateY(-2px); color: #fff; }
.btn-cta-outline {
  border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7);
  padding: 14px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  text-align: center; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  display: block;
}
.btn-cta-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: 1300px; margin: 0 auto;
  font-size: 13px; color: var(--muted);
}
footer a { color: var(--muted); transition: color 0.2s; }
footer a:hover { color: var(--ink); }

/* ── REVEAL ANIMATIONS ───────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 120px; }
  .hero-right { max-width: 480px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav { padding: 0 20px; }
  .nav-right a:not(.nav-cta) { display: none; }
  .hero { padding: 110px 20px 60px; }
  .work { padding: 60px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .work-header { flex-direction: column; align-items: flex-start; }
  .bottom-cta { margin: 0 20px 60px; padding: 48px 28px; flex-direction: column; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}