/* ============================================================================
   USBS — Components
   Cards · marquee · map · stats · workflow · testimonials · FAQ · forms
   ========================================================================== */

/* --- Generic glass card --------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
}
.card::before {   /* animated gradient border on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-stroke);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-float); }
.card:hover::before { opacity: 1; }
.card__spot { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(18,198,233,0.18), transparent 60%); pointer-events: none; opacity: 0; transition: opacity var(--t-med); mix-blend-mode: screen; }
.card:hover .card__spot { opacity: 1; }

/* --- Icon tile ------------------------------------------------------------ */
.tile-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, rgba(18,198,233,0.16), rgba(16,58,122,0.2)); border: 1px solid var(--stroke-strong); color: var(--cyan); box-shadow: var(--neu); }
.tile-ic svg { width: 28px; height: 28px; }

/* --- Grids ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- Why-choose card ------------------------------------------------------ */
.why-card h3 { margin: var(--sp-3) 0 0.6em; font-size: 1.24rem; }
.why-card p { color: var(--text-dim); font-size: 0.98rem; }
.why-card .idx { position: absolute; top: var(--sp-3); right: var(--sp-4); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.12em; }

/* --- Service card (morphing) --------------------------------------------- */
.service-card { display: flex; flex-direction: column; min-height: 260px; }
.service-card .tile-ic { transition: transform var(--t-med) var(--ease-spring); }
.service-card:hover .tile-ic { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { margin: var(--sp-3) 0 0.5em; font-size: 1.3rem; }
.service-card p { color: var(--text-dim); font-size: 0.96rem; flex: 1; }
.service-card .link-arrow { margin-top: var(--sp-3); }

/* --- Overview / founder --------------------------------------------------- */
.overview { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--sp-6); align-items: center; }
.overview__body p { color: var(--text-dim); margin-top: var(--sp-3); max-width: 52ch; }
.quote-card { position: relative; padding: var(--sp-5); border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(16,58,122,0.35), rgba(8,16,32,0.5)); border: 1px solid var(--stroke); box-shadow: var(--sh-card); }
.quote-card .qmark { color: var(--cyan); opacity: 0.5; }
.quote-card blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.32; letter-spacing: -0.02em; margin: var(--sp-3) 0 var(--sp-4); }
.quote-card__by { display: flex; align-items: center; gap: 1em; }
.quote-card__avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--grad-cyan); color: #00131c; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.quote-card__by strong { display: block; }
.quote-card__by span { color: var(--text-dim); font-size: 0.9rem; }

