/* ══════════════════════════════════════════
   Home page — all sections
   Loaded only by: index.html
   ══════════════════════════════════════════ */

/* ──────────────────────────────────────────
   DST
   ────────────────────────────────────────── */
.dst {
  position: relative;
  min-height: calc(100vh - 68px);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--pad-x);
}

/* Decorative bubbles */
.dst-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dst-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(240, 242, 246, 0.88);
  overflow: hidden;
}

.dst-bubble img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dst-bubble--1 {
  width: 200px;
  height: 200px;
  left: 7%;
  bottom: 18%;
  animation: bubbleDiamond1 6s linear infinite;
}

.dst-bubble--2 {
  width: 190px;
  height: 190px;
  left: calc(50% - 95px);
  bottom: 6%;
  animation: bubbleHexagon2 7s linear infinite;
}

.dst-bubble--3 {
  width: 200px;
  height: 200px;
  right: 7%;
  bottom: 20%;
  animation: bubblePentagon3 6s linear infinite;
}

@keyframes bubbleDiamond1 {
  0%   { transform: translate(0px,   0px); }
  20%  { transform: translate(55px, -35px); }
  40%  { transform: translate(50px,  100px); }
  60%  { transform: translate(-10px, 120px); }
  80%  { transform: translate(-55px,  60px); }
  100% { transform: translate(0px,   0px); }
}

@keyframes bubbleHexagon2 {
  0%   { transform: translate(0px,   0px); }
  17%  { transform: translate(58px, -45px); }
  33%  { transform: translate(58px,  55px); }
  50%  { transform: translate(25px,  110px); }
  67%  { transform: translate(-38px, 95px); }
  83%  { transform: translate(-58px, 30px); }
  100% { transform: translate(0px,   0px); }
}

@keyframes bubblePentagon3 {
  0%   { transform: translate(0px,   0px); }
  20%  { transform: translate(-55px,-40px); }
  40%  { transform: translate(-45px, 100px); }
  60%  { transform: translate(12px,  120px); }
  80%  { transform: translate(55px,   65px); }
  100% { transform: translate(0px,   0px); }
}

@media (max-width: 1024px) {
  .dst-bubble { display: none; }
}

/* Wave */
.dst-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dst-wave path { stroke-width: 22px; }

@media (max-width: 768px) { .dst-wave path { stroke-width: 16px; } }
@media (max-width: 480px) { .dst-wave path { stroke-width: 10px; } }

/* Content */
.dst-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.dst-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.dst-content h1 .nowrap-line {
  display: inline-block;
  margin-left: clamp(0px, 4vw, 55px);
  white-space: nowrap;
}

.rotating-container {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  height: 0.8em;
  transition: width 0.4s ease;
}

.dst-content h1 .gradient-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dst-content h1 .gradient-text.fade-out {
  opacity: 0;
  transform: translateY(calc(-50% - 10px));
}

.dst-content p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--grad);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(var(--teal-rgb), 0.4);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--teal-rgb), 0.5);
}

.btn-cta .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .dst { padding: 0 20px; }
  .dst-content h1 { letter-spacing: -0.5px; margin-bottom: 14px; }
  .dst-content p  { font-size: 0.95rem; margin-bottom: 28px; }
  .btn-cta         { padding: 12px 24px; font-size: 0.95rem; }
}

/* Phones: give the rotating word its own full-width line.
   The container is NOT given a reserved pixel width here. JS measures
   the longest word to stop the line jumping on wider screens, but that
   measurement assumes the font it measured; on iOS the system font is
   wider, the word outgrew the reserved box and, being absolutely
   positioned and centred, spilled over "Vision into". Letting it own a
   whole line removes the failure mode instead of re-tuning the number.
   width is !important so a drift between STACK_BELOW in js/home.js and
   this breakpoint cannot bring the overlap back. */
@media (max-width: 600px) {
  .dst-content h1 .nowrap-line { white-space: normal; margin-left: 0; }
  .rotating-container {
    display: block;
    width: auto !important;
    height: 1.15em;
  }
  .dst-content h1 .gradient-text { left: 50%; transform: translateX(-50%) translateY(-50%); }
  .dst-content h1 .gradient-text.fade-out { transform: translateX(-50%) translateY(calc(-50% - 10px)); }
}

