/* ===========================================================
   PIONERD AI SOLUTIONS — Design System v2
   =========================================================== */

:root {
  --midnight:      #0B0A2F;
  --midnight-deep: #060518;
  --panel:         #14103F;
  --panel-line:    #251E5C;
  --purple:        #260E52;
  --orange:        #FF7A1E;
  --red:           #FF3B3B;
  --lime:          #8EFE13;
  --ink:           #F6F4FF;
  --ink-muted:     #A79FD6;
  --ink-faint:     #6E668F;

  --gradient-brand: linear-gradient(120deg, var(--orange), var(--red));

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
p { margin: 0; color: var(--ink-muted); max-width: 62ch; }
p.lead { font-size: 1.15rem; color: var(--ink); max-width: 46ch; }

.accent-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--gradient-brand); color: var(--midnight-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,80,30,0.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--panel-line); }
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-2px); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid #5A3A22; background: rgba(255,122,30,0.08); color: var(--orange);
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6,5,24,0.78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--panel-line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 800; font-size: 0.98rem; }
.brand .mark { width: 26px; height: 26px; object-fit: contain; }
.brand .logo-wide { height: 38px; width: auto; object-fit: contain; }
.footer-brand .logo-wide { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-muted); transition: color 0.15s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:''; position:absolute; left:0; right:0; bottom:-26px; height:2px; background: var(--gradient-brand); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

.mobile-drawer { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--panel-line); background: var(--midnight-deep); }
.mobile-drawer.open { display: flex; }
.mobile-drawer a { padding: 0.7rem 0; font-weight: 600; color: var(--ink-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ---------- Section spacing ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { margin-top: 0.9rem; }
.divider { height: 1px; background: var(--panel-line); border: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); transition: border-color 0.2s ease, transform 0.2s ease;
}
.panel:hover { border-color: #3a2f7a; transform: translateY(-3px); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual, .feature-row.reverse .feature-copy { order: unset; }
}
.feature-copy .kicker { color: var(--orange); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.75rem; display: block; }
.feature-copy h3 { margin-bottom: 0.9rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature-copy p { margin-top: 0.9rem; }
.feature-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink); font-size: 0.95rem; }
.feature-list li svg { flex: none; margin-top: 3px; }

