/* ── Design Tokens ───────────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #152336;
  --navy-light:  #1E3250;
  --amber:       #C8860A;
  --amber-light: #F0A833;
  --amber-glow:  rgba(240, 168, 51, 0.12);
  --teal:        #0E9E8E;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --muted:       #94A3B8;
  --text:        #1E293B;
  --text-light:  #E2E8F0;
  --text-muted-light: #8BA4BF;
  --border:      #E2E8F0;
  --border-dark: rgba(255,255,255,0.08);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 40px rgba(0,0,0,0.15);
  --shadow-amber: 0 4px 24px rgba(200, 134, 10, 0.25);

  --transition: 0.25s ease;
  --transition-slow: 0.5s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
}

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--dark   { background: var(--navy); color: var(--text-light); }
.section--tinted { background: var(--off-white); }

.section__header { text-align: center; margin-bottom: 64px; }
.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--amber-light); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.section__title--light { color: var(--white); }

/* ── Reveal animations ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--shadow-amber);
}
.btn--primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(200,134,10,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-light);
  background: var(--amber-glow);
  border: 1px solid rgba(240,168,51,0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.nav__logo-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__cta {
  background: var(--amber) !important;
  color: var(--white) !important;
  margin-left: 8px;
  padding: 8px 18px !important;
}
.nav__cta:hover { background: var(--amber-light) !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(14,158,142,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 50% 60% at 20% 70%, rgba(200,134,10,0.06) 0%, transparent 60%);
}
.hero__content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  background: var(--amber-glow);
  border: 1px solid rgba(240,168,51,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero__headline--accent { color: var(--amber-light); }
.hero__subline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted-light);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-light);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted-light), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── Challenge ───────────────────────────────────────────────────────────────── */
.challenge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.challenge__card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.challenge__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.challenge__icon {
  width: 48px;
  height: 48px;
  background: var(--amber-glow);
  border: 1px solid rgba(200,134,10,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}
.challenge__icon svg { width: 24px; height: 24px; }
.challenge__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.challenge__card p { font-size: 0.9rem; color: #64748B; line-height: 1.65; }

/* ── Services ────────────────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card {
  background: var(--navy-mid);
  padding: 40px 32px;
  position: relative;
  transition: background var(--transition);
}
.service-card:hover { background: var(--navy-light); }
.service-card__number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 16px;
  opacity: 0.7;
}
.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--amber-light);
  margin-bottom: 16px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card p { font-size: 0.875rem; color: var(--text-muted-light); line-height: 1.65; }

/* ── Why Lexchain ────────────────────────────────────────────────────────────── */
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why__left h2 { margin-bottom: 20px; }
.why__body {
  font-size: 1rem;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 32px;
}
.why__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-point__icon {
  width: 40px;
  height: 40px;
  background: var(--amber-glow);
  border: 1px solid rgba(200,134,10,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.why-point__icon svg { width: 20px; height: 20px; }
.why-point h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.why-point p { font-size: 0.875rem; color: #64748B; line-height: 1.65; }

/* ── Who We Serve ────────────────────────────────────────────────────────────── */
.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.who-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  border-top: 3px solid var(--amber);
  transition: box-shadow var(--transition), transform var(--transition);
}
.who-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.who-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.who-card p { font-size: 0.875rem; color: #64748B; line-height: 1.65; }

/* ── Insights ────────────────────────────────────────────────────────────────── */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.insight-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.insight-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.insight-card p { font-size: 0.875rem; color: #64748B; line-height: 1.65; flex: 1; }
.insight-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* ── Contact ─────────────────────────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__body {
  color: var(--text-muted-light);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted-light);
  font-size: 0.9rem;
}
.contact__detail svg { width: 20px; height: 20px; color: var(--amber-light); flex-shrink: 0; }

.contact__form {
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted-light);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.08);
}
.form-group select option { background: var(--navy); color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form__disclaimer { font-size: 0.75rem; color: var(--text-muted-light); text-align: center; opacity: 0.6; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  background: #060E17;
  color: var(--text-muted-light);
  padding: 64px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand .nav__logo-mark { font-size: 1rem; }
.footer__brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer__brand span { color: var(--muted); font-size: 0.8rem; }
.footer__links h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--amber-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__bottom p { font-size: 0.8rem; color: #4A5568; }
.footer__disclaimer { font-size: 0.72rem !important; max-width: 800px; line-height: 1.6; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .challenge__grid,
  .services__grid,
  .who__grid,
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--navy);
    padding: 32px 24px;
    gap: 4px;
    z-index: 99;
  }
  .nav__links.open a { padding: 14px 16px; font-size: 1rem; }
  .challenge__grid,
  .services__grid,
  .who__grid,
  .insights__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .nav__logo-text { display: none; }
}
