/* ==========================================================================
   Jupiter ELD — Shared Stylesheet
   Light theme · deep-blue accent · Inter · 8px grid
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color */
  --blue-900: #0B2A63;
  --blue-800: #12357C;
  --blue-700: #1D4ED8;   /* primary accent */
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-50:  #EEF3FE;
  --blue-100: #DCE6FD;

  --orange: #E8792B;      /* secondary micro-accent only */

  --ink-900: #0C1424;     /* slate-900 text */
  --ink-700: #2A3446;
  --ink-500: #5A667C;
  --ink-400: #7A879C;

  --surface:   #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #F0F3F9;
  --border:    #E4E8F0;
  --border-2:  #D6DCE8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12,20,36,.06), 0 1px 3px rgba(12,20,36,.05);
  --shadow-md: 0 4px 12px rgba(12,20,36,.07), 0 2px 4px rgba(12,20,36,.05);
  --shadow-lg: 0 12px 32px rgba(12,20,36,.10), 0 4px 8px rgba(12,20,36,.05);
  --shadow-blue: 0 8px 24px rgba(29,78,216,.22);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;

  /* Type scale */
  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-h1: clamp(2.1rem, 4vw, 3.1rem);
  --text-h2: clamp(1.7rem, 3vw, 2.35rem);
  --text-h3: 1.35rem;
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
}

/* Reset */
*, *::before, *::after { 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, sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* Number tabular */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
@media (max-width: 720px){ .section{ padding-block: 64px; } .section-sm{ padding-block:48px; } }

.eyebrow {
  display: inline-flex; align-items:center; gap: 8px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before{ content:""; width:20px; height:2px; background: var(--orange); border-radius: 2px; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before{ display:none; }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink-900); }
h2 { font-size: var(--text-h2); margin-top: 14px; }
h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: var(--text-lg); color: var(--ink-500); margin-top: 16px; line-height: 1.65; }
.muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content:center; gap: 8px;
  font-weight: 600; font-size: var(--text-sm);
  padding: 12px 22px; border-radius: var(--r-full);
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-800); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink-900); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { color: var(--blue-800); gap: 12px; }
.btn-lg { padding: 15px 28px; font-size: var(--text-base); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-700);
  padding: 8px 14px; border-radius: var(--r-sm); transition: all .15s;
}
.nav-links a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Portal dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items:center; gap: 6px;
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-700);
  padding: 8px 14px; border-radius: var(--r-sm); background: none; border: none;
}
.dropdown-toggle:hover { color: var(--blue-700); background: var(--blue-50); }
.dropdown-toggle svg { width: 15px; height: 15px; transition: transform .2s; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .18s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--text-sm); font-weight: 500; color: var(--ink-700); }
.dropdown-menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-menu svg{ width:16px; height:16px; color: var(--blue-700); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink-900); }
.nav-toggle svg { width: 26px; height: 26px; }
.mobile-menu { display: none; }

