/* Invoxn — Premium landing v3 */

:root {
  --primary: #0056b3;
  --primary-dark: #003d80;
  --accent: #2ec4d6;
  --accent-soft: rgba(46, 196, 214, 0.15);
  --ink: #0f1419;
  --ink-2: #3d4654;
  --ink-muted: #6b7585;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-muted: #eef1f5;
  --border: #e2e8f0;
  --dark: #0c1017;
  --dark-2: #161b26;
  --success: #0d9f6e;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 20, 25, 0.12);
  --nav-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container-xl {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: min(280px, 58vw);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--bg-muted);
}

.mobile-menu a:last-child { border: none; }

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 86, 179, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: var(--bg-soft);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover { background: var(--dark-2); color: #fff; }

.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

/* Badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid rgba(0, 86, 179, 0.12);
}

.badge-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 86, 179, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 86, 179, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 214, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  margin: 1rem 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font);
}

.metric span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-visual-wrap {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}

.hero-frame img { width: 100%; }

.float-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  animation: float 4s ease-in-out infinite;
}

.float-card-1 {
  top: 12%;
  left: -8%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 18%;
  right: -6%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.pending { background: var(--warning); }
.status-dot.approved { background: var(--success); }

/* Marquee */
.marquee-wrap {
  background: var(--dark);
  color: #94a3b8;
  padding: 0.85rem 0;
  overflow: hidden;
  border-block: 1px solid #1e293b;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  gap: 3rem;
}

.marquee-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track .hl { color: var(--accent); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-head {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 42rem;
}

/* Problem */
.problem-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.pain-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Bento */
.bento {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .bento-item-lg { grid-column: span 2; }
  .bento-item-tall { grid-row: span 2; }
}

.bento-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  height: 100%;
}

.bento-card:hover {
  border-color: rgba(0, 86, 179, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(0, 86, 179, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.bento-card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.bento-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.bento-card img {
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  border: 1px solid var(--border);
}

/* Showcase */
.showcase-row {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.showcase-row:last-child { margin-bottom: 0; }

@media (min-width: 992px) {
  .showcase-row { grid-template-columns: 1fr 1fr; }
  .showcase-row.reverse .showcase-copy { order: 2; }
  .showcase-row.reverse .showcase-media { order: 1; }
}

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.showcase-copy h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.feature-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink-2);
}

/* Workflow timeline */
.workflow-section {
  background: var(--dark);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.workflow-section .section-head { color: #fff; }
.workflow-section .section-sub { color: #94a3b8; }

.timeline {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.timeline-step {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  position: relative;
  padding: 0 1rem 0 0;
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.timeline-step:last-child::after { display: none; }

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.timeline-step h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.timeline-step p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #334155;
  color: #94a3b8;
}

.status-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(46, 196, 214, 0.1);
}

/* Roles */
.roles-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
}

.role-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.role-card:hover::before { opacity: 1; }

.role-card.featured {
  border-color: rgba(0, 86, 179, 0.3);
  box-shadow: var(--shadow);
}

.role-card.featured::before { opacity: 1; }

.role-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.role-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Stats band */
.stats-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0077c8 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-block strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  font-family: var(--font);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-block span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}

.faq-a-inner {
  padding: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-a { max-height: 320px; }

@media (max-width: 767.98px) {
  .float-card { display: none; }
}

/* CTA */
.cta-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(46, 196, 214, 0.08), transparent 60%);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-panel p {
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.5fr 2fr; }
}

.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

.footer-links h4 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  margin: 0 0 0.75rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.bg-soft { background: var(--bg-soft); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
