:root {
  --bg: #0a0d0c;
  --bg-alt: #0d1211;
  --surface: #131a17;
  --surface-2: #171f1b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1ef;
  --text-muted: #9ba6a1;
  --text-faint: #6b756f;
  --green: #34d399;
  --green-dark: #059669;
  --green-soft: rgba(52, 211, 153, 0.12);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

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

/* Background decoration */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(52,211,153,0.16) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #04140d;
  box-shadow: 0 8px 24px -8px rgba(52, 211, 153, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(52, 211, 153, 0.65); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 13, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--green); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 168px 0 100px;
  position: relative;
}

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

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-copy h1 { margin-bottom: 20px; }

.hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 32px;
}

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

.badge {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}

/* Hero visual / phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-mock {
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, #1a2320, #0d1210);
  border: 1px solid var(--border-strong);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0d0c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  background: var(--surface);
  border-radius: 28px;
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-screen-green {
  background: linear-gradient(180deg, rgba(52,211,153,0.08), var(--surface) 30%);
}

.mock-topbar {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  gap: 6px;
}

.mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
}

.mock-card-lg { padding: 18px 14px; }

.mock-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-soft);
  flex-shrink: 0;
}

.mock-pill-alt { background: rgba(255,255,255,0.06); }

.mock-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; }

.mock-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.09);
}

.mock-line.w-90 { width: 90%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-40 { width: 40%; }
.mock-line.center { margin: 0 auto; }

.mock-fab {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 20px -6px rgba(52,211,153,0.7);
}

.jardivia-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0 4px;
  color: var(--green);
}

.floaty {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.floaty svg { color: var(--green); }

.floaty-1 { top: 12%; left: -6%; }
.floaty-2 { bottom: 14%; right: -8%; color: var(--text-muted); }

/* Sections */
.section { padding: 108px 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.section-head h2 { margin: 8px 0 16px; }

.section-lead { color: var(--text-muted); font-size: 1.05rem; }

/* Case study */
.case-study {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.case-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.case-copy h3 { margin-bottom: 16px; }

.case-copy > p { color: var(--text-muted); margin-bottom: 24px; }

.case-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.case-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.case-features svg { color: var(--green); flex-shrink: 0; }

.case-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.case-visual { display: flex; justify-content: center; }

.phone-mock-alt { transform: rotate(2deg); }

/* Contact */
.contact-simple {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact-simple h2 { margin: 8px 0 24px; }

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--green-soft);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.contact-email:hover { border-color: var(--green); }

/* Footer */
.site-footer { padding: 44px 0; border-top: 1px solid var(--border); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav { display: flex; gap: 24px; }

.footer-nav a { font-size: 0.9rem; color: var(--text-muted); }

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

.footer-copy { font-size: 0.85rem; color: var(--text-faint); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 24px; }
  .case-study { grid-template-columns: 1fr; padding: 36px; }
  .case-visual { order: -1; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,13,12,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
    margin: 0;
  }

  .hero { padding: 140px 0 72px; }
  .section { padding: 76px 0; }
  .floaty { display: none; }
  .phone-mock { width: 220px; height: 440px; }
}
