/* ============================================================
   CA·P — Collabora Page Stylesheet
   ============================================================ */

:root {
  --bg:         #060c18;
  --bg-2:       #0b1525;
  --bg-card:    #0d1a2e;
  --white:      #f0f4ff;
  --white-dim:  rgba(240,244,255,0.80);
  --blue:       #2a8fc4;
  --blue-light: #4dbde8;
  --blue-dim:   rgba(42,143,196,0.14);
  --blue-glow:  rgba(42,143,196,0.28);
  --silver:     #a0b0c8;
  --border:     rgba(255,255,255,0.16);
  --border-b:   rgba(77,189,232,0.40);
  --font-h:     'Syne', system-ui, sans-serif;
  --font:       'Space Grotesk', system-ui, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--white);
  background: var(--bg);
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ── NAV ─────────────────────────────────────────────────── */
.c-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,12,24,0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-text {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
.logo-dot { color: var(--blue); }
.c-nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240,244,255,0.55);
  transition: color 0.2s;
}
.c-nav-back:hover { color: var(--white); }
.c-nav-phone {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240,244,255,0.55);
  transition: color 0.2s;
}
.c-nav-phone:hover { color: var(--white); }

/* ── HERO ────────────────────────────────────────────────── */
.c-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding: 120px clamp(1.5rem, 6vw, 6rem) 80px;
  position: relative;
  overflow: hidden;
}
.c-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(42,143,196,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.c-hero-inner { position: relative; z-index: 1; }
.c-eyebrow {
  display: block;
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.c-title {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 2rem;
}
.c-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: 480px;
}
.c-hero-deco {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.c-deco-num {
  font-family: var(--font-h);
  font-size: clamp(5rem, 10vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(77,189,232,0.45);
  text-shadow: 0 0 60px rgba(77,189,232,0.12);
  line-height: 1;
  user-select: none;
}

/* ── PILLARS ─────────────────────────────────────────────── */
.c-pillars {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.c-pillars-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}
.c-pillar {
  padding: 3rem clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--border);
}
.c-pillar:last-child { border-right: none; }
.c-pillar-num {
  display: block;
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.c-pillar-text {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(240,244,255,0.60);
}

/* ── FORM SECTION ────────────────────────────────────────── */
.c-form-section {
  padding: clamp(5rem, 10vh, 9rem) clamp(1.5rem, 5vw, 5rem);
}
.c-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.c-form-header {
  margin-bottom: 3rem;
}
.c-form-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0.75rem 0 0.9rem;
  line-height: 1.05;
}
.c-form-subtitle {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--white-dim);
}

/* CARD */
.c-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow:
    0 8px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* FORM */
.c-form { display: flex; flex-direction: column; gap: 20px; }
.c-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-group { display: flex; flex-direction: column; gap: 7px; }
.c-label {
  font-size: 0.70rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.c-label .req { color: var(--blue); }
.c-optional {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.35);
}

.c-input,
.c-select,
.c-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.93rem;
  color: var(--white);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.c-input::placeholder, .c-textarea::placeholder { color: rgba(200,215,235,0.30); }
.c-select { color: var(--white); cursor: pointer; }
.c-select option { background: var(--bg-card); color: var(--white); }

.c-input:focus,
.c-select:focus,
.c-textarea:focus {
  border-color: var(--blue-light);
  background: rgba(42,143,196,0.07);
  box-shadow: 0 0 0 3px rgba(77,189,232,0.16);
}
.c-input.error { border-color: rgba(255,80,80,0.5); box-shadow: 0 0 0 3px rgba(255,80,80,0.10); }

.c-select-wrap { position: relative; }
.c-select { padding-right: 40px; }
.c-select-arrow {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--silver); font-size: 0.75rem;
}

.c-textarea { resize: vertical; min-height: 160px; }
.c-divider  { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Submit */
.c-submit-area { display: flex; flex-direction: column; gap: 12px; }
.c-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
  box-shadow: 0 4px 24px var(--blue-glow);
}
.c-submit-btn:hover:not(:disabled) {
  background: var(--blue-light);
  box-shadow: 0 8px 32px var(--blue-glow);
  transform: translateY(-2px);
}
.c-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.c-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(240,244,255,0.45);
  line-height: 1.6;
}
.c-disclaimer a { color: var(--blue); }

/* Spinner */
.c-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.c-spinner.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.c-success { display: none; text-align: center; padding: 56px 32px; }
.c-success.visible { display: block; }
.c-success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px var(--blue-glow);
}
.c-success-icon svg { width: 28px; height: 28px; color: #fff; }
.c-success h3 {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 10px;
}
.c-success p {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto 28px;
}
.c-success-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--border-b);
  border-radius: 100px;
  padding: 11px 24px;
  transition: background 0.2s, color 0.2s;
}
.c-success-back:hover { background: var(--blue); color: #fff; }

/* Alt contacts */
.c-alt {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.c-alt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  transition: border-color 0.25s, background 0.25s;
}
.c-alt-item:hover { border-color: var(--blue-light); background: rgba(42,143,196,0.07); }
.c-alt-icon {
  width: 36px; height: 36px;
  background: var(--blue-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}
.c-alt-icon svg { width: 16px; height: 16px; }
.c-alt-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.c-alt-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.c-footer {
  border-top: 1px solid var(--border);
  padding: 28px clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(160,176,200,0.4);
}
.c-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.c-footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.25);
}
.c-footer-logo span { color: var(--blue); }
.c-footer-copy { margin: 0; }
.c-footer-links { display: flex; gap: 16px; margin-top: 4px; }
.c-footer-links a {
  color: rgba(160,176,200,0.4);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.c-footer-links a:hover { color: var(--blue-l); }

/* Responsive */
@media (max-width: 1024px) {
  .c-pillars-inner { grid-template-columns: 1fr 1fr; }
  .c-pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .c-pillar:last-child { border-bottom: none; }
  .c-hero { grid-template-columns: 1fr; }
  .c-hero-deco { display: none; }
}
@media (max-width: 600px) {
  .c-pillars-inner { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 1fr; }
  .c-alt { grid-template-columns: 1fr; }
}

/* ── PAGE TRANSITION ─────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
#page-transition.active { opacity: 1; pointer-events: all; }
.pt-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
.pt-logo span { color: var(--blue); }

/* ── FLOATING CONTACT CTA ────────────────────────────────── */
#float-cta {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
#float-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(42,143,196,0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#float-toggle:hover {
  background: var(--blue-light);
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(42,143,196,0.55);
}
#float-menu {
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
#float-cta.open #float-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.float-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(6,12,24,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.float-item:hover { background: var(--blue); border-color: var(--blue); }
.float-item svg { flex-shrink: 0; color: var(--blue-light); }
.float-item:hover svg { color: #fff; }

/* ── FORM ERROR ──────────────────────────────────────────── */
.c-form-error {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.30);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: rgba(220,50,50,0.90);
  text-align: center;
}
