/* =============================================
   TOKENS
   ============================================= */
:root {
  --gold: #E8A820;
  --gold-hover: #F2B83A;
  --gold-glow: rgba(232, 168, 32, 0.12);
  --gold-faint: rgba(232, 168, 32, 0.06);

  --bg: #0B0F14;
  --bg-raised: #10151C;
  --bg-surface: #161C25;

  --border: rgba(255,255,255,0.07);
  --border-gold: rgba(232,168,32,0.18);

  --heading: #FFFFFF;
  --body: #B8BFC8;
  --muted: #727D8A;
  --faint: #4A5361;

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection { background: rgba(232,168,32,0.25); color: #fff; }

/* =============================================
   HEADER
   ============================================= */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  z-index: 1000;
  background: rgba(11,15,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: height 0.35s var(--ease);
}
.hdr.sm { height: 54px; }

.hdr-in {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-decoration: none;
}

.logo img {
  height: 34px;
  transition: height 0.35s var(--ease);
}
.sm .logo img { height: 24px; }

.logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: 0.01em;
  transition: font-size 0.35s var(--ease);
}
.logo-name b { color: var(--gold); font-weight: 500; }
.sm .logo-name { font-size: 0.95rem; }

/* Nav */
.nav { display: flex; align-items: center; gap: 24px; }

.dd { position: relative; }

.dd-btn {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 0;
  transition: color 0.2s;
}
.dd-btn:hover, .dd.on .dd-btn { color: var(--gold); }

.dd-btn svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.dd.on .dd-btn svg { transform: rotate(180deg); }

.dd-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 264px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.dd.on .dd-list { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.dd-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--body);
  text-decoration: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dd-link:hover { background: var(--gold-faint); color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem; font-weight: 600;
  border: none; border-radius: 7px;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}
.btn-g { background: var(--gold); color: var(--bg); }
.btn-g:hover { background: var(--gold-hover); box-shadow: 0 0 28px rgba(232,168,32,0.18); transform: translateY(-1px); }
.sm .btn { padding: 7px 18px; font-size: 0.8rem; }

.btn-o { background: transparent; border: 1px solid var(--border); color: var(--body); }
.btn-o:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile */
.mob-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.mob-btn span { display: block; width: 20px; height: 1.5px; background: var(--body); border-radius: 1px; }

.mob-menu {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: rgba(11,15,20,0.98);
  backdrop-filter: blur(20px);
  padding: 28px;
  z-index: 999; overflow-y: auto;
}
.mob-menu.on { display: block; }
.sm ~ .mob-menu { top: 54px; }

.mob-label {
  font-size: 0.68rem; font-weight: 600;
  color: var(--faint); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}

.mob-link {
  display: block; padding: 14px 0;
  color: var(--body); text-decoration: none;
  font-size: 0.95rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color 0.15s;
}
.mob-link:hover { color: var(--gold); }

.mob-cta { margin-top: 24px; }
.mob-cta .btn { width: 100%; justify-content: center; padding: 14px; }

/* =============================================
   MAIN
   ============================================= */
.main { padding-top: 76px; }
.pg { animation: pgIn 0.3s ease; }
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: calc(88vh - 76px);
  display: flex; align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -15%; right: -8%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(232,168,32,0.035) 0%, transparent 60%);
  pointer-events: none;
}

.hero-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px;
  width: 100%; position: relative;
}

