/* ============================================================
   PrimeLink Solutions — Luxury 3D Design System
   Palette:  midnight navy / sapphire / champagne gold / cyan glow
   Type:     Fraunces (display) + Manrope (body) + JetBrains Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --midnight: #070b1a;
  --midnight-2: #0c1330;
  --sapphire: #12294f;
  --sapphire-2: #1a3768;
  --gold: #c9a961;
  --gold-bright: #ecd48f;
  --gold-dim: #8a7440;
  --cyan: #56d9ff;
  --ice: #eaf2ff;
  --pearl: #f7f5ef;
  --pearl-dim: #ded9c9;
  --ink: #0a0f1f;
  --muted: #9aa8c7;

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 0 1px rgba(201, 169, 97, 0.25), 0 20px 60px -15px rgba(201, 169, 97, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.01em;
  color: var(--midnight);
  margin: 0.5rem 0 0.8rem;
}
.section-title .accent { color: var(--gold-dim); font-style: italic; }
.section-sub {
  color: #56607a;
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-head { text-align: center; margin-bottom: 3.2rem; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- perspective stage (for 3D tilt children) ---------- */
.stage { perspective: 1400px; }
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  background: rgba(7, 11, 26, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { padding: 10px 0; background: rgba(7, 11, 26, 0.85); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; color: var(--midnight);
  font-size: 1.1rem;
  box-shadow: 0 8px 24px -8px rgba(201, 169, 97, 0.7);
  transform-style: preserve-3d;
}
.brand-name {
  font-family: var(--font-display);
  color: var(--ice);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.brand-name span { color: var(--gold); font-style: italic; font-weight: 400; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.82;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(201, 169, 97, 0.55);
}
.btn-gold:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -10px rgba(201, 169, 97, 0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ice);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark {
  background: var(--midnight);
  color: var(--gold-bright);
  border: 1px solid rgba(201,169,97,0.4);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 75% 20%, #14203f 0%, var(--midnight) 55%), var(--midnight);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, black, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-copy .eyebrow { color: var(--gold-bright); }
.hero-copy .eyebrow::before { background: var(--gold-bright); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.04;
  color: var(--ice);
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-copy p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-trust b { color: var(--gold-bright); font-weight: 600; }

/* --- 3D globe canvas stage --- */
.hero-visual { position: relative; height: 560px; }
#globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.float-card {
  position: absolute;
  background: rgba(15, 22, 46, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-deep);
  transform-style: preserve-3d;
}
.float-card .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-bright);
  line-height: 1;
}
.float-card .lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.float-card--a { top: 6%; left: -4%; animation: bob 7s ease-in-out infinite; }
.float-card--b { bottom: 10%; left: 2%; animation: bob 8s ease-in-out infinite 1s; }
.float-card--c { top: 42%; right: -6%; animation: bob 6.5s ease-in-out infinite 0.5s; }
@keyframes bob { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: pulse-line 2s ease-in-out infinite; }
@keyframes pulse-line { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Services ---------- */
.services { background: var(--pearl); padding: 120px 0; position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: linear-gradient(180deg, #ffffff, #fbf9f3);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid rgba(10, 15, 31, 0.06);
  box-shadow: 0 2px 0 rgba(10,15,31,0.02), 0 20px 40px -28px rgba(10,15,31,0.25);
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { box-shadow: var(--shadow-gold); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sapphire-2), var(--midnight));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--gold-bright);
  margin-bottom: 20px;
  transform: translateZ(30px);
  box-shadow: 0 12px 24px -10px rgba(18, 41, 79, 0.5);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: var(--midnight);
  transform: translateZ(20px);
}
.service-card p {
  color: #667089;
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0 0 18px;
  transform: translateZ(12px);
}
.service-card .link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transform: translateZ(20px);
}
.service-card .link svg { transition: transform 0.25s var(--ease); width: 12px; height: 12px; }
.service-card:hover .link svg { transform: translateX(4px); }

/* ---------- How it works ---------- */
.how { background: var(--midnight); padding: 120px 0; position: relative; overflow: hidden; }
.how::after {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.12), transparent 70%);
}
.how .section-title, .how .eyebrow { color: var(--ice); }
.how .eyebrow { color: var(--gold-bright); }
.how .eyebrow::before { background: var(--gold-bright); }
.how .section-sub { color: var(--muted); }
.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-top: 3rem;
}
.how-row::before {
  content: '';
  position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,0.35), transparent);
}
.how-step { position: relative; text-align: left; }
.how-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--midnight);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 0 0 6px rgba(7,11,26,1), 0 0 0 7px rgba(201,169,97,0.35);
  position: relative; z-index: 2;
}
.how-step h3 { font-family: var(--font-display); color: var(--ice); font-size: 1.25rem; margin: 0 0 10px; }
.how-step p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* ---------- Why choose ---------- */
.why { background: var(--pearl); padding: 120px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 3rem; }
.why-item { text-align: center; padding: 20px; }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f1ecdd);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim);
  font-size: 1.4rem;
  box-shadow: 0 16px 30px -14px rgba(201,169,97,0.5), inset 0 0 0 1px rgba(201,169,97,0.25);
}
.why-item h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; color: var(--midnight); }
.why-item p { color: #667089; font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ---------- CTA / Contact ---------- */
.cta {
  position: relative;
  background: linear-gradient(120deg, var(--midnight) 0%, var(--sapphire) 100%);
  padding: 100px 0;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(201,169,97,0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.15;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.cta-left .eyebrow { color: var(--gold-bright); }
.cta-left .eyebrow::before { background: var(--gold-bright); }
.cta-left h2 { font-family: var(--font-display); color: var(--ice); font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 16px 0; line-height: 1.15; }
.cta-left p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-bottom: 26px; max-width: 420px; }
.phone-block {
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}
.phone-block .icon { color: var(--gold-bright); font-size: 1.4rem; }
.phone-block .num { font-family: var(--font-mono); font-size: 1.5rem; color: var(--ice); font-weight: 600; letter-spacing: 0.02em; }
.phone-block .sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.form-card {
  background: rgba(10, 15, 31, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-deep);
}
.form-card h3 { font-family: var(--font-display); color: var(--ice); margin: 0 0 6px; font-size: 1.3rem; }
.form-card .sub-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(234,242,255,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.field select option { background: var(--midnight-2); color: var(--ice); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: 0.85rem; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-msg.success { display: block; background: rgba(86, 217, 156, 0.12); color: #8ff0c4; border: 1px solid rgba(86,217,156,0.3); }
.form-msg.error { display: block; background: rgba(255, 99, 99, 0.12); color: #ffb3b3; border: 1px solid rgba(255,99,99,0.3); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 46px 0; }
.footer-badges { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-badge { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.footer-badge .fa-icon { color: var(--gold); font-size: 1.1rem; }
.footer-bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; color: #5c6688; font-size: 0.78rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--gold-dim); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,6,14,0.72);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--midnight-2);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: var(--radius-lg);
  max-width: 440px; width: 100%;
  padding: 30px;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--muted); font-size: 1.2rem;
}
.modal h3 { font-family: var(--font-display); color: var(--ice); margin: 0 0 4px; }
.modal .modal-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }

/* ---------- Toast (call button feedback) ---------- */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 600;
  background: var(--midnight-2); border: 1px solid rgba(201,169,97,0.4);
  color: var(--ice); padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; box-shadow: var(--shadow-deep);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all 0.3s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .how-row { grid-template-columns: 1fr; gap: 30px; }
  .how-row::before { display: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-badges { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
