/* =========================================================
   CloudGlobal360 — site styles
   Theme: navy base + blue / green / orange accents
   ========================================================= */
:root {
  --navy-900: #0B1326;
  --navy-850: #0F1B33;
  --navy-800: #121F3A;
  --navy-700: #1B2A4A;
  --card: #111c34;
  --card-border: rgba(255, 255, 255, 0.07);

  --blue: #3B82F6;
  --blue-bright: #60A5FA;
  --green: #14B8A6;
  --green-bright: #2DD4BF;
  --orange: #F59E0B;
  --orange-bright: #FB923C;

  --text: #EAF0FB;
  --muted: #9DAAC4;
  --muted-2: #6F7E9E;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font); line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---------- Gradient text helpers ---------- */
.grad-blue  { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(90deg, var(--green), var(--green-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-orange{ background: linear-gradient(90deg, var(--orange), var(--orange-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), #2563EB);
  color: #fff; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn--lg { padding: 16px 30px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.10); color: var(--blue-bright);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 10px var(--blue-bright); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 38, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { height: 38px; width: auto; display: block; }
.nav__tagpill {
  font-size: 12px; font-weight: 600; color: var(--green-bright);
  border: 1px solid rgba(45, 212, 191, 0.30); background: rgba(20, 184, 166, 0.08);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 30px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 0 24px 18px; }
.nav__mobile a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__mobile .btn { margin-top: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 70px 0 90px; text-align: center; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59,130,246,0.12), transparent 55%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 100%, 38px 38px, 38px 38px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 40%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 30%, #000 40%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(40px, 7vw, 78px); font-weight: 800; margin: 26px 0 22px; }
.hero__lead { max-width: 720px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 34px 0 14px; }

/* Hero demo video */
.hero__demo { margin-top: 44px; width: 100%; max-width: 720px; }
.hero__demo-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.play-mini { color: var(--orange-bright); margin-right: 6px; }

.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 50% 50%, rgba(59,130,246,0.18), transparent 60%),
    linear-gradient(135deg, #0F1B33, #16244a);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame__play {
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
  transition: transform .2s ease;
}
.video-frame:hover .video-frame__play { transform: scale(1.08); }
.video-frame__play-icon { font-size: 26px; margin-left: 4px; }
.video-frame--soon { cursor: default; }
.video-frame__soon { font-family: var(--font); font-weight: 700; font-size: 20px; letter-spacing: 1px; color: var(--muted); }
.video-frame__badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: #fff; padding: 4px 10px; border-radius: 6px;
  background: rgba(245, 158, 11, 0.9);
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.section { padding: 84px 0; }
.section--alt { background: var(--navy-850); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__title { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
.section__title--left { text-align: left; }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(96,165,250,0.4); }
.card h3 { font-size: 21px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 24px;
}
.icon--blue   { background: rgba(59,130,246,0.14);  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.3); }
.icon--green  { background: rgba(20,184,166,0.14);  box-shadow: inset 0 0 0 1px rgba(20,184,166,0.3); }
.icon--orange { background: rgba(245,158,11,0.14);  box-shadow: inset 0 0 0 1px rgba(245,158,11,0.3); }

/* ---------- Steps (how it works) ---------- */
.steps { list-style: none; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; position: relative; }
.step { display: flex; gap: 26px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px; }
.step__num {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 22px;
  color: var(--blue-bright); border: 1px solid rgba(96,165,250,0.4); background: rgba(59,130,246,0.08);
}
.step:nth-child(2) .step__num { color: var(--green-bright); border-color: rgba(45,212,191,0.4); background: rgba(20,184,166,0.08); }
.step:nth-child(3) .step__num { color: var(--orange-bright); border-color: rgba(251,146,60,0.4); background: rgba(245,158,11,0.08); }
.step__kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--blue-bright); }
.step:nth-child(2) .step__kicker { color: var(--green-bright); }
.step:nth-child(3) .step__kicker { color: var(--orange-bright); }
.step__body h3 { font-size: 23px; margin: 6px 0 8px; }
.step__body p { color: var(--muted); }

/* ---------- Quotes (results) ---------- */
.quote { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 32px 28px; }
.quote__stat { font-family: var(--font); font-weight: 800; font-size: 46px; }
.quote__cap { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted-2); margin: 2px 0 18px; }
.quote blockquote { color: var(--text); font-style: italic; font-size: 16px; line-height: 1.7; }
.quote__person { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.quote__person strong { color: var(--text); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; color: #fff; flex: 0 0 auto; }
.avatar--blue   { background: linear-gradient(135deg, var(--blue), #2563EB); }
.avatar--green  { background: linear-gradient(135deg, var(--green), var(--green-bright)); }
.avatar--orange { background: linear-gradient(135deg, var(--orange), var(--orange-bright)); }

/* ---------- Why / About ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__copy p { color: var(--muted); font-size: 17px; margin-top: 18px; }
.why__copy .btn { margin-top: 28px; }
.checklist { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--green-bright);
  border: 1px solid rgba(45,212,191,0.5); background: rgba(20,184,166,0.1);
}
.why__panel .mockup {
  background: var(--navy-800); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: 14px;
}
.mockup__dots { display: flex; gap: 8px; margin-bottom: 8px; }
.mockup__dots span { width: 12px; height: 12px; border-radius: 50%; background: #354056; }
.mockup__dots span:nth-child(1){ background:#FF5F57; } .mockup__dots span:nth-child(2){ background:#FEBC2E; } .mockup__dots span:nth-child(3){ background:#28C840; }
.mockup__bar { height: 16px; border-radius: 8px; background: rgba(255,255,255,0.07); }
.mockup__bar--lg { width: 45%; height: 38px; background: rgba(255,255,255,0.1); }
.mockup__bar--md { width: 80%; }
.mockup__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: auto; }
.mockup__tile { border-radius: 12px; aspect-ratio: 2/1; }
.mockup__tile--blue { background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(37,99,235,0.2)); }
.mockup__tile--green { background: linear-gradient(135deg, rgba(20,184,166,0.5), rgba(45,212,191,0.2)); }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: 100px; }
.cta-card {
  text-align: center; max-width: 880px; margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.18), transparent 60%), var(--card);
  border: 1px solid var(--card-border); border-radius: 28px; padding: 70px 40px;
}
.cta-card__title { font-size: clamp(34px, 6vw, 62px); font-weight: 800; }
.cta-card__sub { color: var(--muted); font-size: 19px; max-width: 600px; margin: 22px auto 34px; }
.cta-card__note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.check-mini { color: var(--green-bright); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 40px 0; background: var(--navy-850); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 34px; }
.footer__brand p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer__meta { text-align: right; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.footer__meta a { color: var(--blue-bright); }

/* =========================================================
   MODAL + FORM
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5, 9, 20, 0.72); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(560px, calc(100vw - 32px));
  margin: 6vh auto 0; max-height: 88vh; overflow-y: auto;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px; padding: 38px 34px; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; }
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 28px; font-weight: 800; }
.modal__sub { color: var(--muted); margin: 10px 0 24px; font-size: 15px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.form textarea { resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 14px; font-weight: 600; min-height: 18px; text-align: center; }
.form__status.is-ok { color: var(--green-bright); }
.form__status.is-err { color: #FF8A8A; }
.form__fineprint { font-size: 12px; color: var(--muted-2); text-align: center; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .nav__tagpill { display: none; }
  .cards, .cards--3 { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__panel { order: -1; }
}
@media (max-width: 620px) {
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; align-items: center; }
  .modal__dialog { padding: 30px 22px; }
}
