/* ══════════════════════════════════════════════════════
   eWorks Online — Shared Design System
   ══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-deep: #0F172A;
  --navy-light: #132D5E;
  --sky: #0EA5E9;
  --sky-hover: #0284C7;
  --sky-pale: #7DD3FC;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --emerald: #10B981;
  --violet: #8B5CF6;
  --red: #EF4444;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --heading: 'Plus Jakarta Sans', sans-serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(11,29,58,.08);
  --shadow-md: 0 4px 14px rgba(11,29,58,.10);
  --shadow-lg: 0 10px 40px rgba(11,29,58,.12);
  --shadow-xl: 0 24px 60px rgba(11,29,58,.16);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); color: var(--gray-700); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
.label { font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }

/* ── Animations ── */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════
   NAVIGATION — matches index.html header
   ══════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200); transition: all .35s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: .55rem; }
.nav-brand .brand-mark {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--amber); display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 800; font-size: .8rem; color: var(--navy);
}
.nav-brand .brand-text {
  font-family: var(--heading); font-weight: 800; font-size: 1.15rem;
  color: var(--navy); letter-spacing: -.02em;
}
.nav-brand .brand-text span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  padding: .5rem 1rem; font-family: var(--heading); font-weight: 500; font-size: .85rem;
  color: var(--gray-600); border-radius: var(--r-sm); transition: all .2s;
}
.nav-links a:hover { color: var(--sky); background: var(--gray-50); }
.nav-btn {
  padding: .7rem 1.6rem; background: var(--sky); color: var(--white);
  font-family: var(--heading); font-weight: 700; font-size: .88rem;
  border-radius: var(--r-md); transition: all .22s var(--ease);
  box-shadow: 0 4px 16px rgba(14,165,233,.3);
}
.nav-btn:hover { background: var(--sky-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(14,165,233,.35); }

/* ── Hero ── */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%); overflow: hidden; padding: 8rem 0 5rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(14,165,233,.12) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.06) 0%, transparent 50%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content { animation: rise .8s var(--ease) both; }
.hero-content .label { margin-bottom: 1rem; display: inline-block; }
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content h1 .highlight { background: linear-gradient(135deg, var(--sky), var(--sky-pale)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { color: rgba(255,255,255,.7); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }
.hero-image { animation: rise .8s var(--ease) .15s both; }
.hero-image img { border-radius: var(--r-xl); box-shadow: var(--shadow-xl); width: 100%; height: 380px; object-fit: cover; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }

/* ── Content Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-image img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; height: 360px; object-fit: cover; }

.content-text h2 { margin-bottom: 1rem; }
.content-text p { color: var(--gray-600); font-size: 1.05rem; }

/* ── Feature Lists ── */
.feature-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .8rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; color: var(--gray-700); }
.feature-list .icon { flex-shrink: 0; width: 22px; height: 22px; background: linear-gradient(135deg, var(--sky), #38BDF8); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-list .icon svg { width: 12px; height: 12px; }

/* ── Highlight Cards ── */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.highlight-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 1.8rem; transition: all .3s var(--ease); }
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky); }
.highlight-card .card-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.highlight-card .card-icon.sky { background: rgba(14,165,233,.1); color: var(--sky); }
.highlight-card .card-icon.amber { background: rgba(245,158,11,.1); color: var(--amber); }
.highlight-card .card-icon.emerald { background: rgba(16,185,129,.1); color: var(--emerald); }
.highlight-card .card-icon.violet { background: rgba(139,92,246,.1); color: var(--violet); }
.highlight-card h4 { margin-bottom: .5rem; }
.highlight-card p { font-size: .9rem; color: var(--gray-500); margin: 0; }

/* ── Stats Bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3rem 0; }
.stat-item { text-align: center; }
.stat-item .stat-value { font-family: var(--heading); font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, var(--sky), var(--amber)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .stat-label { font-size: .85rem; color: var(--gray-500); margin-top: .3rem; }

/* ── Benefit Strips ── */
.benefit-strip { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200); }
.benefit-strip:last-child { border-bottom: none; }
.benefit-num { font-family: var(--heading); font-size: 2.8rem; font-weight: 800; color: var(--gray-200); line-height: 1; }
.benefit-text h4 { margin-bottom: .3rem; }
.benefit-text p { margin: 0; font-size: .95rem; color: var(--gray-500); }

/* ── Workflow Steps ── */
.workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; counter-reset: step; }
.workflow-step { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 2rem 1.5rem 1.5rem; text-align: center; counter-increment: step; }
.workflow-step::before { content: counter(step, decimal-leading-zero); font-family: var(--heading); font-size: 2.5rem; font-weight: 800; color: var(--gray-100); position: absolute; top: .5rem; left: 1.2rem; }
.workflow-step .step-icon { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(14,165,233,.08); display: flex; align-items: center; justify-content: center; color: var(--sky); position: relative; z-index: 1; }
.workflow-step h4 { position: relative; z-index: 1; margin-bottom: .4rem; }
.workflow-step p { position: relative; z-index: 1; font-size: .85rem; color: var(--gray-500); margin: 0; }

/* ── CTA Section ── */
.cta-section { padding: 5rem 0; background: linear-gradient(165deg, var(--navy-deep), var(--navy)); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(14,165,233,.1) 0%, transparent 70%); }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; position: relative; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; position: relative; }
.btn-primary { padding: .85rem 2rem; background: var(--sky); color: var(--white); font-weight: 600; font-size: .95rem; border-radius: var(--r-sm); transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: .5rem; }
.btn-primary:hover { background: var(--sky-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.3); }
.btn-outline { padding: .85rem 2rem; border: 1.5px solid rgba(255,255,255,.25); color: var(--white); font-weight: 600; font-size: .95rem; border-radius: var(--r-sm); transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: .5rem; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); }

/* ── Related Capabilities ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.related-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); transition: all .3s var(--ease); }
.related-card:hover { border-color: var(--sky); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card .rc-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(14,165,233,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sky); }
.related-card .rc-text h4 { font-size: .95rem; margin-bottom: .15rem; }
.related-card .rc-text p { font-size: .8rem; color: var(--gray-500); margin: 0; }

/* ══════════════════════════════════════════════════════
   FOOTER — matches index.html (max 7 per column)
   ══════════════════════════════════════════════════════ */
.footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand p { font-size: .8rem; line-height: 1.7; color: rgba(255,255,255,.4); margin-top: 1rem; max-width: 280px; }
.footer__col h4 { font-family: var(--heading); font-weight: 600; font-size: .75rem; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__link { display: block; font-size: .8rem; color: rgba(255,255,255,.35); padding: .25rem 0; transition: color .2s; }
.footer__link:hover { color: rgba(255,255,255,.7); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .72rem; color: rgba(255,255,255,.25); }
.footer .brand { display: flex; align-items: center; gap: .55rem; }
.footer .brand__icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 800; font-size: .8rem; color: var(--navy); }
.footer .brand__text { font-family: var(--heading); font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: -.02em; }
.footer .brand__text span { color: var(--amber); }

/* ── Responsive ── */
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .hero-grid, .content-grid, .content-grid.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid.reverse > *:first-child { order: 2; }
  .content-grid.reverse > *:last-child { order: 1; }
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-image img, .content-image img { height: 260px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .nav-links { display: none; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