@media (max-width: 960px){
  .nav-links, .nav-cta .btn, .nav-cta .dropdown { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 16px var(--gutter) 24px; transform: translateY(-120%);
    transition: transform .28s cubic-bezier(.16,1,.3,1); z-index: 99; max-height: calc(100vh - 72px); overflow-y:auto;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { display: block; padding: 13px 8px; font-size: 1.05rem; font-weight: 500; color: var(--ink-900); border-bottom: 1px solid var(--surface-2); }
  .mobile-menu .mm-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.1em; color: var(--ink-400); padding: 16px 8px 4px; font-weight:700; }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; transition: all .2s ease;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: var(--text-sm); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px){ .grid-4{ grid-template-columns: repeat(2,1fr);} .grid-3{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface-2); border-block: 1px solid var(--border);
}
.trust-inner { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-block: 40px; }
.trust-item { display:flex; gap: 16px; align-items:flex-start; }
.trust-item .ti-ic { width:44px; height:44px; border-radius: var(--r-md); background: #fff; border:1px solid var(--border); display:grid; place-items:center; color: var(--blue-700); flex-shrink:0; }
.trust-item .ti-ic svg{ width:22px; height:22px; }
.trust-item h4 { font-size: var(--text-base); font-weight:700; margin-bottom:2px; }
.trust-item p { font-size: var(--text-sm); color: var(--ink-500); }
@media (max-width: 860px){ .trust-inner{ grid-template-columns: 1fr; gap:20px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #C7D0E0; padding-block: 64px 32px; }
.footer a { color: #C7D0E0; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity:.95; }
.footer-brand p { font-size: var(--text-sm); color: #98A4BC; max-width: 280px; }
.footer h5 { color: #fff; font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: var(--text-sm); }
.footer-contact li { display:flex; align-items:center; gap:8px; }
.footer-contact svg{ width:15px; height:15px; color: var(--blue-500); flex-shrink:0; }
.footer-bottom { display:flex; justify-content: space-between; align-items:center; gap:16px; padding-top: 24px; font-size: var(--text-xs); color: #7C889E; flex-wrap:wrap; }
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-top{ grid-template-columns: 1fr; } }

/* ---------- App download badges ---------- */
.store-badges { display:flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display:flex; align-items:center; gap: 12px; background: var(--ink-900); color:#fff;
  padding: 10px 20px; border-radius: var(--r-md); transition: all .18s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge svg { width: 26px; height:26px; }
.store-badge .sb-top { font-size: 10px; opacity:.8; line-height:1; }
.store-badge .sb-bot { font-size: 15px; font-weight: 700; line-height: 1.2; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px){ .price-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .price-grid{ grid-template-columns: 1fr;} }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative; transition: all .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.popular { border: 2px solid var(--blue-700); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-700); color: #fff; font-size: var(--text-xs); font-weight: 700;
  padding: 5px 14px; border-radius: var(--r-full); letter-spacing: .03em; white-space:nowrap;
}
.price-name { font-size: var(--text-base); font-weight: 700; color: var(--ink-900); }
.price-amount { display:flex; align-items:baseline; gap: 4px; margin: 14px 0 4px; }
.price-amount .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount .per { font-size: var(--text-sm); color: var(--ink-500); font-weight: 500; }
.price-sub { font-size: var(--text-sm); color: var(--ink-500); min-height: 20px; }
.price-terms { display:flex; flex-wrap:wrap; gap:6px; margin: 14px 0; }
.price-terms span { font-size: var(--text-xs); font-weight:600; color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: var(--r-full); }
.price-features { margin: 4px 0 24px; flex: 1; }
.price-features li { display:flex; gap: 10px; align-items:flex-start; font-size: var(--text-sm); color: var(--ink-700); padding: 7px 0; border-bottom: 1px solid var(--surface-2); }
.price-features li:last-child{ border-bottom:none; }
.price-features svg { width:18px; height:18px; color: var(--blue-700); flex-shrink:0; margin-top:2px; }
.price-card .btn { width: 100%; }

/* ---------- Product feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .fr-media { order: 2; }
.fr-media { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; display:grid; place-items:center; }
.fr-media img { max-height: 380px; width: auto; object-fit: contain; }
.fr-body .chip { display:inline-block; font-size: var(--text-xs); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--blue-700); background: var(--blue-50); padding: 6px 12px; border-radius: var(--r-full); margin-bottom: 16px; }
.fr-body h2 { margin-top: 0; }
.fr-body p { color: var(--ink-500); margin-top: 16px; }
.fr-list { margin-top: 24px; }
.fr-list li { display:flex; gap:12px; align-items:flex-start; padding: 8px 0; font-size: var(--text-base); color: var(--ink-700); }
.fr-list svg { width: 20px; height:20px; color: var(--blue-700); flex-shrink:0; margin-top:3px; }
@media (max-width: 860px){ .feature-row{ grid-template-columns:1fr; gap:32px; } .feature-row.reverse .fr-media{ order:0; } .fr-media{ padding: 28px; } }

/* ---------- Pill / spec table ---------- */
.spec-table { width:100%; border-collapse: collapse; border:1px solid var(--border); border-radius: var(--r-md); overflow:hidden; }
.spec-table th, .spec-table td { text-align:left; padding: 14px 18px; font-size: var(--text-sm); border-bottom:1px solid var(--border); }
.spec-table th { background: var(--surface-2); font-weight:700; color: var(--ink-900); }
.spec-table tr:last-child td { border-bottom:none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-radius: var(--r-xl); padding: 56px 48px; color:#fff; position:relative; overflow:hidden;
}
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 520px; }
.cta-band .btn-primary { background:#fff; color: var(--blue-700); box-shadow: var(--shadow-lg); }
.cta-band .btn-primary:hover { background: var(--blue-50); }
.cta-band .btn-secondary { background: transparent; color:#fff; border-color: rgba(255,255,255,.4); box-shadow:none; }
.cta-band .btn-secondary:hover { border-color:#fff; color:#fff; background: rgba(255,255,255,.1); }
.cta-decor { position:absolute; right:-60px; top:-60px; width: 280px; height:280px; border-radius:50%; background: rgba(255,255,255,.06); }
@media (max-width: 640px){ .cta-band{ padding: 36px 24px; } }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display:block; font-size: var(--text-sm); font-weight:600; margin-bottom: 8px; color: var(--ink-900); }
.form-field label .req { color: var(--orange); }
.form-field input, .form-field textarea {
  width:100%; padding: 12px 14px; font-family: inherit; font-size: var(--text-base);
  border:1px solid var(--border-2); border-radius: var(--r-sm); background:#fff; color: var(--ink-900); transition: all .15s;
}
.form-field input:focus, .form-field textarea:focus { outline:none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-50); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-row{ grid-template-columns:1fr; } }

/* ---------- Contact info cards ---------- */
.contact-card { display:flex; gap:16px; align-items:flex-start; padding: 22px; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--r-md); }
.contact-card .cc-ic { width:44px; height:44px; border-radius: var(--r-md); background:#fff; border:1px solid var(--border); display:grid; place-items:center; color: var(--blue-700); flex-shrink:0; }
.contact-card .cc-ic svg{ width:20px; height:20px; }
.contact-card h4 { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:.08em; color: var(--ink-400); font-weight:700; margin-bottom:4px; }
.contact-card a, .contact-card p { font-size: var(--text-base); font-weight:600; color: var(--ink-900); }
.contact-card a:hover { color: var(--blue-700); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding-block: 72px 64px; }
.page-hero .eyebrow { margin-bottom: 8px; }
.page-hero h1 { font-size: var(--text-h1); }
.page-hero .lead { max-width: 640px; }

/* utilities */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; } .mt-40{ margin-top:40px; }
.flex-btns{ display:flex; gap:12px; flex-wrap:wrap; }
.divider{ height:1px; background: var(--border); border:none; }

/* ---------- Home hero ---------- */
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 88px; }
.hero-copy h1 { font-size: var(--text-hero); margin-top: 18px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero-bg { position:absolute; inset: 0; background:
  radial-gradient(60% 60% at 85% 10%, var(--blue-50) 0%, transparent 60%),
  radial-gradient(50% 50% at 5% 90%, #FBF3EC 0%, transparent 60%); z-index:-1; }
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
  .hero-media img{ height: 340px; }
}
@media (max-width: 480px){ .hero-media img{ height: 260px; } }

/* ---------- Product preview cards ---------- */
.product-card { display:flex; flex-direction:column; padding: 0; overflow:hidden; }
.product-card .pc-media { background: var(--surface-2); border-bottom:1px solid var(--border); padding: 28px; display:grid; place-items:center; height: 220px; }
.product-card .pc-media img { max-height: 164px; width:auto; object-fit: contain; }
.product-card .chip-sm { display:inline-block; font-size: var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--blue-700); margin: 22px 24px 0; }
.product-card h3 { margin: 8px 24px 0; }
.product-card p { color: var(--ink-500); font-size: var(--text-sm); margin: 10px 24px 0; }
.product-card .link-more { display:block; margin: 16px 24px 24px; font-size: var(--text-sm); font-weight:600; color: var(--blue-700); }
.product-card:hover .link-more { color: var(--blue-800); }

/* ---------- App CTA ---------- */
.app-cta-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items:center; position:relative; z-index:1; }
.app-cta-media img { width:100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 860px){ .app-cta-grid{ grid-template-columns:1fr; gap: 28px; } }

/* ---------- Services business areas ---------- */
.areas-grid { gap: 16px; }
.area { background:#fff; border:1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; transition: all .18s; border-left: 3px solid var(--blue-700); }
.area:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.area h4 { font-size: var(--text-base); font-weight:700; margin-bottom: 4px; }
.area p { font-size: var(--text-sm); color: var(--ink-500); }

/* ---------- About values ---------- */
.value-row { display:flex; gap:16px; align-items:flex-start; padding: 20px 0; border-bottom:1px solid var(--border); }
.value-row:last-child{ border-bottom:none; }
.value-row .vr-ic { width:44px; height:44px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue-700); display:grid; place-items:center; flex-shrink:0; }
.value-row .vr-ic svg{ width:22px; height:22px; }
.value-row h4 { font-size: var(--text-lg); font-weight:700; margin-bottom:4px; }
.value-row p { color: var(--ink-500); font-size: var(--text-sm); }

.about-hero-media img { width:100%; height:100%; object-fit:cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; gap:36px; } }
.contact-cards { display:grid; gap:16px; }
.form-panel { background:#fff; border:1px solid var(--border); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-sm); }
.social-links { display:flex; gap:10px; margin-top: 20px; }
.social-links a { width:40px; height:40px; border-radius: var(--r-md); background: var(--surface-2); border:1px solid var(--border); display:grid; place-items:center; color: var(--ink-700); transition: all .18s; }
.social-links a:hover { background: var(--blue-700); color:#fff; border-color: var(--blue-700); }
.social-links svg{ width:18px; height:18px; }
