/* JirexAI corporate site — hand-authored stylesheet (no framework).
   Dark enterprise theme: zinc base, indigo/cyan accents. */

:root {
  --bg: #09090b;          /* zinc-950 */
  --panel: #18181b;       /* zinc-900 */
  --panel-50: rgba(24, 24, 27, 0.5);
  --border: #27272a;      /* zinc-800 */
  --border-50: rgba(39, 39, 42, 0.5);
  --fg: #fafafa;          /* zinc-50 */
  --muted: #a1a1aa;       /* zinc-400 */
  --muted-2: #71717a;     /* zinc-500 */
  --indigo: #6366f1;
  --indigo-400: #818cf8;
  --indigo-300: #a5b4fc;
  --cyan-400: #22d3ee;
  --emerald-400: #34d399;
  --purple-400: #c084fc;
  --maxw: 80rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.icon { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.icon-sm { width: 1rem; height: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: 0.5rem; border: 1px solid transparent;
  font-weight: 500; font-size: 0.875rem; cursor: pointer;
  padding: 0.55rem 1rem; transition: background-color .2s, box-shadow .3s, color .2s, transform .2s;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-glow {
  background: var(--indigo); color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.btn-glow:hover { background: var(--indigo-400); box-shadow: 0 0 30px rgba(99, 102, 241, 0.6); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { background: var(--border); }
.btn .icon-sm { transition: transform .2s; }
.btn-glow:hover .icon-sm { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--border-50);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-mark { color: var(--indigo); display: inline-flex; }
.brand-mark .icon { width: 2rem; height: 2rem; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--fg); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links > a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links > a:hover { color: var(--indigo-400); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--panel-50);
  border-radius: 0.375rem; padding: 0.35rem 0.7rem; font-size: 0.75rem; font-weight: 500;
  color: var(--muted) !important; transition: background-color .2s, color .2s;
}
.lang:hover { background: var(--border); color: var(--fg) !important; }
.nav-mobile { display: flex; align-items: center; gap: 1rem; }
.menu-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0.25rem; }
.menu-toggle:hover { color: var(--fg); }
.mobile-menu {
  display: flex; flex-direction: column; gap: 1rem;
  border-top: 1px solid var(--border); background: var(--bg); padding: 1rem;
}
.mobile-menu a:not(.btn) { color: var(--muted); font-weight: 500; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-mobile { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  padding: 6rem 1rem 4rem; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; }
.glow { position: absolute; border-radius: 9999px; }
.glow-indigo { width: 40rem; height: 40rem; max-width: 90vw; max-height: 90vw; background: rgba(79, 70, 229, 0.2); filter: blur(120px); }
.glow-cyan { width: 30rem; height: 30rem; max-width: 70vw; max-height: 70vw; background: rgba(6, 182, 212, 0.1); filter: blur(100px); transform: translate(40%, 25%); }
.hero-inner { position: relative; z-index: 10; max-width: 64rem; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.3); background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-300); border-radius: 9999px; padding: 0.4rem 1rem;
  font-size: 0.875rem; font-weight: 500; backdrop-filter: blur(4px);
}
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--indigo); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.hero-title { font-size: clamp(2.75rem, 8vw, 6rem); font-weight: 700; line-height: 1.05; color: var(--fg); }
.gradient-text { background: linear-gradient(90deg, var(--indigo-400), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-sm { display: none; }
@media (min-width: 640px) { .br-sm { display: block; } }
.hero-desc { max-width: 42rem; margin: 2rem auto 0; font-size: 1.125rem; color: var(--muted); }
@media (min-width: 640px) { .hero-desc { font-size: 1.25rem; } }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.hero-actions .btn { width: 100%; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } .hero-actions .btn { width: auto; } }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); color: var(--muted-2); animation: bounce 1.5s infinite; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 6rem 0; }
@media (min-width: 640px) { .section { padding: 8rem 0; } }
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; color: var(--fg); }
.section-desc { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
.eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--indigo-400); margin-bottom: 0.5rem; }