/* --- Marquee (trusted routes) -------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding-block: var(--sp-3); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-5); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.1em; color: var(--text-dim); white-space: nowrap; }
.marquee__item .ic { color: var(--cyan); }
.marquee__item .ic svg { width: 18px; }

/* --- World map ------------------------------------------------------------ */
.worldmap { position: relative; }
.worldmap svg { width: 100%; height: auto; }
.wm-dot { fill: rgba(150,190,230,0.35); }
.wm-hub { fill: var(--cyan); }
.wm-route { fill: none; stroke: url(#routeGrad); stroke-width: 1.4; stroke-linecap: round; opacity: 0.85; }
.wm-pulse { fill: var(--cyan-bright); }

/* --- Stat / counter ------------------------------------------------------- */
.stat { text-align: left; padding: var(--sp-4) 0; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .num .suf { -webkit-text-fill-color: initial; color: var(--cyan); }
.stat .lbl { margin-top: 0.7em; color: var(--text-dim); font-size: 0.95rem; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); border-top: 1px solid var(--stroke); }
.stats-row .stat { border-right: 1px solid var(--stroke); padding-inline: var(--sp-3); }
.stats-row .stat:last-child { border-right: 0; }

/* --- Customs / process list ---------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; }
.process__cell { background: rgba(8,16,32,0.55); padding: var(--sp-4); transition: background var(--t-med); }
.process__cell:hover { background: rgba(16,58,122,0.28); }
.process__cell .step { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.16em; }
.process__cell h3 { font-size: 1.16rem; margin: 0.8em 0 0.5em; }
.process__cell p { color: var(--text-dim); font-size: 0.94rem; }

/* --- Workflow timeline ---------------------------------------------------- */
.workflow { position: relative; }
.workflow__line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--stroke); }
.workflow__line i { display: block; height: 100%; width: 0; background: var(--grad-cyan); box-shadow: 0 0 12px rgba(18,198,233,0.6); transition: width 1.4s var(--ease-out); }
.workflow__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); }
.workflow__step { position: relative; padding-top: var(--sp-6); }
.workflow__node { position: absolute; top: 22px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); border: 2px solid var(--stroke-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); transition: all var(--t-med) var(--ease-out); }
.workflow__step.is-live .workflow__node { border-color: var(--cyan); color: #00131c; background: var(--cyan); box-shadow: 0 0 0 6px rgba(18,198,233,0.15); }
.workflow__step h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.workflow__step p { color: var(--text-dim); font-size: 0.9rem; }

/* --- Testimonials (3D slider) -------------------------------------------- */
.tm { position: relative; }
.tm__viewport { overflow: hidden; perspective: 1600px; }
.tm__track { display: flex; transition: transform var(--t-slow) var(--ease-out); }
.tm__card { flex: 0 0 100%; padding: var(--sp-2); }
.tm__inner { padding: var(--sp-5); border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(16,58,122,0.28), rgba(8,16,32,0.55)); border: 1px solid var(--stroke); box-shadow: var(--sh-card); transform-style: preserve-3d; }
.tm__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: var(--sp-3); }
.tm__stars svg { width: 18px; }
.tm__quote { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); line-height: 1.4; letter-spacing: -0.01em; }
.tm__by { display: flex; align-items: center; gap: 0.9em; margin-top: var(--sp-4); }
.tm__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-cyan); color: #00131c; display: grid; place-items: center; font-weight: 800; }
.tm__by strong { display: block; }
.tm__by span { color: var(--text-dim); font-size: 0.88rem; }
.tm__nav { display: flex; gap: 0.6em; justify-content: flex-end; margin-top: var(--sp-3); }
.tm__nav button { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--stroke); cursor: pointer; display: grid; place-items: center; transition: all var(--t-med) var(--ease-out); }
.tm__nav button:hover { border-color: var(--cyan); color: var(--cyan); }
.tm__nav button svg { width: 20px; }
.tm__dots { display: flex; gap: 0.5em; }
.tm__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--stroke-strong); border: 0; cursor: pointer; padding: 0; }
.tm__dots button.is-active { background: var(--cyan); width: 26px; border-radius: 5px; }

/* --- FAQ accordion -------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--stroke); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) 0; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--text); }
.faq__q .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--stroke-strong); display: grid; place-items: center; position: relative; transition: all var(--t-med) var(--ease-out); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; }
.faq__q .plus::before { width: 12px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 12px; transition: transform var(--t-med) var(--ease-out); }
.faq__item.is-open .plus { background: rgba(18,198,233,0.14); border-color: var(--cyan); }
.faq__item.is-open .plus::after { transform: scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { color: var(--text-dim); padding-bottom: var(--sp-4); max-width: 70ch; }

/* --- Forms ---------------------------------------------------------------- */
.form { position: relative; }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.5em; font-weight: 500; }
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95em 1.1em;
  background: rgba(8,16,32,0.5); border: 1px solid var(--stroke); border-radius: var(--r-md);
  color: var(--text); transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(8,20,40,0.7); box-shadow: 0 0 0 4px rgba(18,198,233,0.12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff6b7d; box-shadow: 0 0 0 4px rgba(255,107,125,0.12); }
