:root {
  --bg: #f7f9fe;
  --surface: #ffffff;
  --surface-2: #f0f4ff;
  --ink: #071222;
  --muted: #60708a;
  --line: #e4e9f5;
  --primary: #5b3df6;
  --primary-dark: #3f2fd0;
  --accent: #27c2ff;
  --navy: #07111f;
  --navy-2: #101d35;
  --success: #19b681;
  --warning: #f2a900;
  --danger: #dc3545;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 22px 65px rgba(7, 18, 34, 0.12);
  --shadow-soft: 0 12px 35px rgba(7, 18, 34, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 61, 246, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(39, 194, 255, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; border-radius: 999px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.narrow { max-width: 820px; }
.centered { text-align: center; }
.top-gap { margin-top: 2rem; }
.no-top { padding-top: 0 !important; }
.align-start { align-items: start !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.site-header.header-on-dark:not(.scrolled) .brand-text,
.site-header.header-on-dark:not(.scrolled) .site-nav a:not(.nav-cta),
.site-header.header-on-dark:not(.scrolled) .logout-form button {
  color: rgba(255, 255, 255, 0.92);
}
.site-header.header-on-dark:not(.scrolled) .site-nav a:not(.nav-cta)::after {
  background: #ffffff;
}
.site-header.header-on-dark:not(.scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.site-header.header-on-dark:not(.scrolled) .nav-toggle span { background: #ffffff; }
.site-header.scrolled .brand-text { color: var(--ink); }
.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(91, 61, 246, 0.28);
}
.brand-text { font-size: 1rem; text-transform: uppercase; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 720;
  font-size: 0.92rem;
  color: #29364a;
}
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.42rem;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--primary);
  transition: width 0.22s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }
.nav-cta,
.logout-form button {
  display: inline-flex;
  border: 0;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 25px rgba(91, 61, 246, 0.25);
  cursor: pointer;
  font-weight: 800;
}
.nav-cta.ghost { background: #eef1ff; color: var(--primary-dark); box-shadow: none; }
.logout-form { margin: 0; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 10px;
}

.section { padding: 92px 0; }
.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 61, 246, 0.48), transparent 35rem),
    radial-gradient(circle at 92% 18%, rgba(39, 194, 255, 0.24), transparent 33rem),
    linear-gradient(135deg, #07111f 0%, #0d1730 55%, #111d3b 100%);
  position: relative;
  overflow: hidden;
}
.section-light,
.section-muted {
  background:
    radial-gradient(circle at 10% 0%, rgba(91, 61, 246, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,249,254,0.96));
}
.section-muted { background-color: var(--surface-2); }

.hero { padding: 108px 0 150px; margin-top: -76px; padding-top: 172px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 4rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: #91e7ff; }
.eyebrow.small { font-size: 0.68rem; margin-bottom: 0.5rem; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.055em; }
/* h1 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); } */
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0; color: var(--muted); }
.section-dark p { color: rgba(255,255,255,0.75); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); margin-top: 1.4rem; max-width: 680px; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.96rem 1.35rem;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(91, 61, 246, 0.28);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(91, 61, 246, 0.32); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: none;
}
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 16px 30px rgba(0,0,0,0.16); }
.btn-soft { background: #eef1ff; color: var(--primary-dark); box-shadow: none; }
.btn.full { width: 100%; }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.trust-row span,
.tech-list span,
.tag-cloud span,
.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-visual { position: relative; min-height: 480px; }
.screen-card {
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  box-shadow: 0 34px 120px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
}
.main-screen {
  position: absolute;
  inset: 4rem 2rem 2rem 1rem;
  border-radius: 32px;
  padding: 1.2rem;
  transform: rotate(-3deg);
}
.screen-top { display: flex; gap: 0.5rem; }
.screen-top span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,0.56); }
.chart-line {
  height: 150px;
  margin: 3rem 0 2rem;
  border-radius: 26px;
  background:
    linear-gradient(135deg, transparent 10%, rgba(39,194,255,.36) 10% 14%, transparent 14% 30%, rgba(91,61,246,.46) 30% 35%, transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  position: relative;
  overflow: hidden;
}
.chart-line::after {
  content: "";
  position: absolute;
  inset: 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}
.screen-grid-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.screen-grid-mini span { height: 76px; border-radius: 18px; background: rgba(255,255,255,0.1); }
.floating-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: 0 24px 50px rgba(0,0,0,0.25);
}
.floating-card strong { display: block; color: #fff; }
.floating-card small { color: rgba(255,255,255,0.66); }
.card-a { top: 1rem; left: 0; }
.card-b { right: 0; top: 48%; }
.card-c { left: 7%; bottom: 0; }

.feature-strip {
  margin-top: -72px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.feature-strip article,
.service-card,
.product-card,
.blog-card,
.value-grid article,
.process-grid article,
.side-card,
.about-card,
.dashboard-card,
.dashboard-stats article,
.contact-form,
.contact-info,
.auth-card,
.intro-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.feature-strip article { padding: 1.45rem; text-align: center; }
.feature-strip h3 { margin-top: 0.65rem; margin-bottom: 0.55rem; }
.feature-strip p { font-size: 0.92rem; }
.mini-icon,
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #eef1ff;
  color: var(--primary);
  font-weight: 900;
}
.service-icon { width: 54px; height: 54px; font-size: 1.4rem; margin-bottom: 1.1rem; }

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.section-heading p { margin-top: 1rem; font-size: 1.04rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-grid.large { grid-template-columns: repeat(3, 1fr); }
.service-grid.three-per-row { grid-template-columns: repeat(3, 1fr); }
.service-grid.three { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 1.65rem; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(91,61,246,0.25); }
.service-card h2 { font-size: 1.45rem; }
.service-card h3, .service-card h2 { margin-bottom: 0.8rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.3rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product-card {
  padding: 1.65rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(91,61,246,0.25); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product-card h2 { font-size: 1.55rem; margin-bottom: 0.8rem; }
.product-card h3 { margin-bottom: 0.8rem; }
.product-card p { font-size: 0.95rem; margin-bottom: 1.3rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; }
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  background: #eef1ff;
  color: var(--primary-dark);
  border: 1px solid rgba(91,61,246,0.16);
  font-size: 0.78rem;
  font-weight: 900;
}
.status-pill.inline { margin: 0.7rem 0 1rem; }
.muted-link { color: #52617a; }
.product-feature-list { margin-top: 1.2rem; }
.form-note, .captcha-box, .privacy-note {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f7f9ff;
  border: 1px solid var(--line);
}
.form-note { color: var(--muted); }
.form-note strong { color: var(--ink); }
.privacy-note { font-size: 0.9rem; }
.footer-contact { margin-top: 1rem; }
.footer-contact strong { color: #fff; }

.text-link {
  color: var(--primary);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.split-grid, .content-grid, .contact-grid, .timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 3rem;
  align-items: center;
}
.split-grid p + p, .rich-content p + p { margin-top: 1.1rem; }
.split-grid .btn { margin-top: 1.6rem; }
.check-list { display: grid; gap: 1rem; }
.check-list div {
  display: grid;
  gap: 0.25rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.check-list strong { font-size: 1.05rem; }
.check-list span { color: var(--muted); }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 82px;
  margin-bottom: 12px;
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.stats-band div { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stats-band div:last-child { border-right: 0; }
.stats-band strong { display: block; font-size: 2.4rem; line-height: 1; }
.stats-band span { color: rgba(255,255,255,0.72); font-weight: 750; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.process-grid.compact article { min-height: 210px; }
.process-grid article { padding: 1.5rem; min-height: 250px; }
.process-grid span {
  display: inline-flex;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 2.4rem;
}
.process-grid h3 { margin-bottom: 0.7rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.blog-grid.large { grid-template-columns: repeat(3, 1fr); }
.blog-card { padding: 1.6rem; min-height: 290px; display: flex; flex-direction: column; }
.blog-card h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.blog-card h3 { margin: 0.85rem 0 0.75rem; }
.blog-card p { margin-bottom: 1.2rem; }
.blog-card .text-link { margin-top: auto; }
.post-category { color: var(--primary); font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.post-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; color: var(--muted); font-weight: 750; font-size: 0.88rem; margin: 0.5rem 0 1.2rem; }
.centered-meta { justify-content: center; }

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 38px;
  margin-bottom: 92px;
  padding: 2.1rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(39,194,255,0.25), transparent 25rem),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-section .eyebrow { color: rgba(255,255,255,0.72); }
.cta-section p { color: rgba(255,255,255,0.75); margin-top: 0.85rem; max-width: 780px; }
.cta-section h2 { max-width: 880px; }

.page-hero { padding: 92px 0 76px; text-align: center; }
.page-hero h1 { font-size: clamp(2.15rem, 4.5vw, 3.8rem); }
.page-hero p { margin: 1.1rem auto 0; font-size: 1.08rem; max-width: 760px; }

.intro-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.about-card { padding: 1.8rem; }
.about-card h3 { margin-top: 1.4rem; margin-bottom: 0.55rem; }
.team-illustration {
  height: 230px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 30%, rgba(91,61,246,0.25), transparent 12rem),
    linear-gradient(135deg, #0b1425, #152243);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  padding: 1.4rem;
}
.team-illustration span { border-radius: 18px; background: rgba(255,255,255,0.12); align-self: end; }
.team-illustration span:nth-child(1) { height: 42%; }
.team-illustration span:nth-child(2) { height: 72%; }
.team-illustration span:nth-child(3) { height: 56%; }
.team-illustration span:nth-child(4) { height: 84%; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.value-grid.three-up,
.process-grid.three-up { grid-template-columns: repeat(3, 1fr); }
.value-grid article { padding: 1.5rem; }
.value-grid h3 { margin-top: 0.9rem; margin-bottom: 0.7rem; font-size: 1.1rem; }
.timeline { grid-template-columns: 0.8fr 1.2fr; }
.timeline-list { display: grid; gap: 1rem; }
.timeline-list div {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.timeline-list span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef1ff;
  color: var(--primary);
  font-weight: 900;
}
.timeline-list strong { display: block; margin-bottom: 0.35rem; }

.service-hero { padding: 118px 0; }
.service-detail-grid { grid-template-columns: minmax(0, 1fr) 420px; }
.service-visual {
  min-height: 370px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.service-visual::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(39,194,255,0.36), transparent 68%);
}
.service-visual-icon {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  color: #fff;
  font-size: 4rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.service-visual-lines { position: absolute; inset: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-visual-lines span { border-radius: 18px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }
.rich-content h2 { margin-bottom: 1.4rem; }
.side-card { padding: 1.5rem; position: sticky; top: 96px; }
.side-card h3 { margin-bottom: 1rem; }
.clean-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.7rem; }
.clean-list li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.clean-list li::before { content: "✓"; color: var(--primary); font-weight: 900; position: absolute; left: 0; }
.tag-cloud, .tech-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.tag-cloud span, .tech-list span, .filter-pill {
  background: #fff;
  color: #36445b;
  border-color: var(--line);
}
.tech-list span { background: #eef1ff; color: var(--primary-dark); }
.faq-list { display: grid; gap: 1rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}
summary { cursor: pointer; font-weight: 900; }
details p { margin-top: 0.75rem; }

.blog-tools { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-pill { cursor: pointer; }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-content { max-width: 830px; }
.article-content p { font-size: 1.12rem; margin-bottom: 1.3rem; }
.article-content p:first-child::first-letter { font-size: 4.2rem; line-height: 0.9; float: left; padding-right: 0.45rem; color: var(--primary); font-weight: 900; }

.contact-grid { grid-template-columns: 0.75fr 1.25fr; align-items: start; }
.contact-info, .contact-form { padding: 1.7rem; }
.info-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.info-list div { display: flex; gap: 0.85rem; align-items: flex-start; }
.info-list span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: #eef1ff; color: var(--primary); }
.info-list strong { display: block; color: var(--ink); }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.contact-form { display: grid; gap: 1rem; }
label { color: var(--ink); font-weight: 850; display: grid; gap: 0.5rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0.9rem 1rem;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(91,61,246,0.48); box-shadow: 0 0 0 4px rgba(91,61,246,0.12); }
.form-errors { padding: 1rem; border-radius: 16px; background: rgba(220,53,69,0.08); color: var(--danger); }

.message-stack { margin-top: 1rem; display: grid; gap: 0.7rem; }
.message { padding: 0.9rem 1rem; border-radius: 16px; background: #eef1ff; color: var(--primary-dark); border: 1px solid rgba(91,61,246,0.18); }
.message.success { background: rgba(25,182,129,0.11); color: #087957; border-color: rgba(25,182,129,0.24); }
.message.warning { background: rgba(242,169,0,0.12); color: #8c6200; border-color: rgba(242,169,0,0.3); }
.message.error { background: rgba(220,53,69,0.1); color: var(--danger); border-color: rgba(220,53,69,0.22); }

.auth-section {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 90px 20px;
}
.auth-card { width: min(100%, 460px); padding: 2rem; text-align: center; }
.auth-brand { justify-content: center; margin-bottom: 1.5rem; }
.auth-card h1 {
  font-size: clamp(2rem, 6vw, 2.85rem);
  line-height: 1.05;
}
.auth-card .eyebrow {
  display: flex;
  justify-content: center;
  margin: 0 0 0.85rem;
}
.auth-brand {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.login-form { display: grid; gap: 1rem; text-align: left; margin-top: 1.5rem; }
.small-note { margin-top: 1rem; font-size: 0.9rem; }
.small-note a { color: var(--primary); font-weight: 850; }

.dashboard-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; background: #f4f7fc; }
.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.2rem;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dashboard-brand .brand-text { font-size: 0.9rem; }
.dashboard-sidebar nav { display: grid; gap: 0.4rem; }
.dashboard-sidebar nav a,
.dashboard-sidebar button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 850;
  color: var(--muted);
  cursor: pointer;
}
.dashboard-sidebar nav a.active,
.dashboard-sidebar nav a:hover,
.dashboard-sidebar button:hover { background: #eef1ff; color: var(--primary-dark); }
.dashboard-sidebar form { margin-top: auto; }
.dashboard-main { padding: 2rem; overflow: hidden; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dashboard-top h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.dashboard-top p { margin-top: 0.6rem; max-width: 760px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.dashboard-stats article { padding: 1.2rem; }
.dashboard-stats strong { display: block; font-size: 2rem; color: var(--primary); }
.dashboard-stats span { display: block; font-weight: 900; }
.dashboard-stats small { color: var(--muted); }
.dashboard-card { padding: 1.4rem; margin-bottom: 1rem; overflow: hidden; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.card-title-row h2 { font-size: 1.55rem; }
.project-table { display: grid; min-width: 760px; }
.table-head, .table-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr 0.8fr; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.table-head { color: var(--muted); font-weight: 900; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table-row mark { background: #eef1ff; color: var(--primary-dark); border-radius: 999px; padding: 0.3rem 0.6rem; font-weight: 850; }
.table-row i { display: inline-block; width: 80px; height: 7px; border-radius: 999px; margin-right: 0.5rem; background: linear-gradient(90deg, var(--primary) var(--progress), #e8edf7 var(--progress)); }
.dashboard-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.mini-row strong { display: block; }
.mini-row span, .mini-row small { color: var(--muted); }

.site-footer {
  padding: 72px 0 28px;
  background: var(--navy);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
}
.footer-brand { margin-bottom: 1rem; }
.site-footer p { color: rgba(255,255,255,0.68); }
.site-footer h3 { font-size: 1rem; margin-bottom: 1rem; }
.site-footer a:not(.brand):not(.btn) { display: block; color: rgba(255,255,255,0.7); margin-bottom: 0.55rem; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.58);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }

@media (max-width: 1060px) {
  .hero-grid, .service-detail-grid, .split-grid, .content-grid, .contact-grid, .timeline, .intro-panel { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .feature-strip, .service-grid.large, .value-grid, .process-grid, .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .value-grid.three-up, .process-grid.three-up { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .blog-grid, .blog-grid.large, .service-grid.three, .product-grid, .product-grid.three { grid-template-columns: repeat(2, 1fr); }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: relative; height: auto; }
  .dashboard-sidebar nav { grid-template-columns: repeat(5, auto); overflow-x: auto; }
  .dashboard-sidebar form { margin-top: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .logout-form button { padding: 0.9rem 1rem; width: 100%; justify-content: flex-start; }
  .site-header.header-on-dark:not(.scrolled) .site-nav {
    background: #fff;
    color: #29364a;
  }
  .site-header.header-on-dark:not(.scrolled) .site-nav a:not(.nav-cta) { color: #29364a; }
  .site-nav a::after { display: none; }
  .hero { padding-top: 146px; }
  .hero-grid { gap: 1rem; }
  h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .feature-strip, .service-grid, .service-grid.large, .service-grid.three, .product-grid, .product-grid.three, .value-grid, .process-grid, .blog-grid, .blog-grid.large, .dashboard-stats, .dashboard-two-col, .form-grid.two, .stats-band { grid-template-columns: 1fr; }
  .value-grid.three-up, .process-grid.three-up { grid-template-columns: 1fr; }
  .stats-band div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
  .stats-band div:last-child { border-bottom: 0; padding-bottom: 0; }
  .cta-section { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; }
  .dashboard-main { padding: 1rem; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .project-table { overflow-x: auto; }
  .hero-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Public form anti-spam fields */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.recaptcha-wrap {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9ff;
  overflow-x: auto;
}