/* ---------- Solutions cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 4rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); margin-top: 5rem; } }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--border-50);
  background: var(--panel-50); border-radius: 1rem; padding: 2rem; transition: background-color .25s;
}
.card:hover { background: var(--panel); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--fg); }
.card-desc { margin-top: 1rem; color: var(--muted); line-height: 1.75; }
.ic-emerald { background: rgba(52, 211, 153, 0.1); color: var(--emerald-400); }
.ic-indigo  { background: rgba(129, 140, 248, 0.1); color: var(--indigo-400); }
.ic-cyan    { background: rgba(34, 211, 238, 0.1); color: var(--cyan-400); }
.ic-purple  { background: rgba(192, 132, 252, 0.1); color: var(--purple-400); }

/* ---------- Technology ---------- */
.tech { overflow: hidden; border-top: 1px solid var(--border-50); }
.tech-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at top, rgba(49, 46, 129, 0.2), var(--bg) 55%); }
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.tech-copy .section-title { text-align: left; }
.tech-copy .section-desc { text-align: left; }
.features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.feature { position: relative; padding-left: 2.25rem; color: var(--muted); line-height: 1.75; }
.feature-icon { position: absolute; left: 0; top: 0.15rem; width: 1.25rem; height: 1.25rem; color: var(--indigo); }
.feature dt { display: inline; font-weight: 600; color: var(--fg); }
.feature dt .feature-icon { display: inline; }
.feature dd { display: inline; margin: 0 0 0 0.35rem; }
.tech-visual { display: flex; align-items: center; justify-content: center; }
.metrics-card { position: relative; width: 100%; max-width: 32rem; border: 1px solid var(--border-50); background: var(--panel-50); border-radius: 1rem; padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); }
.metrics-glow { position: absolute; inset: -4px; border-radius: 1rem; background: linear-gradient(90deg, var(--indigo), var(--cyan-400)); opacity: 0.2; filter: blur(20px); z-index: -1; }
.metrics-inner { position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.metric-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1rem; font-size: 0.875rem; color: var(--muted); }
.metric-row.last { border-bottom: none; padding-bottom: 0.5rem; }
.metric-val { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--emerald-400); }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--border-50); }
.form-wrap { max-width: 36rem; margin: 4rem auto 0; }
.form-card { border: 1px solid var(--border-50); background: var(--panel-50); border-radius: 1rem; padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); backdrop-filter: blur(16px); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-bottom: 0.6rem; }
.input {
  width: 100%; border: 1px solid var(--border); background: rgba(9, 9, 11, 0.5);
  border-radius: 0.5rem; padding: 0.6rem 0.75rem; font-size: 0.875rem; color: var(--fg);
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4); }
.textarea { resize: vertical; min-height: 7rem; }
.disclaimer { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-2); }
.success-card { border: 1px solid rgba(52, 211, 153, 0.2); background: rgba(52, 211, 153, 0.1); border-radius: 1rem; padding: 3rem; text-align: center; animation: pop .3s ease-out; }
.success-icon { width: 4rem; height: 4rem; color: var(--emerald-400); margin: 0 auto 1.5rem; }
.success-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.success-card p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 3rem 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-desc { font-size: 0.875rem; max-width: 24rem; margin-top: 1rem; }
.social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social a { color: var(--muted-2); transition: color .2s; }
.social a:hover { color: var(--indigo-400); }
.social .icon { width: 1.25rem; height: 1.25rem; }
.footer-col h4 { font-weight: 600; color: var(--fg); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-col a:hover { color: var(--indigo-400); }
.footer-bottom { max-width: var(--maxw); margin: 3rem auto 0; padding: 2rem 1rem 0; border-top: 1px solid var(--border-50); text-align: center; font-size: 0.75rem; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-25%); } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot, .hero-scroll { animation: none; }
}
