/* ================================================================
   ADVEQTA — fictional technology company portfolio demonstration
   Shared visual system and responsive styles
   ================================================================ */

:root {
  --ink: #0a1530;
  --ink-2: #101f42;
  --primary: #3b5bff;
  --primary-dark: #2441d8;
  --mint: #21d4a7;
  --cloud: #f7f9fc;
  --mist: #eef2f8;
  --white: #ffffff;
  --text: #17233b;
  --muted: #5d6c84;
  --line: #dce3ee;
  --line-dark: rgba(255, 255, 255, 0.13);
  --success: #087f5b;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow-sm: 0 10px 30px rgba(10, 21, 48, 0.08);
  --shadow-md: 0 22px 60px rgba(10, 21, 48, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --section-space: clamp(4.75rem, 8vw, 7.5rem);
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  margin-top: 0;
  color: var(--ink);
  font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.65rem, 6.2vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.container {
  max-width: var(--content-width);
}

.section-space {
  padding-block: var(--section-space);
}

.section-space-sm {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-soft {
  background: var(--cloud);
}

.section-ink {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.section-ink h2,
.section-ink h3,
.section-ink h4 {
  color: var(--white);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: var(--primary-dark);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: var(--mint);
  content: "";
}

.section-ink .section-eyebrow {
  color: var(--mint);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.section-heading p {
  max-width: 680px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.section-ink .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.text-muted-custom {
  color: var(--muted) !important;
}

.text-mint {
  color: var(--mint) !important;
}

.rounded-panel {
  border-radius: var(--radius-lg);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--white) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px var(--ink) !important;
}

.btn {
  --bs-btn-font-family: "Manrope", sans-serif;
  --bs-btn-font-weight: 750;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.7rem;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(59, 91, 255, 0.24);
}

.btn-dark {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink-2);
  --bs-btn-hover-border-color: var(--ink-2);
}

.btn-outline-dark {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: rgba(10, 21, 48, 0.28);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
}

.btn-outline-light {
  --bs-btn-color: var(--white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.42);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--white);
  --bs-btn-hover-border-color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 750;
  text-decoration: none;
}

.link-arrow i {
  color: var(--primary);
  transition: transform 160ms ease;
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* Demo notice and navigation */
.demo-bar {
  position: relative;
  z-index: 1035;
  padding: 0.48rem 0;
  color: rgba(255, 255, 255, 0.8);
  background: #060e22;
  font-size: 0.76rem;
  line-height: 1.5;
}

.demo-bar strong {
  color: var(--mint);
  font-weight: 750;
}

.demo-bar a {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(10, 21, 48, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 10px 35px rgba(10, 21, 48, 0.08);
}

.navbar {
  min-height: 82px;
  padding-block: 0.7rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.navbar-brand:hover {
  color: var(--ink);
}

.navbar-brand img {
  width: 40px;
  height: 40px;
}

.navbar-nav {
  gap: 0.25rem;
}

.navbar .nav-link {
  position: relative;
  padding: 0.65rem 0.85rem !important;
  color: #33405a;
  font-family: "Manrope", sans-serif;
  font-size: 0.91rem;
  font-weight: 650;
}

.navbar .nav-link::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.35rem;
  left: 0.85rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--ink);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border-color: var(--line);
  border-radius: 0.65rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(33, 212, 167, 0.2);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cloud);
}

.hero::before {
  position: absolute;
  top: -24rem;
  right: -18rem;
  z-index: -1;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle, rgba(59, 91, 255, 0.16), rgba(59, 91, 255, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-home {
  padding-block: clamp(4.25rem, 8vw, 7.8rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
  padding: 0.45rem 0.72rem;
  color: #283a6b;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-kicker::before {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(33, 212, 167, 0.15);
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 1.45rem;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  padding: 0;
  color: #46546b;
  font-size: 0.84rem;
  font-weight: 650;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof i {
  color: var(--success);
  font-size: 1rem;
}

.hero-visual-wrap {
  position: relative;
  max-width: 660px;
  margin-inline: auto;
}

.hero-visual {
  overflow: hidden;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(10, 21, 48, 0.12);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
}

.hero-visual img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(clamp(1.25rem, 3vw, 2rem) - 0.5rem);
}

.visual-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 165px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.visual-badge i {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--primary);
  border-radius: 0.65rem;
  place-items: center;
}

.visual-badge.badge-one {
  bottom: 7%;
  left: -4%;
}

.visual-badge.badge-two {
  top: 7%;
  right: -3%;
}

.page-hero {
  padding-block: clamp(4.4rem, 8vw, 7rem);
}

.page-hero h1 {
  max-width: 970px;
  font-size: clamp(2.65rem, 5.7vw, 5rem);
}

.page-hero .hero-lead {
  max-width: 760px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  color: #32405b;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 650;
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  margin: 0;
  padding: 1.2rem 0;
  list-style: none;
}

.trust-items li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #394861;
  font-size: 0.82rem;
  font-weight: 650;
}

.trust-items i {
  color: var(--primary);
}

/* Content patterns */
.feature-image-panel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.feature-image-panel::after {
  position: absolute;
  right: -12%;
  bottom: -26%;
  width: 75%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(33, 212, 167, 0.3), rgba(33, 212, 167, 0) 68%);
  content: "";
}

.feature-dashboard {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  left: clamp(1rem, 4vw, 2.5rem);
  z-index: 1;
  padding: 1.1rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.dashboard-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dashboard-bar span {
  width: 7px;
  height: 7px;
  background: #dce3ee;
  border-radius: 50%;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 0.9rem;
}

.dashboard-side,
.dashboard-main > div {
  background: var(--mist);
  border-radius: 0.55rem;
}

.dashboard-side {
  min-height: 190px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.dashboard-main > div {
  min-height: 62px;
}

.dashboard-main .wide {
  grid-column: 1 / -1;
  min-height: 110px;
  background: linear-gradient(130deg, rgba(59, 91, 255, 0.18), rgba(33, 212, 167, 0.16));
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #394861;
}

.check-list i {
  display: grid;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--success);
  background: rgba(33, 212, 167, 0.13);
  border-radius: 50%;
  font-size: 0.8rem;
  place-items: center;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  grid-column: span 4;
  overflow: hidden;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:nth-child(1),
.service-card:nth-child(2) {
  grid-column: span 6;
}

.service-card:hover {
  border-color: rgba(59, 91, 255, 0.36);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.service-card .icon-box,
.value-card .icon-box,
.contact-method .icon-box {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 1.35rem;
  color: var(--primary);
  background: rgba(59, 91, 255, 0.09);
  border-radius: 0.85rem;
  font-size: 1.25rem;
  place-items: center;
}

.service-card h3 {
  margin-bottom: 0.85rem;
}

.service-card p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card .link-arrow {
  margin-top: auto;
}

.service-card.featured {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  border-color: var(--ink);
}

.service-card.featured h3,
.service-card.featured .link-arrow {
  color: var(--white);
}

.service-card.featured .icon-box {
  color: var(--mint);
  background: rgba(33, 212, 167, 0.12);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.65);
}

.service-detail {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.service-detail + .service-detail {
  margin-top: 1.5rem;
}

.service-detail:nth-child(even) {
  background: var(--cloud);
}

.service-number {
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-detail ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  display: flex;
  gap: 0.55rem;
  color: #45546b;
  font-size: 0.91rem;
}

.service-detail li i {
  color: var(--success);
}

.deliverables-box {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

/* Values, process, stats */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.value-card h3 {
  font-size: 1.16rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.process-list::before {
  position: absolute;
  top: 29px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line);
  content: "";
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step .step-number {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.35rem;
  color: var(--white);
  background: var(--ink);
  border: 6px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  place-items: center;
}

.process-step h3 {
  font-size: 1.08rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.stats-panel {
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.stat-item {
  height: 100%;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-right: 1px solid var(--line-dark);
}

.stat-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}

.project-card {
  grid-column: span 6;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:first-child {
  grid-column: span 7;
}

.project-card:nth-child(2) {
  grid-column: span 5;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.project-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 2rem;
  background: #e9edff;
}

.project-visual.retail {
  background: #f4ece5;
}

.project-visual.health {
  background: #e5f5f0;
}

.project-visual.logistics {
  background: #e8eef4;
}

.project-visual.saas {
  background: #e8eaff;
}

.project-window {
  position: absolute;
  right: 1.4rem;
  bottom: -1.1rem;
  left: 1.4rem;
  min-height: 245px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(10, 21, 48, 0.12);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 20px 45px rgba(10, 21, 48, 0.16);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 35px;
  padding-inline: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.window-top span {
  width: 6px;
  height: 6px;
  background: #c8d0dd;
  border-radius: 50%;
}

.window-screen {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  min-height: 210px;
}

.screen-nav {
  background: var(--ink);
}

.screen-content {
  padding: 1.2rem;
}

.screen-line {
  width: 64%;
  height: 9px;
  margin-bottom: 0.6rem;
  background: #dfe5ee;
  border-radius: 99px;
}

.screen-line.short {
  width: 38%;
}

.screen-feature {
  height: 82px;
  margin-top: 1rem;
  background: rgba(59, 91, 255, 0.12);
  border-radius: 0.65rem;
}

.retail .screen-feature {
  background: #dfc7b2;
}

.health .screen-feature {
  background: #b9e4d6;
}

.logistics .screen-feature {
  background: #c4d4e3;
}

.saas .screen-feature {
  background: #c7ccff;
}

.project-body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.project-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-label {
  padding: 0.35rem 0.6rem;
  color: #34415b;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-body p {
  color: var(--muted);
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.filter-button {
  padding: 0.58rem 0.9rem;
  color: #425069;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.case-study {
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.case-study[hidden] {
  display: none !important;
}

.case-visual {
  height: 100%;
  min-height: 460px;
}

.case-content {
  padding: clamp(1.7rem, 4vw, 3rem);
}

.case-content h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.7rem;
}

.case-fact {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-fact h3 {
  margin-bottom: 0.4rem;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-fact p,
.case-fact ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.case-fact ul {
  padding-left: 1.05rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.36rem 0.6rem;
  color: #674d00;
  background: #fff5c2;
  border: 1px solid #eadb86;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Testimonials and FAQ */
.testimonial-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.quote-mark {
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.8;
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem;
  color: #27344c;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
}

.testimonial-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.accordion {
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-active-bg: transparent;
}

.accordion-item {
  border-width: 0 0 1px;
}

.accordion-button {
  padding: 1.4rem 0.25rem;
  color: var(--ink);
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.accordion-body {
  padding: 0 0.25rem 1.5rem;
  color: var(--muted);
}

/* About */
.principle-list {
  counter-reset: principle;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  position: relative;
  padding: 1.35rem 0 1.35rem 4rem;
  border-bottom: 1px solid var(--line);
  counter-increment: principle;
}

.principle-list li::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--primary);
  background: rgba(59, 91, 255, 0.08);
  border-radius: 0.75rem;
  content: "0" counter(principle);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  place-items: center;
}

.principle-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
}

.principle-list p {
  color: var(--muted);
  font-size: 0.91rem;
}

.team-model {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.role-card {
  min-height: 230px;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.role-index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.role-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.contact-methods {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.contact-method:hover {
  color: inherit;
  border-color: rgba(59, 91, 255, 0.35);
  box-shadow: var(--shadow-sm);
}

.contact-method .icon-box {
  flex: 0 0 auto;
  margin: 0;
}

.contact-method strong {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
}

.contact-method span {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-form-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.required-mark {
  color: var(--danger);
}

.form-control,
.form-select {
  min-height: 50px;
  padding: 0.72rem 0.9rem;
  color: var(--text);
  background-color: var(--white);
  border-color: #cbd4e1;
  border-radius: 0.65rem;
  font-size: 0.92rem;
}

textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.12);
}

.form-text,
.invalid-feedback {
  font-size: 0.75rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #075c43;
  background: #ddf8ef;
  border: 1px solid #9fe6d2;
}

.form-status.error {
  color: #842d26;
  background: #fff0ee;
  border: 1px solid #f5beb7;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.demo-form-note {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  color: #5f4a00;
  background: #fff8d8;
  border: 1px solid #eadb86;
  border-radius: 0.7rem;
  font-size: 0.78rem;
}

/* CTA and footer */
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.3rem, 6vw, 5rem);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.cta-panel::after {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(59, 91, 255, 0.48), rgba(59, 91, 255, 0) 68%);
  content: "";
}

.cta-panel h2 {
  max-width: 800px;
  color: var(--white);
}

.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: #060e22;
}

.footer-main {
  padding-block: clamp(3.8rem, 7vw, 5.8rem);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--white);
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-copy {
  max-width: 360px;
  font-size: 0.87rem;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-disclosure {
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 0.75rem;
  font-size: 0.74rem;
}

.footer-bottom {
  padding-block: 1.3rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.whatsapp-button,
.back-to-top {
  position: fixed;
  right: 1.1rem;
  z-index: 1020;
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(10, 21, 48, 0.22);
  place-items: center;
  text-decoration: none;
}

.whatsapp-button {
  bottom: 1.1rem;
  background: #13795b;
  font-size: 1.35rem;
}

.whatsapp-button:hover {
  color: var(--white);
  background: #0b6147;
}

.back-to-top {
  bottom: 4.8rem;
  background: var(--ink);
  border: 0;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Responsive behavior */
@media (max-width: 1199.98px) {
  .service-card {
    grid-column: span 6;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }

  .process-list::before {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.7rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .navbar-nav {
    gap: 0.15rem;
  }

  .navbar .nav-link {
    padding: 0.7rem !important;
  }

  .navbar .nav-link::after {
    display: none;
  }

  .navbar .nav-link.active {
    color: var(--primary-dark);
    background: rgba(59, 91, 255, 0.07);
    border-radius: 0.55rem;
  }

  .navbar-cta {
    width: 100%;
    margin-top: 0.75rem;
  }

  .hero-visual-wrap {
    margin-top: 3.25rem;
  }

  .trust-items {
    justify-content: flex-start;
  }

  .project-card,
  .project-card:first-child,
  .project-card:nth-child(2) {
    grid-column: span 6;
  }

  .case-visual {
    min-height: 330px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .demo-bar .demo-detail {
    display: none;
  }

  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .project-card,
  .project-card:first-child,
  .project-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding: 0 0 1.5rem 4.3rem;
  }

  .process-step .step-number {
    position: absolute;
    top: -0.4rem;
    left: 0;
  }

  .value-grid,
  .case-facts,
  .team-model {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .project-visual {
    min-height: 260px;
    padding: 1rem;
  }

  .project-window {
    right: 0.9rem;
    left: 0.9rem;
  }

  .visual-badge.badge-one {
    bottom: -1.3rem;
    left: 0.5rem;
  }

  .visual-badge.badge-two {
    top: -1.3rem;
    right: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.96rem;
  }

  .navbar {
    min-height: 72px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand img {
    width: 36px;
    height: 36px;
  }

  .hero-home,
  .page-hero {
    padding-block: 3.7rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .visual-badge {
    position: static;
    width: 100%;
    margin-top: 0.7rem;
  }

  .hero-visual {
    padding: 0.45rem;
    transform: none;
  }

  .trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feature-image-panel {
    min-height: 410px;
  }

  .dashboard-side {
    min-height: 150px;
  }

  .dashboard-main > div {
    min-height: 48px;
  }

  .dashboard-main .wide {
    min-height: 82px;
  }

  .cta-panel {
    border-radius: var(--radius-md);
  }

  .whatsapp-button,
  .back-to-top {
    right: 0.8rem;
  }
}

@media (max-width: 374.98px) {
  h1 {
    font-size: 2.42rem;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .navbar-brand span {
    letter-spacing: 0.06em;
  }

  .service-card,
  .project-body,
  .contact-form-panel,
  .case-content {
    padding: 1.2rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --content-width: 1320px;
  }

  body {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .demo-bar,
  .site-header,
  .whatsapp-button,
  .back-to-top,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
