:root {
  --lex-blue: #022a63;
  --lex-blue-deep: #001b47;
  --lex-red: #e20a17;
  --lex-gray: #7d838d;
  --ink: #1d2430;
  --surface: #f4f5f7;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(5, 24, 54, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background: var(--surface);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 90% 8%, rgba(2, 42, 99, 0.08), transparent 38%),
    radial-gradient(circle at 4% 65%, rgba(226, 10, 23, 0.08), transparent 33%),
    linear-gradient(130deg, #f8f8f9 0%, #eef0f3 100%);
}

.bg-layer::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 9%;
  width: 280px;
  height: 560px;
  opacity: 0.16;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9),
    rgba(220, 223, 228, 0.25)
  );
  clip-path: polygon(10% 0, 90% 0, 80% 14%, 74% 14%, 74% 86%, 84% 86%, 84% 100%, 16% 100%, 16% 86%, 26% 86%, 26% 14%, 20% 14%);
}

.site-header {
  width: min(1160px, 92%);
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 42, 99, 0.08);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 14px;
  z-index: 40;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 46px;
  height: 46px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--lex-blue-deep);
}

.brand-text strong {
  font-size: 0.96rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--lex-gray);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: var(--lex-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.cta-nav,
.btn {
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-nav {
  background: linear-gradient(120deg, var(--lex-red), #ff1f2d);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.86rem;
}

.cta-nav:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 42, 99, 0.2);
}

main {
  width: min(1160px, 92%);
  margin: 36px auto 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.9));
  border: 1px solid rgba(2, 42, 99, 0.1);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lex-red);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--lex-blue-deep);
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.hero-copy p {
  color: #3c4452;
  max-width: 62ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  padding: 12px 20px;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(130deg, var(--lex-red), #c70612);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(2, 42, 99, 0.2);
  color: var(--lex-blue);
  background: rgba(255, 255, 255, 0.5);
}

.hero-brand {
  justify-self: center;
  width: min(470px, 100%);
}

.hero-brand img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 26px rgba(4, 24, 52, 0.14));
}

.section {
  margin-top: 34px;
  padding: 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(2, 42, 99, 0.08);
  box-shadow: 0 14px 32px rgba(8, 32, 62, 0.08);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 8px;
}

.service-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(2, 42, 99, 0.12);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lex-red), var(--lex-blue));
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  color: #4b5464;
  line-height: 1.65;
}

.method .timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(2, 42, 99, 0.12);
  padding: 18px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lex-blue);
  color: var(--white);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: #505a6b;
  line-height: 1.62;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.86rem;
  color: #556075;
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(2, 42, 99, 0.2);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(2, 42, 99, 0.2);
  border-color: var(--lex-blue);
}

.site-footer {
  width: min(1160px, 92%);
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4f596c;
  font-size: 0.9rem;
}

.site-footer img {
  width: 28px;
  height: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .method .timeline {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 6px;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .cta-nav {
    width: 100%;
  }

  .site-footer {
    text-align: center;
    flex-direction: column;
  }
}