h1.hero-h {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: min(8vw, 3.8rem);
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
h1.hero-h em { font-style: normal; font-weight: 700; color: var(--gold); }

.hero-p {
  max-width: 540px;
  font-size: 1.02rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =============================================
   SHARED
   ============================================= */
.sec {
  padding: 96px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.sec-h {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.25;
}

.sec-p {
  max-width: 520px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.sec-expertise {
  background: var(--bg-raised);
  padding: 96px 28px;
}
.sec-expertise-in {
  max-width: 1100px;
  margin: 0 auto;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.svc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.svc-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.svc-card:hover::before { opacity: 1; }

.svc-card-t {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.svc-card-b {
  color: var(--body);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.svc-card-arr {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, gap 0.2s;
}
.svc-card:hover .svc-card-arr { color: var(--gold); gap: 8px; }

/* =============================================
   RESULTS SECTION
   ============================================= */
.sec-results {
  background: var(--bg-raised);
  padding: 96px 28px 80px;
}
.sec-results-in {
  max-width: 1100px;
  margin: 0 auto;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
}

.res-item {
  text-align: center;
  padding: 20px 20px;
  border-right: 1px solid var(--border);
  position: relative;
  cursor: default;
}
.res-item:last-child { border-right: none; }

.res-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 0.25s var(--ease);
}

.res-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.res-tip {
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%) translateY(100%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.5;
  width: 220px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 10;
}
.res-tip::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.res-item:hover .res-num { transform: scale(1.06); }
.res-item:hover .res-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(calc(100% + 4px)); }

/* Testimonial inside results */
.sec-results .testi {
  padding: 56px 0 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.testi-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--heading);
  line-height: 1.75;
  margin-bottom: 16px;
}

.testi-a {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

/* =============================================
   CTA BLOCK
   ============================================= */
.cta-block {
  text-align: center;
  padding: 96px 28px;
  max-width: 600px;
  margin: 0 auto;
}
.cta-block .sec-p { max-width: 100%; margin: 0 auto 32px; }

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 96px 28px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.contact .sec-p { max-width: 100%; margin: 0 auto 36px; }

.fg { text-align: left; }
.fgp { margin-bottom: 16px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

.fl {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--muted); margin-bottom: 5px;
}
.fl .rq { color: var(--gold); }

.fi, .ft {
  width: 100%; padding: 11px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.fi:focus, .ft:focus { border-color: var(--gold); }
.ft { resize: vertical; min-height: 80px; }
.fi::placeholder, .ft::placeholder { color: var(--faint); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.fs { width: 100%; justify-content: center; padding: 12px; margin-top: 4px; }

.fst { margin-top: 10px; font-size: 0.82rem; min-height: 18px; text-align: center; }
.fst.ok { color: #4ADE80; }
.fst.err { color: #F87171; }

/* =============================================
   SERVICE PAGES
   ============================================= */
.sp-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}

.sp-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--muted);
  cursor: pointer; margin-bottom: 24px;
  text-decoration: none; transition: color 0.15s;
}
.sp-back:hover { color: var(--gold); }

.sp-h {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--heading);
  line-height: 1.18;
}

.sp-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 96px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: start;
}

.sp-text { font-size: 0.98rem; color: var(--body); line-height: 1.85; margin-bottom: 52px; }
.sp-text p + p { margin-top: 18px; }

/* Use case */
.uc {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 52px;
}
.uc-lbl {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.uc-h {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 500;
  color: var(--heading); margin-bottom: 12px; line-height: 1.35;
}
.uc-p { font-size: 0.9rem; color: var(--body); line-height: 1.8; }

/* Deliverables */
.dl-lbl {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.dl-list { list-style: none; }
.dl-list li {
  padding: 13px 0; color: var(--body);
  font-size: 0.9rem; line-height: 1.6;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
}
.dl-list li::before {
  content: ''; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  flex-shrink: 0; margin-top: 8px;
}

/* Sidebar */
.sp-side { position: sticky; top: 96px; }
.side-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
}
.side-h {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--heading);
  font-weight: 500; margin-bottom: 5px;
}
.side-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
.ftr { border-top: 1px solid var(--border); padding: 32px 28px; }
.ftr-in {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.ftr-c { color: var(--faint); font-size: 0.76rem; }
.ftr-l { display: flex; gap: 20px; }
.ftr-l a { color: var(--muted); text-decoration: none; font-size: 0.76rem; transition: color 0.15s; }
.ftr-l a:hover { color: var(--gold); }

/* =============================================
   PRIVACY PAGE
   ============================================= */
.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.privacy-page h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--heading);
  margin-bottom: 8px;
}
.privacy-page .pp-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.privacy-page h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading);
  margin-top: 36px;
  margin-bottom: 10px;
}
.privacy-page p {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 14px;
}
.privacy-page ul {
  list-style: none;
  margin-bottom: 14px;
  padding-left: 0;
}
.privacy-page ul li {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.privacy-page ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.privacy-page a { color: var(--gold); text-decoration: none; }
.privacy-page a:hover { text-decoration: underline; }

/* =============================================
   REVEALS
   ============================================= */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.rv.vis { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sp-body { grid-template-columns: 1fr; gap: 48px; }
  .sp-side { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav .dd, .nav .btn { display: none; }
  .mob-btn { display: flex; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card-arr { display: none; }
  .res-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .res-item { border-right: none; padding: 10px 0; }
  .res-tip { display: none; }
  .hero-in { padding: 44px 24px; }
  .sec { padding: 60px 24px; }
  .sec-expertise { padding: 60px 24px; }
  .sec-results { padding: 60px 24px 48px; }
  .testi, .cta-block, .contact { padding: 60px 24px; }
  .sp-top { padding: 44px 24px 28px; }
  .sp-body { padding: 0 24px 60px; }
  .fg-row { grid-template-columns: 1fr; gap: 0; }
  .fg-row > div { margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .res-grid { grid-template-columns: 1fr; gap: 24px; }
  .ftr-in { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

/* =============================================
   LIGHT MODE
   ============================================= */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-raised: #F5F6F8;
    --bg-surface: #EDEEF1;

    --border: rgba(11, 15, 20, 0.09);
    --border-gold: rgba(232, 168, 32, 0.25);

    --heading: #1A2744;
    --body: #2C3038;
    --muted: #5A6170;
    --faint: #8B919D;

    --gold-faint: rgba(232, 168, 32, 0.07);
    --gold-glow: rgba(232, 168, 32, 0.15);
  }

  body { -webkit-font-smoothing: auto; }

  ::selection { background: rgba(232, 168, 32, 0.3); color: var(--heading); }

  /* Header */
  .hdr {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--border);
  }

  .logo-name { color: var(--heading); }

  .dd-list {
    background: #fff;
    border-color: var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  }

  .dd-link { color: var(--body); }
  .dd-link:hover { background: var(--gold-faint); color: var(--gold); }

  /* Buttons */
  .btn-g { color: #fff; }
  .btn-o { border-color: var(--border); color: var(--body); }
  .btn-o:hover { border-color: var(--gold); color: var(--gold); }

  /* Mobile */
  .mob-btn span { background: var(--heading); }
  .mob-menu { background: rgba(255, 255, 255, 0.98); }
  .mob-link { color: var(--body); border-bottom-color: var(--border); }

  /* Hero glow */
  .hero-glow {
    background: radial-gradient(circle, rgba(232, 168, 32, 0.06) 0%, transparent 60%);
  }

  /* Expertise section */
  .sec-expertise { background: #EFF1F5; }
  .svc-card { background: #fff; border-color: rgba(11, 15, 20, 0.06); }
  .svc-card:hover { border-color: var(--border-gold); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }

  /* Results section */
  .sec-results { background: #EFF1F5; }
  .res-item { border-right-color: var(--border); }
  .res-tip { background: #fff; border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .res-tip::before { background: #fff; border-left-color: var(--border); border-top-color: var(--border); }

  /* Forms */
  .fi, .ft {
    background: var(--bg-raised);
    border-color: var(--border);
    color: var(--heading);
  }
  .fi::placeholder, .ft::placeholder { color: var(--faint); }

  /* Service page sidebar */
  .side-card {
    background: var(--bg-raised);
    border-color: var(--border);
  }

  /* Use case left border */
  .uc { border-left-color: var(--gold); }

  /* Footer */
  .ftr { border-top-color: var(--border); }
}