.field .err-msg { color: #ff9aa6; font-size: 0.78rem; margin-top: 0.4em; display: none; }
.field.has-error .err-msg { display: block; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2312C6E9' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1em center; padding-right: 2.6em; }

/* File upload (custom) */
.upload { position: relative; border: 1.5px dashed var(--stroke-strong); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; transition: border-color var(--t-med), background var(--t-med); cursor: pointer; }
.upload:hover, .upload.is-drag { border-color: var(--cyan); background: rgba(18,198,233,0.06); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__ic { color: var(--cyan); margin-bottom: 0.6em; }
.upload__ic svg { width: 28px; margin-inline: auto; }
.upload strong { color: var(--text); }
.upload small { display: block; color: var(--text-muted); margin-top: 0.4em; font-size: 0.8rem; }
.upload__name { color: var(--cyan); font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.6em; }

/* Captcha */
.captcha { display: flex; align-items: end; gap: var(--sp-2); }
.captcha__q { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 0.6em 1em; border-radius: var(--r-md); background: rgba(8,16,32,0.5); border: 1px solid var(--stroke); white-space: nowrap; }
.captcha input { width: 110px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Form feedback */
.form__alert { display: none; align-items: center; gap: 0.8em; padding: var(--sp-3); border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.form__alert.is-show { display: flex; }
.form__alert--ok { background: rgba(18,198,233,0.12); border: 1px solid rgba(18,198,233,0.4); color: #bff0fb; }
.form__alert--err { background: rgba(255,107,125,0.12); border: 1px solid rgba(255,107,125,0.4); color: #ffb9c2; }
.form__alert svg { width: 22px; flex: none; }

/* --- Contact cards -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); align-items: start; }
.contact-info { display: grid; gap: var(--sp-2); }
.contact-row { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--stroke); transition: border-color var(--t-med), transform var(--t-med); }
.contact-row:hover { border-color: var(--stroke-strong); transform: translateX(4px); }
.contact-row .tile-ic { width: 46px; height: 46px; border-radius: 12px; }
.contact-row .tile-ic svg { width: 22px; }
.contact-row .rk { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-row .rv { font-weight: 600; }
.contact-row a.rv:hover { color: var(--cyan); }

/* Map embed */
.map-embed { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--stroke); box-shadow: var(--sh-card); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.map-embed .map-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, rgba(16,58,122,0.3), rgba(8,16,32,0.6)); color: var(--text-dim); text-align: center; padding: var(--sp-4); }

/* --- Timeline (about) ----------------------------------------------------- */
.timeline { position: relative; padding-left: var(--sp-5); }
.timeline::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--cyan), transparent); }
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 2px solid var(--cyan); box-shadow: 0 0 0 5px rgba(18,198,233,0.12); }
.timeline__year { font-family: var(--font-mono); color: var(--cyan); letter-spacing: 0.1em; font-size: 0.9rem; }
.timeline__item h3 { font-size: 1.1rem; margin: 0.4em 0; }
.timeline__item p { color: var(--text-dim); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(2.5rem, 1.5rem + 5vw, 5rem); text-align: center; overflow: hidden; background: linear-gradient(140deg, rgba(16,58,122,0.5), rgba(8,16,32,0.7)); border: 1px solid var(--stroke-strong); box-shadow: var(--sh-float); }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin: var(--sp-3) auto var(--sp-4); color: var(--text-dim); }
.cta-band__glow { position: absolute; width: 50vw; height: 50vw; left: 50%; top: 60%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(18,198,233,0.18), transparent 60%); pointer-events: none; }

/* --- Badge / pill --------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.45em 0.95em; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--stroke); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-dim); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.pills { display: flex; flex-wrap: wrap; gap: 0.6em; }

/* --- Feature list --------------------------------------------------------- */
.flist { display: grid; gap: 0.9em; }
.flist li { display: flex; gap: 0.8em; align-items: flex-start; color: var(--text-dim); }
.flist .ic { color: var(--cyan); flex: none; margin-top: 2px; }
.flist .ic svg { width: 20px; }
