/* =========================================================
   INTRYS - Modern SaaS visual layer
   Reusable building blocks for the redesigned, problem-first
   pages. Layered on top of style.css + components.css.
   ========================================================= */

/* ---- Tokens (extend brand palette without breaking existing) ---- */
:root {
  --grad-blue:    linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #a855f7 100%);
  --grad-aurora:  linear-gradient(120deg, #0a1f3f 0%, #1e3a8a 40%, #6366f1 80%, #ec4899 100%);
  --grad-mint:    linear-gradient(135deg, #16a34a 0%, #06b6d4 100%);
  --grad-warm:    linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-soft:    linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  --glass-bg:     rgba(255,255,255,0.62);
  --glass-bd:     rgba(255,255,255,0.55);
  --glass-shadow: 0 20px 60px -20px rgba(15, 23, 42, .25);
  --ring-blue:    0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent);
}
[data-theme="dark"] {
  --grad-soft:    linear-gradient(135deg, #0b1220 0%, #1a1430 100%);
  --glass-bg:     rgba(20, 28, 48, 0.55);
  --glass-bd:     rgba(255,255,255,0.08);
  --glass-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}

/* ---- Aurora / mesh hero background ---- */
.hero-aurora {
  position: relative;
  overflow: hidden;
  background: var(--grad-aurora);
  color: #fff;
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 64px);
  isolation: isolate;
}
.hero-aurora::before, .hero-aurora::after {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(99,102,241,.55), transparent 70%),
    radial-gradient(35% 35% at 80% 20%, rgba(236,72,153,.45), transparent 70%),
    radial-gradient(40% 40% at 70% 80%, rgba(34,197,247,.45), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float 18s ease-in-out infinite alternate;
}
.hero-aurora::after {
  background:
    radial-gradient(30% 30% at 50% 50%, rgba(255,255,255,.10), transparent 70%);
  animation-duration: 24s;
}
@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(20px, -16px, 0) scale(1.06); }
  100% { transform: translate3d(-18px, 14px, 0) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora::before, .hero-aurora::after { animation: none; }
}

/* Grid overlay for tech feel */
.hero-aurora .grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 80%);
}

/* Hero typography */
.hero-aurora .eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.hero-aurora h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 18px 0 14px;
  font-weight: 800;
  color: #fff;
  max-width: 18ch;
}
.hero-aurora h1 .accent {
  background: linear-gradient(90deg, #f7d840, #fbbf24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-aurora .lede {
  font-size: clamp(15px, 1.4vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  margin: 0 0 22px;
}
.hero-aurora .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-aurora .trust-row {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 22px 36px; align-items: center;
  color: rgba(255,255,255,.78); font-size: 13.5px;
}
.hero-aurora .trust-row strong { color: #fff; font-weight: 700; }
.hero-aurora .trust-row .sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }

/* ---- Glass card ---- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}

/* ---- Section wrappers ---- */
.section-pad { padding-block: clamp(48px, 6vw, 96px); }
.section-soft { background: var(--grad-soft); border-radius: clamp(20px, 2.5vw, 32px); padding: clamp(40px, 5vw, 80px); }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1; letter-spacing: -.02em;
  font-weight: 800; margin: 0 0 14px; max-width: 22ch;
}
.section-lede { font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-2); max-width: 62ch; margin: 0; }

/* ---- Problem cards ---- */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.problem-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.problem-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--grad-blue); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: opacity .3s;
}
.problem-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -20px rgba(37,99,235,.25); }
.problem-card:hover::before { opacity: 1; }
.problem-card .pc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 12px 30px -12px rgba(37,99,235,.6);
}
.problem-card h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.problem-card .pc-pain { color: var(--ink-2); font-size: 14px; margin: 0; }
.problem-card .pc-solve {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.problem-card .pc-solve strong { color: var(--blue); font-weight: 700; }
.problem-card .pc-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--blue);
}
.problem-card .pc-link i { transition: transform .2s; }
.problem-card:hover .pc-link i { transform: translateX(4px); }

/* ---- Industry strip ---- */
.industry-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.industry-tile {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 22px 16px; text-align: center; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .25s var(--ease), border-color .2s, background .2s;
}
.industry-tile:hover { transform: translateY(-4px); border-color: var(--blue); background: color-mix(in srgb,var(--blue) 4%, var(--card)); }
.industry-tile .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.industry-tile span { font-weight: 700; font-size: 14px; }
.industry-tile small { color: var(--muted); font-size: 12px; }

