/* Dipoli landing — shared styles
   Uses the app's palette verbatim + a few landing-specific utilities. */

:root {
  /* Palette (from frontend/src/app/globals.css) */
  --bg: #15131C;
  --bg-plum: #201C2B;
  --bg-navy: #1D2847;
  --fg: #E6E9F5;
  --fg-muted: #8B90B5;
  --fg-dim: #5A5F7D;
  --card: #1F2445;
  --card-2: #252A50;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --primary: #9387FF;
  --primary-2: #7C5CFC;
  --primary-3: #5188F8;
  --primary-4: #38C8F6;
  --approve: #65D97C;
  --review: #FFB547;
  --block: #FF5E78;
  --surface: linear-gradient(0deg, rgba(63,69,104,0.10) 0%, rgba(128,140,209,0.10) 100%);
  --surface-strong: linear-gradient(0deg, rgba(63,69,104,0.18) 0%, rgba(128,140,209,0.18) 100%);
  --brand-grad: linear-gradient(135deg, #7C5CFC 0%, #5188F8 50%, #38C8F6 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #15131C;
  color: var(--fg);
}

/* Smooth in-page anchor navigation — Product / Engine / Specs / Pricing / Docs
   hop the page with a soft scroll instead of instant jump. Honour the user's
   reduced-motion setting so motion-sensitive visitors still get the default
   instant behaviour. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sticky navbar is 64px tall — push anchor targets down so section headings
   don't hide under the nav when an anchor link lands. 16px buffer leaves a
   visible gap of breathing room. */
section[id] { scroll-margin-top: 80px; }

body {
  font-family: "Inter", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
    linear-gradient(0deg, #201C2B 0%, #1D2847 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Typography */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-muted); font-weight: 600; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(147,135,255,0.28);
  background: rgba(147,135,255,0.06);
  color: var(--primary);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; position: relative; }
.section-lead { max-width: 680px; margin-bottom: 48px; }
.section-lead h2 { margin-top: 10px; }
.section-lead p { color: var(--fg-muted); font-size: 17px; margin-top: 14px; max-width: 620px; text-wrap: pretty; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(21,19,28,0.60);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--fg-muted); font-size: 14px; font-weight: 500; transition: color 120ms, background 120ms; }
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 160ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #0F0D17;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(147,135,255,0.3), 0 8px 24px -8px rgba(147,135,255,0.55);
}
.btn-primary:hover { background: #A89BFF; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(147,135,255,0.5), 0 14px 36px -10px rgba(147,135,255,0.7); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.btn-link { background: transparent; color: var(--fg-muted); padding: 11px 10px; }
.btn-link:hover { color: var(--fg); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.card-pad { padding: 24px; }
.card-strong { background: var(--surface-strong); border-color: var(--border-strong); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pill-approve { background: rgba(101,217,124,0.14); color: var(--approve); border: 1px solid rgba(101,217,124,0.3); }
.pill-review  { background: rgba(255,181,71,0.14); color: var(--review); border: 1px solid rgba(255,181,71,0.3); }
.pill-block   { background: rgba(255,94,120,0.14); color: var(--block); border: 1px solid rgba(255,94,120,0.3); }
.pill-muted   { background: rgba(255,255,255,0.06); color: var(--fg-muted); border: 1px solid var(--border); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Background decoration */
.bg-grid {
  background-image:
    linear-gradient(rgba(124,92,252,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,252,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  h1 { font-size: 42px; }
  .container, .container-wide { padding: 0 20px; }
}

/* Generic helpers */
.stack > * + * { margin-top: var(--stack, 16px); }
.hstack { display: flex; align-items: center; gap: 12px; }
.tabular { font-variant-numeric: tabular-nums; }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Scroll styling */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
