/* SGS premium layer: a focused visual system for the Hugo shell.
   Local-only, no external runtime dependency. */
:root {
  --sgs-ink: #17141f;
  --sgs-ink-deep: #100d18;
  --sgs-violet: #6b45a7;
  --sgs-lilac: #cbb9ee;
  --sgs-surface: #fbfaff;
  --sgs-line: rgba(64, 37, 111, .13);
  --sgs-shadow: 0 22px 55px rgba(34, 19, 61, .10);
}

body { color: #393342; text-rendering: optimizeLegibility; }
::selection { background: rgba(169, 145, 212, .42); color: var(--sgs-ink); }
:focus-visible { outline: 3px solid #bca4ec; outline-offset: 3px; }
.sgs-skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-180%); padding: 10px 14px; border-radius: 8px; background: #fff; color: #21153a; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 700; text-decoration: none; transition: transform .18s ease; }
.sgs-skip-link:focus { transform: translateY(0); }

.sgs-header {
  background: rgba(16, 13, 24, .84);
  border-bottom-color: rgba(255,255,255,.09);
}
.sgs-header--scrolled { box-shadow: 0 14px 38px rgba(0,0,0,.28); }
.sgs-logo img { height: 38px; }
@media (min-width: 992px) {
  .sgs-menu > li > a { letter-spacing: .01em; }
  .sgs-nav-cta { padding-inline: 18px; box-shadow: 0 7px 20px rgba(104,82,237,.24); }
}

.sgs-hero {
  min-height: min(720px, 92vh);
  background:
    radial-gradient(circle at 83% 28%, rgba(168, 115, 255, .27), transparent 25%),
    radial-gradient(circle at 12% 88%, rgba(68, 43, 137, .42), transparent 32%),
    linear-gradient(127deg, #100d18 2%, #1b1232 51%, #25134b 100%);
  isolation: isolate;
}
.sgs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; pointer-events: none;
  background-image: linear-gradient(rgba(218,205,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(218,205,255,.075) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.sgs-hero::after {
  content: ""; position: absolute; width: 42vw; height: 42vw; min-width: 460px; min-height: 460px;
  right: -15vw; bottom: -27vw; border: 1px solid rgba(212,194,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(212,194,255,.035), 0 0 0 96px rgba(212,194,255,.025); pointer-events: none;
}
.sgs-hero-glow { opacity: .8; }
.sgs-hero-badge { padding: 8px 14px; letter-spacing: .04em; background: rgba(209,191,255,.09); }
.sgs-hero-title { max-width: 740px; font-size: clamp(2.55rem, 5.1vw, 5rem); line-height: .99; }
.sgs-hero-title em { color: #d4c4f4; }
.sgs-hero-subtitle { max-width: 570px; font-size: clamp(1rem, 1.35vw, 1.15rem); color: rgba(255,255,255,.72); }
.sgs-cloud-scene { transform: scale(1.1); }

.sgs-section { padding: clamp(72px, 9vw, 128px) 0; }
.sgs-section-alt { background: linear-gradient(180deg, #f9f7fd 0%, #fff 100%); }
.sgs-section-tag { color: var(--sgs-violet); letter-spacing: .14em; }
.sgs-section-title { max-width: 780px; font-size: clamp(2rem, 4.1vw, 3.6rem); color: var(--sgs-ink); }
.sgs-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.65; color: #383142; }

.sgs-trust-bar { padding-block: 34px; background: var(--sgs-surface); }
.sgs-trust-chip { padding: 9px 17px; background: #fff; box-shadow: 0 6px 18px rgba(40,23,71,.045); }

.sgs-service-card, .sgs-card, .sgs-step-card, .sgs-segment-card, .sgs-why-card, .sgs-case-card, .sgs-blog-card {
  border-color: var(--sgs-line); box-shadow: 0 2px 0 rgba(29,16,53,.02);
}
.sgs-service-card { border-radius: 16px; padding: 30px 26px; }
.sgs-service-card:hover, .sgs-card:hover, .sgs-step-card:hover, .sgs-segment-card:hover, .sgs-case-card:hover, .sgs-blog-card:hover {
  transform: translateY(-6px); border-color: rgba(104,82,237,.34); box-shadow: var(--sgs-shadow);
}
.sgs-service-icon, .sgs-card-icon, .sgs-step-icon, .sgs-segment-icon { background: linear-gradient(135deg, rgba(129,94,211,.15), rgba(104,82,237,.045)); }
.sgs-service-card h3, .sgs-card h3, .sgs-step-card h3, .sgs-segment-card h3 { font-size: 1.08rem; letter-spacing: -.015em; }
.sgs-service-tag, .sgs-card-link { color: var(--sgs-violet); }

.sgs-stat-card { border-radius: 16px; box-shadow: 0 12px 30px rgba(37,20,67,.06); }
.sgs-tech-group { border-left-color: var(--sgs-violet); }
.sgs-vendor-chip { background: #fff; box-shadow: 0 2px 9px rgba(32,17,60,.04); }

.sgs-cta-banner, .sgs-section--dark {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #160f26, #3b1f73 65%, #271241);
}
.sgs-cta-banner::after, .sgs-section--dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 30%, rgba(191,158,255,.26), transparent 25%);
}
.sgs-cta-banner-inner, .sgs-section--dark .container { position: relative; z-index: 1; }
.sgs-cta-banner h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); letter-spacing: -.035em; }
.sgs-btn-white { border-radius: 9px!important; box-shadow: 0 8px 26px rgba(0,0,0,.18); }

.sgs-footer { background: var(--sgs-ink-deep); }
.sgs-footer-bottom { padding-block: 24px; }
.sgs-footer-heading { color: #d9c7ff; }

.sgs-service-hero { background: linear-gradient(120deg, #140e22, #29154e); }
.sgs-page-content h2, .sgs-page-content h3 { letter-spacing: -.025em; }
.sgs-page-content a { color: var(--sgs-violet); font-weight: 600; }

.sgs-not-found {
  min-height: min(760px, 100vh); display: grid; place-items: center; padding: calc(var(--sgs-header-h) + 72px) 0 96px;
  color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(circle at 75% 22%, rgba(169,118,255,.25), transparent 22%), linear-gradient(125deg, #100d18, #241043 66%, #170d2b);
}
.sgs-not-found::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(221,206,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(221,206,255,.11) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent); }
.sgs-not-found-card { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.sgs-not-found .sgs-section-tag { color: #d9c7ff; }
.sgs-not-found-code { font-size: clamp(6rem, 17vw, 12rem); line-height: .82; letter-spacing: -.09em; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(225,212,255,.52); margin: 8px 0 22px; text-shadow: 0 0 38px rgba(169,118,255,.18); }
.sgs-not-found h1 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.045em; line-height: 1.03; margin-bottom: 18px; }
.sgs-not-found p:not(.sgs-section-tag) { max-width: 570px; margin: 0 auto 30px; color: rgba(255,255,255,.7); line-height: 1.7; }

.sgs-page-cta { background: var(--sgs-surface); padding: 0 0 clamp(72px, 9vw, 120px); }
.sgs-page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(34px, 5vw, 58px); border-radius: 20px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(126deg, #171022, #352060 62%, #251342); }
.sgs-page-cta-inner::after { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; top: -210px; border-radius: 50%; border: 1px solid rgba(224,209,255,.23); box-shadow: 0 0 0 52px rgba(224,209,255,.035); pointer-events: none; }
.sgs-page-cta-inner > * { position: relative; z-index: 1; }
.sgs-page-cta .sgs-section-tag { color: #ddccff; margin-bottom: 10px; }
.sgs-page-cta h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.04em; }
.sgs-page-cta p:not(.sgs-section-tag) { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }
.sgs-page-cta .sgs-btn-white { flex: 0 0 auto; }
@media (max-width: 767px) { .sgs-page-cta-inner { align-items: flex-start; flex-direction: column; gap: 24px; } }

.sgs-form-consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: #696175; font-size: .78rem; line-height: 1.5; cursor: pointer; }
.sgs-form-consent input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--sgs-violet); }
.sgs-form-consent a { color: var(--sgs-violet); font-weight: 650; }

.sgs-form-complete { padding: 2.25rem 1.25rem; text-align: center; }
.sgs-form-complete-icon { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #e9fbf0; color: #138a4b; font-size: 2rem; font-weight: 800; }
.sgs-form-complete h3 { margin-bottom: .65rem; }
.sgs-form-complete p { max-width: 28rem; margin: 0 auto 1.5rem; }

@media (max-width: 991px) {
  .sgs-hero { min-height: auto; }
  .sgs-hero::after { right: -42vw; bottom: -55vw; }
}
@media (max-width: 575px) {
  .sgs-hero { padding-top: calc(var(--sgs-header-h) + 52px); padding-bottom: 70px; }
  .sgs-section { padding-block: 68px; }
  .sgs-service-card { padding: 25px 21px; }
}
@media (max-width: 767px) {
  /* Keep editorial links compact visually while giving them dependable touch targets. */
  .sgs-card-link { min-height: 44px; padding-block: 12px; align-items: center; }
  .sgs-footer-links a, .sgs-footer-contacts a { display: inline-flex; min-height: 36px; align-items: center; }
  .sgs-lang-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; }
}
