/* Palmera Solutions — single stylesheet. Inter only, navy / deep blue. */
:root {
  --navy-950: #050b1a;
  --navy-900: #0a1428;
  --navy-800: #101d38;
  --navy-700: #1a2a4d;
  --blue-500: #3b6cff;
  --blue-400: #5b86ff;
  --blue-300: #8eaaff;
  --cyan-400: #4fd1e8;
  --ink: #0c1427;
  --ink-2: #3d4a63;
  --ink-3: #6b778f;
  --line: #e3e7ef;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --on-dark: #eef2fb;
  --on-dark-2: #a9b4cc;
  --on-dark-3: #7584a3;
  --line-dark: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--blue-500); color: #fff; }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; letter-spacing: -0.01em; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; }
.brand small { font-weight: 450; color: var(--on-dark-2); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--on-dark-2); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
}
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--on-dark-3); }
.lang a[aria-current="true"] { background: rgba(255,255,255,0.1); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 30px -8px rgba(59,108,255,0.7); }
.btn-primary:hover { background: var(--blue-400); transform: translateY(-1px); }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--on-dark);
  padding: 168px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -260px; top: -380px;
  background: radial-gradient(circle, rgba(59,108,255,0.35), rgba(79,209,232,0.08) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-300);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(79,209,232,0.15); }
.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700;
  color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #9fb8ff 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--on-dark-2); max-width: 560px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Agent run card */
.agent-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26,42,77,0.75), rgba(16,29,56,0.75));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.agent-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.agent-id { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  display: grid; place-items: center;
}
.agent-avatar svg { width: 20px; height: 20px; color: #fff; }
.agent-name { font-weight: 600; font-size: 15px; color: #fff; }
.agent-sub { font-size: 12.5px; color: var(--on-dark-3); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #7ee2b8; background: rgba(126,226,184,0.1); padding: 5px 10px; border-radius: 999px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #7ee2b8; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

.steps { list-style: none; padding: 18px 0 6px; display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 10px;
  opacity: 0.28; transition: opacity 0.5s var(--ease), background 0.5s;
}
.step.on { opacity: 1; }
.step.active { background: rgba(59,108,255,0.12); }
.step-ic { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); display: grid; place-items: center; }
.step.done .step-ic { background: var(--blue-500); border-color: var(--blue-500); }
.step-ic svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.step.done .step-ic svg { opacity: 1; }
.step.active .step-ic { border-color: var(--cyan-400); border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-t { font-size: 14px; color: var(--on-dark); font-weight: 500; }
.step-d { font-size: 12.5px; color: var(--on-dark-3); }
.step-tag { font-size: 11.5px; color: var(--on-dark-3); font-weight: 500; }
.step.approve .step-tag { color: #ffd27a; }
.agent-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-3); }
.agent-foot b { color: var(--on-dark); font-weight: 600; }
.float-chip {
  position: absolute; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(10,20,40,0.9); border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 13px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
}
.float-chip svg { width: 15px; height: 15px; color: var(--cyan-400); }
.chip-1 { left: -28px; top: -20px; animation: bob 6s ease-in-out infinite; }
.chip-2 { right: -22px; bottom: -18px; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* Pillars under hero */
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 96px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--navy-950); padding: 26px 28px; }
.pillar h3 { font-size: 15.5px; font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
.pillar p { font-size: 14px; color: var(--on-dark-2); }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head .eyebrow { color: var(--blue-500); }
.sec-head h2 { margin-top: 14px; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.sec-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.alt { background: var(--paper-2); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-3px); border-color: #cdd6ea; box-shadow: 0 24px 50px -28px rgba(16,29,56,0.35); }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--blue-500); margin-bottom: 22px; }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-2); }

/* Approach */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.phase { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.phase::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: -2px; left: 0; padding-top: 14px; width: 40px; border-top: 2px solid var(--blue-500);
  font-size: 13px; font-weight: 700; color: var(--blue-500); letter-spacing: 0.04em;
}
.phase h3 { margin-top: 20px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.phase p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.phase ul { margin-top: 14px; list-style: none; display: grid; gap: 6px; }
.phase li { font-size: 14px; color: var(--ink-3); padding-left: 16px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); }

/* Industries / use cases */
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.use { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.use-top { display: flex; align-items: center; justify-content: space-between; }
.use h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.pill { font-size: 12px; font-weight: 600; color: var(--blue-500); background: #eef2ff; padding: 4px 10px; border-radius: 999px; }
.pill.muted { color: var(--ink-3); background: var(--paper-2); }
.use ul { list-style: none; display: grid; gap: 10px; }
.use li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.use li svg { width: 18px; height: 18px; color: var(--blue-500); margin-top: 3px; }
.note { margin-top: 26px; font-size: 14px; color: var(--ink-3); }

/* Why (dark) */
.dark { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; }
.dark .sec-head .eyebrow { color: var(--blue-300); }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p { color: var(--on-dark-2); }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.why-item { background: var(--navy-900); padding: 36px; }
.why-item h3 { font-size: 19px; font-weight: 650; color: #fff; letter-spacing: -0.015em; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.why-item h3 svg { width: 20px; height: 20px; color: var(--cyan-400); flex: none; }
.why-item p { color: var(--on-dark-2); font-size: 15.5px; }

/* Track record */
.track { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.track-copy p { font-size: 17px; color: var(--ink-2); margin-top: 18px; }
.timeline { margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.timeline span { color: var(--ink-3); font-weight: 500; }
.timeline .arrow { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), var(--blue-500)); max-width: 90px; }
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.work-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--paper); transition: border-color 0.3s; }
.work-item:hover { border-color: #c4cfe8; }
.work-item h4 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.work-item span { display: block; font-size: 12px; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.work-item p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* CTA */
.cta { padding: 0 0 120px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 64px;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(59,108,255,0.55), transparent 60%), var(--navy-900);
  color: #fff; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center;
}
.cta-box h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.cta-box p { margin-top: 16px; color: var(--on-dark-2); font-size: 17px; max-width: 520px; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-actions .contact-line { font-size: 14px; color: var(--on-dark-2); display: flex; align-items: center; gap: 8px; }
.cta-actions .contact-line svg { width: 16px; height: 16px; }
.cta-actions a.contact-line:hover { color: #fff; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--ink-3); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 56px; }
  .agent-card { max-width: 520px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .track { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { grid-template-columns: 1fr; padding: 56px 36px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 18px; padding: 24px; background: rgba(5,11,26,0.97); border-bottom: 1px solid var(--line-dark);
  }
  .menu-btn { display: grid; place-items: center; }
  .nav-right .btn { display: none; }
  .pillars, .uses, .why { grid-template-columns: 1fr; }
  .chip-1 { left: 8px; top: -20px; }
  .chip-2 { right: 8px; }
}
@media (max-width: 600px) {
  section { padding: 84px 0; }
  .hero { padding: 132px 0 84px; }
  .services, .steps-row, .work { grid-template-columns: 1fr; }
  .why-item, .card, .use { padding: 24px; }
  .cta-box { padding: 44px 24px; border-radius: 22px; }
}