/* ---- Before / After ---- */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } .ba-grid .ba-arrow { display: none; } }
.ba-side { padding: 28px; background: var(--card); }
.ba-side.before { background: color-mix(in srgb, var(--red) 5%, var(--card)); }
.ba-side.after  { background: color-mix(in srgb, var(--green) 6%, var(--card)); }
.ba-side h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ba-side.before h4 i { color: var(--red); }
.ba-side.after  h4 i { color: var(--green); }
.ba-side ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ba-side ul li { font-size: 14.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.ba-side.before ul li::before { content: "\f00d"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--red); position: absolute; left: 0; top: 1px; }
.ba-side.after  ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--green); position: absolute; left: 0; top: 1px; }
.ba-arrow {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-blue); color: #fff;
  padding: 0 22px; font-size: 22px;
}

/* ---- Stats band ---- */
.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-aurora); color: #fff;
  position: relative; isolation: isolate;
}
.stat-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 90%);
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.stat .num .accent { background: linear-gradient(90deg,#f7d840,#fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 13.5px; color: rgba(255,255,255,.78); margin-top: 4px; }

/* ---- Solution module (problem -> solution -> benefit) ---- */
.solution-module {
  display: grid; grid-template-columns: 1.1fr 1.3fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
}
.solution-module + .solution-module { border-top: 1px dashed var(--line); }
.solution-module.flip { grid-template-columns: 1.3fr 1.1fr; }
.solution-module.flip .sm-visual { order: -1; }
@media (max-width: 880px) {
  .solution-module, .solution-module.flip { grid-template-columns: 1fr; }
  .solution-module.flip .sm-visual { order: 0; }
}
.sm-text .kicker { color: var(--blue); }
.sm-text h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 6px 0 10px; letter-spacing: -.02em; }
.sm-text p.lede { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.sm-text .bullets { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.sm-text .bullets li { padding-left: 30px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.sm-text .bullets li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1;
}

/* "Visual" mock card on the side */
.sm-visual {
  background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 30px 70px -30px rgba(15,23,42,.25);
  position: relative; overflow: hidden;
}
.sm-visual::after {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; height: 60%;
  background: var(--grad-blue); opacity: .12; filter: blur(30px); border-radius: 50%;
  pointer-events: none;
}
.sm-visual .v-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sm-visual .v-dot { width: 12px; height: 12px; border-radius: 50%; }
.sm-visual .v-dot.r { background: #ef4444; }
.sm-visual .v-dot.y { background: #f59e0b; }
.sm-visual .v-dot.g { background: #10b981; }
.sm-visual .v-title { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sm-visual .v-rows { display: flex; flex-direction: column; gap: 10px; }
.sm-visual .v-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--bg-alt); font-size: 13px; }
.sm-visual .v-row .v-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-blue); font-size: 12px; }
.sm-visual .v-row .v-meter { margin-left: auto; width: 80px; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.sm-visual .v-row .v-meter span { display: block; height: 100%; background: var(--grad-blue); }

/* ---- Pull-quote / testimonial ---- */
.pq {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
@media (max-width: 720px) { .pq { grid-template-columns: 1fr; text-align: left; } }
.pq .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; flex-shrink: 0; }
.pq blockquote { margin: 0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.pq cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: 14px; }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--grad-aurora); color: #fff;
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 70% 50%, rgba(247,216,64,.25), transparent 70%);
}
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -.02em; }
.cta-banner p { color: rgba(255,255,255,.82); margin: 0; }

/* ---- Logo strip / "trusted by" ---- */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: center; gap: 28px; opacity: .85; }
.logo-strip .lg { font-weight: 700; font-size: 15px; color: var(--muted); text-align: center; letter-spacing: .02em; }
.logo-strip .lg i { margin-right: 6px; color: var(--blue); }

/* ---- Steps timeline ---- */
.timeline { display: grid; gap: 16px; counter-reset: t; }
.timeline .ti { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); position: relative; }
.timeline .ti > div:first-child { display: none; } /* legacy placeholder slot - badge now comes from ::before */
.timeline .ti::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  grid-column: 1; grid-row: 1;
}
.timeline .ti > div:last-child { grid-column: 2; grid-row: 1; min-width: 0; }
.timeline .ti h4 { margin: 0 0 4px; font-size: 16px; }
.timeline .ti p  { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Smooth scroll for hash anchors ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
