@import "tailwindcss";

:root {
  /* Brand */
  --purple: #9C72F6;
  --purple-deep: #7B53D9;
  --purple-tint: #E8DEFD;
  --purple-wash: #F5EFFE;

  /* Warm off-white luxury canvas */
  --canvas: oklch(98.4% 0.005 70);
  --paper:  oklch(99.2% 0.003 70);
  --line:   oklch(91% 0.006 70);
  --line-soft: oklch(94% 0.005 70);

  /* Ink */
  --ink:        oklch(18% 0.01 70);
  --ink-soft:   oklch(34% 0.008 70);
  --ink-muted:  oklch(52% 0.008 70);
  --ink-faint:  oklch(70% 0.006 70);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 oklch(91% 0.006 70 / .9), 0 12px 30px -18px oklch(20% 0.02 290 / .15);
  --shadow-soft: 0 1px 2px oklch(20% 0.01 70 / .04), 0 8px 24px -12px oklch(20% 0.01 70 / .06);

  --maxw: 1240px;

  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.serif { font-family: var(--font-serif), "Times New Roman", serif; font-feature-settings: "ss01" 1; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono), ui-monospace, monospace; font-feature-settings: "tnum" 1; }

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

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono), monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--purple); display:inline-block; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 12.5px; color: var(--ink-soft);
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 4px oklch(85% 0.13 145 / .3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink); color: var(--canvas);
  box-shadow: 0 1px 0 oklch(99% 0 0 / .15) inset, 0 10px 24px -10px oklch(20% 0.05 290 / .35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-purple {
  background: var(--purple); color: white;
  box-shadow: 0 1px 0 oklch(99% 0 0 / .25) inset, 0 14px 30px -10px oklch(58% 0.2 290 / .45);
}
.btn-purple:hover { background: var(--purple-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper); }

/* Section rhythm */
section { position: relative; }
.sec-pad { padding: 120px 0; }
.sec-pad-sm { padding: 80px 0; }

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 64px; align-items: end; }
.sec-head h2 { margin: 14px 0 0; font-family: var(--font-serif), serif; font-weight: 400; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); }
.sec-head h2 em { font-style: italic; color: var(--purple-deep); }
.sec-head p { margin: 0; color: var(--ink-muted); font-size: 17px; max-width: 46ch; }

@media (max-width: 880px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .sec-pad { padding: 80px 0; }
}

/* Subtle grain */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .6; mix-blend-mode: multiply;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
body.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Reveal fade (per-section) */
.m-fade-in { animation: mFadeIn .4s ease both; }
@keyframes mFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono), monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.field input {
  font: inherit; font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-wash);
}

/* Logo (custom DGR mark) */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  display: grid; place-items: center;
  color: white; font-family: var(--font-serif), serif; font-weight: 500; font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 oklch(99% 0 0 / .35), 0 6px 14px -6px oklch(58% 0.2 290 / .45);
}
.logo .wm { font-family: var(--font-serif), serif; font-weight: 400; font-size: 19px; letter-spacing: -0.02em; }
.logo .wm em { font-style: italic; color: var(--purple-deep); }

/* Nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: oklch(98.4% 0.005 70 / .78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
nav.top.scrolled { border-bottom-color: var(--line); }
nav.top .row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
nav.top ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
nav.top ul a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color .2s; }
nav.top ul a:hover { color: var(--ink); }
@media (max-width: 760px) { nav.top ul { display: none; } }

/* Services responsive grid */
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr !important; } }

/* Methodology / case studies / testimonials responsive */
@media (max-width: 960px) { .m-layout { grid-template-columns: 1fr !important; } }
@media (max-width: 980px) {
  .case-card { grid-template-columns: 1fr !important; }
  .case-tabs { flex-direction: column; }
  .case-tab { width: 100% !important; }
  .t-featured { grid-template-columns: 1fr !important; }
}

/* Hero responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; padding-top: 32px !important; }
}

/* TrustStrip responsive */
@media (max-width: 880px) {
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .guarantee-row { grid-template-columns: 1fr !important; }
}

/* Footer responsive */
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr !important; }
}

/* Override stat label color in dark right panel of case-studies */
#case-studies .case-right .stat-label { color: oklch(70% 0.01 290) !important; }