.feature-visual {
  aspect-ratio: 4/3.1; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  transition: border-color 0.2s ease;
}
.feature-visual:hover { border-color: #3a2f7a; }
.feature-visual .glow { position: absolute; inset: -20%; background: radial-gradient(circle at 32% 28%, rgba(255,122,30,0.30), transparent 62%); }
.feature-visual svg { position: relative; z-index: 1; }

/* ---------- Blended hero orb (no box) ---------- */
.hero-orb-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.hero-orb-wrap .ray {
  position: absolute;
  border: 1px solid rgba(255,122,30,0.18);
  border-radius: 50%;
}
.hero-orb-wrap .ray.r1 { width: 340px; height: 340px; animation: spin 40s linear infinite; }
.hero-orb-wrap .ray.r2 { width: 460px; height: 460px; border-color: rgba(255,59,59,0.12); animation: spin 60s linear infinite reverse; }
.hero-orb-wrap .ray.r3 { width: 580px; height: 580px; border-color: rgba(142,254,19,0.08); animation: spin 80s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-orb-wrap .glow-field {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,122,30,0.34), rgba(255,59,59,0.12) 42%, transparent 68%);
  filter: blur(6px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }

.hero-orb-wrap img.logo-float {
  position: relative; z-index: 2;
  width: 42%;
  filter: drop-shadow(0 20px 50px rgba(255,60,30,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }

@media (max-width: 860px) {
  .hero-orb-wrap { min-height: 300px; }
  .hero-orb-wrap .ray.r2, .hero-orb-wrap .ray.r3 { display: none; }
}

/* ---------- Hero grid (was inline, missing mobile breakpoint) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-orb-wrap { display: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-brand); border: none; color: var(--midnight-deep);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 22px rgba(255,80,30,0.32);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Idle float (restrained, used on small icons) ---------- */
@keyframes idleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.feature-visual svg, .industry-card .icon-wrap svg, .moment-card .icon svg {
  animation: idleFloat 5.5s ease-in-out infinite;
}

/* ---------- Pricing "most popular" indicator ---------- */
.mini-badge {
  display: inline-block; margin-left: 0.6rem;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 800;
  padding: 0.22rem 0.55rem; border-radius: 999px;
  background: var(--gradient-brand); color: var(--midnight-deep);
  vertical-align: middle; letter-spacing: 0.02em;
}

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-line); border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--panel); padding: clamp(1.5rem, 3vw, 2.2rem); transition: background 0.2s ease; }
.stat-cell:hover { background: #191348; }
.stat-cell .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.5vw, 2.7rem); background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cell .label { margin-top: 0.4rem; font-size: 0.9rem; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Problem section (redesigned) ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.moment-list { display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 821px) { .moment-list { margin-top: 3.3rem; } }
.moment-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; transition: border-color 0.2s ease, transform 0.2s ease;
}
.moment-card:hover { border-color: var(--orange); transform: translateX(4px); }
.moment-card .icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: rgba(255,122,30,0.1); display: flex; align-items: center; justify-content: center;
}
.moment-card span { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.problem-footer { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--panel-line); }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Steps (fixed alignment) ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.5rem; align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--panel-line); }
.step:last-child { border-bottom: 1px solid var(--panel-line); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink-faint); line-height: 1.3; }
.step h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.step p { margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Industry cards (homepage teaser, variant styling) ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.industry-card {
  display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative; overflow: hidden;
}
.industry-card:hover { transform: translateY(-4px); }
.industry-card .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.industry-card.c1 .icon-wrap { background: rgba(255,122,30,0.14); }
.industry-card.c1:hover { border-color: var(--orange); }
.industry-card.c2 .icon-wrap { background: rgba(142,254,19,0.12); }
.industry-card.c2:hover { border-color: var(--lime); }
.industry-card.c3 .icon-wrap { background: rgba(255,59,59,0.14); }
.industry-card.c3:hover { border-color: var(--red); }
.industry-card .tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.industry-card .tags span { font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--ink-muted); }
@media (max-width: 820px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 1.1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--panel-line); font-size: 0.95rem; }
.pricing-table th { font-family: var(--font-head); font-weight: 800; background: var(--panel); }
.pricing-table td { color: var(--ink-muted); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td.tier-name { color: var(--ink); font-weight: 700; font-family: var(--font-head); }
.pricing-table td.price { color: var(--orange); font-weight: 700; }
.pricing-table .popular-row { border-left: 3px solid var(--orange); background: rgba(255,122,30,0.025); }
.pricing-table tr { transition: background 0.15s ease; }
.pricing-table tbody tr:hover { background: rgba(255,122,30,0.09); }
@media (max-width: 720px) {
  .pricing-table thead { display: none; }
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td { display: block; width: 100%; }
  .pricing-table tr { border-bottom: 1px solid var(--panel-line); padding: 1rem 0; }
  .pricing-table td { border: none; padding: 0.3rem 1.4rem; }
  .pricing-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-family: var(--font-head); font-weight: 700; color: var(--ink);
  }
}

/* ---------- CTA band (fixed glow bug) ---------- */
.cta-band {
  border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--panel) 60%, #1c1550 100%);
  border: 1px solid var(--panel-line);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band .cta-copy { max-width: 480px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .orb {
  position: absolute; width: 260px; height: 260px; right: -60px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,122,30,0.22), transparent 72%);
  border-radius: 50%; pointer-events: none;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--panel-line); padding: 3.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 0; font-size: 0.9rem; max-width: 30ch; }
.footer-brand .brand { height: 1.4rem; margin-bottom: 1rem; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.85rem; color: var(--ink); margin: 0 0 1rem 0; }
.footer-col a, .footer-col span { display: block; font-size: 0.88rem; color: var(--ink-muted); padding: 0.35rem 0; }
.footer-col a.social-link { display: flex; align-items: center; gap: 0.5rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--panel-line); font-size: 0.82rem; color: var(--ink-faint); flex-wrap: wrap; gap: 1rem; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--panel-line); }
.page-hero .badge { margin-bottom: 1.4rem; }
.page-hero p.lead { margin-top: 1.1rem; }

/* ---------- Belief/feature panel grids (were inline, missing mobile breakpoint) ---------- */
.believe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.believe-grid.two-col { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 720px) {
  .believe-grid, .believe-grid.two-col { grid-template-columns: 1fr; }
}

/* ---------- Contact cards grid (was inline, missing mobile breakpoint) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Contact cards ---------- */
.contact-card { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.contact-card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,122,30,0.12); display: flex; align-items: center; justify-content: center; }
.copy-btn {
  background: none; border: 1px solid var(--panel-line); color: var(--ink);
  padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  text-align: left; display: inline-flex; align-items: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.copy-btn.copied { border-color: var(--lime); color: var(--lime); }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.flex { display: flex; align-items: center; }
.gap-1 { gap: 0.75rem; } .gap-2 { gap: 1.25rem; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
