/* ==========================================================================
   Bikolpo NOC — style.css
   Sections: 1 Fonts · 2 Tokens · 3 Base · 4 Scene (background) · 5 Hero
             6 Buttons · 7 Services · 8 Closing/Footer · 9 Modal
             10 Intro states · 11 Responsive · 12 Reduced motion
   ========================================================================== */

/* 1. Fonts (self-hosted Geologica, SIL OFL) ------------------------------- */
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/geologica-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geologica-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geologica-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/geologica-latin-700-normal.woff2") format("woff2"); }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --blue: #3354ff;
  --blue-2: #6b8aff;
  --blue-deep: #2238d8;
  --ink: #0b0d1a;
  --ink-2: #4a4f6a;
  --ink-3: #7a7f99;
  --bg: #ebefff;
  --surface: #eef1ff;
  --line: rgba(20, 32, 110, .12);
  --font: "Geologica", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; transform: translateY(-200%); z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; transition: transform .2s; }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* 4. Scene: gradient + hex world map + network + horizon ------------------ */
.scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene__glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 46% at 10% 14%, #fff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(30% 40% at 92% 6%, #fff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(66% 82% at 50% 100%, rgba(51,84,255,1) 0%, rgba(58,90,255,.84) 20%, rgba(98,126,255,.5) 40%, rgba(150,170,255,.22) 58%, rgba(235,239,255,0) 76%),
    linear-gradient(180deg, #e9edff 0%, #e3e8ff 100%);
  transform-origin: 50% 100%;
  animation: glow 9s ease-in-out infinite;
}
@keyframes glow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .92; } }

.scene__map, .scene__net {
  position: absolute; left: -2%; top: -2%; width: 104%; height: 104%;
  object-fit: cover; object-position: center center;
  will-change: transform;
}
.scene__map { opacity: 1; }
.scene__net { overflow: visible; }
.net-link { fill: none; stroke: rgba(51,84,255,.2); stroke-width: 1.1; stroke-linecap: round; }
.net-node { fill: #fff; stroke: rgba(51,84,255,.7); stroke-width: 1.6; }
.net-node--hq { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.net-ring { fill: none; stroke: var(--blue); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: ring 3.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.net-packet { fill: #fff; filter: drop-shadow(0 0 4px rgba(51,84,255,.95)) drop-shadow(0 0 10px rgba(51,84,255,.6)); }

/* Planet horizon arc */
.horizon {
  position: absolute; left: 50%; top: calc(100% - var(--horizon-lift, 96px));
  width: max(190vw, 1500px); height: max(60vw, 520px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 -2px 0 0 rgba(77,107,255,.95),
    0 -6px 18px 0 rgba(51,84,255,.55),
    0 -22px 70px 0 rgba(51,84,255,.45);
}
.horizon::after { /* soft inner light along the rim */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(50% 9% at 50% 0%, rgba(120,145,255,.55), rgba(238,241,255,0) 100%);
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--gutter) 150px;
  overflow: hidden;
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 44px;
  text-align: center;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(60deg); }
.logo__word { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.logo__word span { font-weight: 300; color: var(--blue); margin-left: 7px; }

.hero-text {
  font-size: clamp(30px, 3.9vw, 58px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  white-space: nowrap;
}
.hero-text .line { display: block; }
.hero-text .light { font-weight: 300; }
.hero-text .bold { font-weight: 700; }
.emoji { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin: 0 .02em; filter: drop-shadow(0 4px 8px rgba(34,56,216,.18)); }

/* Shimmer keyword (hover) */
.keyword {
  position: relative; cursor: default;
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue) 0%, #9fb3ff 50%, var(--blue) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: var(--blue);
  transition: -webkit-text-fill-color .4s;
}
.keyword:hover, .keyword.is-shining { -webkit-text-fill-color: transparent; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }

.hero-sub {
  max-width: 560px; margin-top: -18px;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.55;
  color: var(--ink-2);
}

.hero__foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; margin: 0 auto; width: max-content;
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 400; color: var(--ink);
  white-space: nowrap;
}
.hero__foot svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .35s var(--ease); }
.hero__foot:hover { color: var(--blue); }
.hero__foot:hover svg { transform: rotate(90deg) translateX(4px); }

/* 6. Buttons -------------------------------------------------------------- */
.cta-button {
  position: relative; z-index: 1; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 26px 38px;
  border: 0; border-radius: 80px; cursor: pointer;
  background: radial-gradient(at 50% 0%, rgba(51,84,255,.62), rgba(51,84,255,.92)), var(--blue);
  color: #fff;
  box-shadow: 0 4px 25px rgba(51,84,255,.3);
  animation: breathe 3s ease-in-out 1.6s infinite;
  transition: transform .25s, box-shadow .25s;
}
.cta-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(at center top, #2a2a2a, #0d0d0d);
  opacity: 0; transition: opacity .5s;
}
.cta-button svg { width: 24px; height: 24px; transition: transform .6s var(--ease); }
.cta-button span { font-size: 22px; font-weight: 500; white-space: nowrap; }
.cta-button:hover { animation-play-state: paused; transform: scale(1.06); box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.cta-button:hover::before { opacity: 1; }
.cta-button:hover svg { transform: rotate(120deg); }
.cta-button:active { transform: scale(.98); }
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 25px rgba(51,84,255,.3); }
  50% { transform: scale(1.04); box-shadow: 0 6px 35px rgba(51,84,255,.5); }
}

/* 7. Services ------------------------------------------------------------- */
.services {
  position: relative; z-index: 1;
  background: var(--surface);
  padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 80px);
}
.section-head {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 15px; font-weight: 500; color: var(--blue);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(51,84,255,.15); }
.section-title .tl { display: block; }
.section-title { font-size: clamp(28px, 3vw, 46px); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; }
.section-title .light { font-weight: 300; }
.section-lead { font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--ink-2); max-width: 440px; justify-self: end; }