@media (max-width: 480px) {
  .dst { padding: 0 16px; }
  .dst-content h1 { letter-spacing: 0; }
  .dst-content p { font-size: 0.9rem; }
  .btn-cta { padding: 11px 20px; font-size: 0.9rem; gap: 8px; }
  .btn-cta .arrow { width: 22px; height: 22px; }
}

/* CTA arrow icon */
.arrow .material-symbols-outlined { font-size: 16px; }

/* Service card icon colors (match card-blob accent colors) */
.service-card:nth-child(1) .card-icon { color: var(--teal); }
.service-card:nth-child(2) .card-icon { color: #e879aa; }
.service-card:nth-child(3) .card-icon { color: #fbb040; }
.service-card:nth-child(4) .card-icon { color: #84cc16; }

/* Process step icons (white on gradient circle) */
.step-icon { color: var(--white); }

/* Why section */
.why-card-icon { color: var(--teal); }
.why-check .material-symbols-outlined { font-size: 14px; }

/* ──────────────────────────────────────────
   Services (home section)
   ────────────────────────────────────────── */
.services {
  background: var(--bg-alt);
  padding: 50px;
}

.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.services-title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 32px 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--t-md), transform var(--t-md);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.card-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 95px;
  height: 95px;
  border-radius: 0 var(--radius-card) 0 100%;
  pointer-events: none;
}

.service-card:nth-child(1) .card-blob { background: rgba(0, 194, 203, 0.18); }
.service-card:nth-child(2) .card-blob { background: rgba(232, 121, 170, 0.20); }
.service-card:nth-child(3) .card-blob { background: rgba(251, 176, 64, 0.22); }
.service-card:nth-child(4) .card-blob { background: rgba(132, 204, 22, 0.20); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: gap var(--t);
}

.learn-more:hover { gap: 8px; }

@media (max-width: 768px) {
  .services { padding: 72px 20px; }
  .services-header { margin-bottom: 40px; }
  .services-grid { gap: 16px; }
  .service-card { padding: 28px 24px 24px; }
}

@media (max-width: 540px) {
  .services { padding: 60px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px 24px; }
}

/* ──────────────────────────────────────────
   Our Process
   ────────────────────────────────────────── */
.process {
  background: var(--white);
  padding: 96px var(--pad-x);
}

.process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: 64px;
}

.process-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.process-header p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

.process-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-diag);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(var(--teal-rgb), 0.38);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text);
  text-align: center;
  line-height: 1.65;
  margin-top: 6px;
}

.process-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

@media (max-width: 768px) {
  .process { padding: 72px 20px; }
  .process-header { margin-bottom: 48px; }
  .process-flow { max-width: 380px; }
}

@media (max-width: 480px) {
  .process { padding: 60px 16px; }
  .process-flow { max-width: 100%; }
}

/* ──────────────────────────────────────────
   Why Choose Us
   ────────────────────────────────────────── */
.why {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #eaf1fc 100%);
  padding: 96px var(--pad-x);
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-text h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.why-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-text > p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-md);
  font-weight: 500;
}

.why-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  background: var(--grad-diag);
  flex-shrink: 0;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  max-width: 300px;
}

.why-card--top {
  align-self: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-30px) rotate(-3deg);
}

.why-card--bottom {
  align-self: flex-start;
  margin-left: 90px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: rotate(3deg);
}

.why-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(var(--teal-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .why { padding: 72px 20px; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-text h2, .why-text > p { text-align: center; }
  .why-text > p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .why-list { max-width: 360px; margin: 0 auto; }
  .why-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .why-card--top, .why-card--bottom { align-self: unset; margin-left: 0; max-width: 280px; flex: 1 1 240px; }
}

@media (max-width: 480px) {
  .why { padding: 60px 16px; }
  .why-cards { flex-direction: column; align-items: stretch; }
  .why-card { max-width: 100%; }
}
