/* EDLAN — lavender theme (Meltano-inspired) */
:root {
  --bg: #cfc7f5;          /* lavender */
  --bg-2: #dcd6f9;        /* lighter section */
  --bg-3: #ffffff;
  --card: rgba(255, 255, 255, 0.55);
  --card-border: rgba(38, 21, 105, 0.14);
  --text: #241663;        /* deep purple ink */
  --muted: #4c3f85;
  --accent: #f3437f;      /* pink */
  --accent-2: #3d5afe;    /* blue (buttons) */
  --gradient: linear-gradient(120deg, #6d3bff, #f3437f);
  --radius: 16px;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(243, 67, 127, 0.3); }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(220, 214, 249, 0.8);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(38, 21, 105, 0.1);
  transition: top 0.35s ease, left 0.35s ease, right 0.35s ease,
              border-radius 0.35s ease, background 0.3s, box-shadow 0.35s,
              border-color 0.35s, max-width 0.35s ease;
}
/* Floating pill on scroll */
.nav.scrolled {
  top: 14px; left: 20px; right: 20px;
  max-width: 920px; margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(38, 21, 105, 0.12);
  border-bottom-color: rgba(38, 21, 105, 0.12);
  box-shadow: 0 14px 44px rgba(38, 21, 105, 0.22);
}
.nav.scrolled .nav-inner { height: 56px; }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: height 0.35s ease;
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: 0.12em;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center;
}
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo img { height: 38px; width: auto; display: block; transition: height 0.35s ease; }
.nav.scrolled .logo img { height: 30px; }
footer .logo img { height: 34px; }
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(38, 21, 105, 0.07); }
.nav-links a.active { color: var(--text); font-weight: 700; }
.nav-links a.cta {
  background: var(--accent-2); color: #fff; font-weight: 700; margin-left: 8px;
}
.nav-links a.cta:hover { background: #2a46e8; color: #fff; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding-top: 68px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 255, 255, 0.55), transparent),
              radial-gradient(ellipse 60% 50% at 80% 100%, rgba(243, 67, 127, 0.1), transparent),
              var(--bg);
}
.hero.short { min-height: 48vh; }
#particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(243, 67, 127, 0.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.5);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 67, 127, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(243, 67, 127, 0); }
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 8px 24px rgba(61, 90, 254, 0.35); }
.btn-primary:hover { background: #2a46e8; }
.btn-ghost {
  color: var(--text); border: 1px solid rgba(38, 21, 105, 0.3);
  background: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.75); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 16px;
}
.sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 90, 254, 0.4);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px rgba(38, 21, 105, 0.15);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(61, 90, 254, 0.25);
  margin-bottom: 20px; font-size: 1.3rem;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card ul { margin: 14px 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.card ul li { margin-bottom: 6px; }
.card.featured { border-color: rgba(243, 67, 127, 0.4); }
.card.featured::after {
  content: "IN DEMAND"; position: absolute; top: 18px; right: 18px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px; padding: 64px 48px; text-align: center;
  background: linear-gradient(135deg, rgba(109, 59, 255, 0.1), rgba(243, 67, 127, 0.1)),
              rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(109, 59, 255, 0.25);
  box-shadow: 0 20px 50px rgba(38, 21, 105, 0.12);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .item .icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(61, 90, 254, 0.25);
}
.contact-info .item strong { display: block; margin-bottom: 2px; }
.contact-info .item span, .contact-info .item a { color: var(--muted); text-decoration: none; }
.contact-info .item a:hover { color: var(--accent-2); }
form .field { margin-bottom: 18px; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
input, textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--card-border);
  color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #8d84b8; }
input:focus, textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.18);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(38, 21, 105, 0.12);
  padding: 48px 0 36px; background: var(--bg-2);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 0.85rem; width: 100%; margin-top: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 80px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px);
    padding: 12px 24px 24px;
    border: 1px solid rgba(38, 21, 105, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(38, 21, 105, 0.2);
    transform: translateY(-140%); transition: transform 0.3s ease;
    opacity: 0; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav.scrolled { left: 12px; right: 12px; }
  .nav-links a { display: block; padding: 14px 10px; }
  .nav-links a.cta { display: block; margin: 10px 0 0; text-align: center; }
  .grid.cols-3, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 0; }
  .cta-band { padding: 44px 24px; }
}