.service-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 3vw, 48px); }
.service {
  position: relative;
  padding: 30px 56px 46px 0;
  border-top: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service__num { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.service__title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 12px; transition: color .3s; }
.service__text { font-size: 15.5px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.service__link {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.service__link svg {
  width: 40px; height: 40px; margin-top: 24px; padding: 10px; border-radius: 50%;
  color: var(--blue); background: rgba(51,84,255,.08);
  transform: translateX(-8px) rotate(-45deg); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s, background .3s, color .3s;
}
.service:hover::before, .service:focus-within::before { transform: scaleX(1); }
.service:hover .service__title, .service:focus-within .service__title { color: var(--blue); }
.service:hover .service__link svg, .service:focus-within .service__link svg { opacity: 1; transform: none; background: var(--blue); color: #fff; }
.service__link:focus-visible { outline: none; }
.service__link:focus-visible svg { opacity: 1; transform: none; outline: 2px solid var(--blue); outline-offset: 3px; }

/* 8. Closing + footer ----------------------------------------------------- */
.closing {
  position: relative; isolation: isolate;
  min-height: 70vh; min-height: 70svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px var(--gutter) 170px;
  overflow: hidden;
}
.scene--closing::before { /* blend from the services surface */
  content: ""; position: absolute; inset: 0 0 auto; height: 30%; z-index: 1;
  background: linear-gradient(180deg, var(--surface), rgba(238,241,255,0));
}
.scene--closing .scene__map { opacity: .8; }
.closing__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; }
.closing__title { font-size: clamp(30px, 3.6vw, 54px); }

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; color: var(--ink); transition: color .25s; }
.contact-links svg { width: 20px; height: 20px; color: var(--blue); transition: transform .35s var(--ease); }
.contact-links a:hover { color: var(--blue); }
.contact-links a:hover svg { transform: translateY(-2px) scale(1.1); }

.footer { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; text-align: center; }
.footer p { font-size: 17px; font-weight: 400; color: var(--ink); }

/* 9. Modal ---------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 30px; background: transparent; color: var(--ink);
  overflow: visible;
}
.modal::backdrop { background: rgba(20, 28, 80, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fade .35s ease; }
.modal.is-closing { animation: modalOut .25s ease forwards; }
.modal.is-closing::backdrop { animation: fade .25s ease reverse forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 40px 40px 34px;
  border-radius: 30px;
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(51,84,255,.10), rgba(255,255,255,0) 70%),
    #fff;
  box-shadow: 0 30px 80px rgba(34,56,216,.25), 0 0 0 1px rgba(51,84,255,.08);
  overscroll-behavior: contain;
}
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; padding: 11px;
  border: 0; border-radius: 50%; background: #f1f3ff; color: var(--ink); cursor: pointer;
  transition: background .25s, transform .4s var(--ease);
}
.modal__close svg { width: 100%; height: 100%; }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__mark { width: 44px; height: 44px; margin-bottom: 18px; }
.modal__title { font-size: 34px; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.modal__title .light { font-weight: 300; }
.modal__desc { margin-top: 10px; font-size: 15.5px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }

.channels { display: grid; gap: 10px; margin-top: 26px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px 14px 14px; border-radius: 18px;
  background: #f5f7ff; border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.channel__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; }
.channel__icon svg { width: 24px; height: 24px; }
.channel--wa .channel__icon { background: #25d366; }
.channel--mail .channel__icon { background: var(--blue); }
.channel--fb .channel__icon { background: #1877f2; }
.channel__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.channel__body strong { font-size: 16px; font-weight: 500; }
.channel__body span { font-size: 14px; font-weight: 300; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel__arrow { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease), color .25s; }
.channel:hover { background: #fff; border-color: rgba(51,84,255,.25); transform: translateY(-2px); }
.channel:hover .channel__arrow { color: var(--blue); transform: translateX(4px); }

.divider { position: relative; margin: 26px 0 20px; text-align: center; font-size: 13px; color: var(--ink-3); }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.divider span { position: relative; padding: 0 12px; background: #fff; }

.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full, .form-error, .form-actions { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid rgba(20,32,110,.14); background: #fbfcff;
  font-size: 15px; font-weight: 400; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%233354ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(51,84,255,.12); }
.field [aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.form-error { min-height: 0; font-size: 13.5px; color: #d13438; }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 20px; border-radius: 60px; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 500; white-space: nowrap;
  transition: transform .25s, background .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(51,84,255,.35); }
.btn--primary:hover { background: var(--ink); box-shadow: 0 8px 26px rgba(0,0,0,.3); transform: translateY(-1px); }
.btn--ghost { background: #f1f3ff; color: var(--ink); }
.btn--ghost:hover { background: #e3e8ff; transform: translateY(-1px); }

/* 10. Intro / reveal states ----------------------------------------------- */
/* With JS: GSAP drives these. Without GSAP: CSS fallback (.no-gsap). */
.js .intro, .js .reveal { opacity: 0; transform: translateY(30px); }
.no-gsap .intro, .no-gsap .reveal { animation: fadeSlideUp .8s ease-out forwards; }
.no-gsap .intro:nth-child(2) { animation-delay: .2s; }
.no-gsap .intro:nth-child(3) { animation-delay: .4s; }
.no-gsap .intro:nth-child(4) { animation-delay: .55s; }
.no-gsap .cta-button.intro, .no-gsap .cta-button.reveal { animation: fadeSlideUp .8s ease-out .55s forwards, breathe 3s ease-in-out 1.6s infinite; }
@keyframes fadeSlideUp { to { opacity: 1; transform: none; } }

/* 11. Responsive ---------------------------------------------------------- */
@media (min-width: 701px) and (max-width: 1024px) {
  .hero-text, .closing__title { font-size: 5.2vw; }
}
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .section-lead { justify-self: start; max-width: 560px; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .section-title .tl { display: inline; }
}
@media (max-width: 700px) {
  .hero { padding: 64px 20px 140px; }
  .hero__content, .closing__content { gap: 34px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__word { font-size: 26px; }
  .hero-text { font-size: clamp(22px, 6.6vw, 34px); }
  .hero-sub { font-size: 15.5px; margin-top: -12px; max-width: 340px; }
  .cta-button { padding: 19px 28px; }
  .cta-button span { font-size: 18px; }
  .cta-button svg { width: 20px; height: 20px; }
  .hero__foot, .footer p { font-size: 14px; }
  .hero__foot, .footer { bottom: 24px; }
  .horizon { --horizon-lift: 84px; width: 260vw; height: 120vw; }
  .closing { padding: 40px 20px 150px; min-height: 0; }
  .closing__title { font-size: clamp(22px, 6.6vw, 34px); }
  .service-list { grid-template-columns: 1fr; }
  .service { padding: 26px 52px 32px 0; }
  .service__link svg { opacity: 1; transform: none; width: 36px; height: 36px; padding: 9px; }
  .modal__panel { padding: 30px 22px 24px; border-radius: 26px; }
  .modal__title { font-size: 28px; }
  .quick-form { grid-template-columns: 1fr; }
}
@media (max-height: 640px) and (min-width: 701px) {
  .hero__content { gap: 26px; }
  .hero-text { font-size: 38px; }
  .cta-button { padding: 18px 28px; }
  .cta-button span { font-size: 18px; }
}
@media (hover: none) {
  .service__link svg { opacity: 1; transform: none; }
}

/* 12. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .intro, .js .reveal { opacity: 1; transform: none; }
  .net-packet, .net-ring { display: none; }
}

@media (min-width: 1025px) { .section-title .tl { white-space: nowrap; } }
