/* ==========================================================================
   Pivotari LLC — pivotari.com
   AI & Digital Product Studio
   Premium, minimalist static site styles
   ========================================================================== */

:root {
  --ink:        #0b0f1a;
  --ink-2:      #171c2b;
  --muted:      #545b70;
  --muted-2:    #6b7185;
  --line:       #e9e9f1;
  --line-2:     #f0f0f6;
  --bg:         #ffffff;
  --bg-soft:    #f7f7fb;
  --bg-tint:    #f4f4fc;
  --accent:     #4f46e5;
  --accent-2:   #7c3aed;
  --accent-soft:#eef0ff;
  --grad:       linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-soft:  linear-gradient(135deg, #eef1ff 0%, #f6f0ff 100%);
  --shadow-sm:  0 1px 2px rgba(11,15,26,.04), 0 1px 3px rgba(11,15,26,.06);
  --shadow-md:  0 4px 12px rgba(11,15,26,.06), 0 12px 32px rgba(11,15,26,.06);
  --shadow-lg:  0 12px 40px rgba(79,70,229,.10), 0 4px 12px rgba(11,15,26,.05);
  --radius:     14px;
  --radius-lg:  20px;
  --container:  1140px;
  --ease:       cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.015em; }
p  { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  opacity: .55;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .96rem;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #000; }
.btn-accent {
  background-image: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,.28);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,58,237,.36); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(11,15,26,.02); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark { width: 30px; height: 30px; border-radius: 9px; flex: none; box-shadow: 0 4px 12px rgba(124,58,237,.22); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 108px 0; }
.section-sm { padding: 84px 0; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 16px 0 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(124,58,237,.10), transparent 62%),
    radial-gradient(50% 45% at 12% 22%, rgba(79,70,229,.08), transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11,15,26,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,15,26,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin: 22px 0 24px; }
.hero .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 1.22rem; max-width: 660px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.hero-meta-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcdce8; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; }

/* ---------- Industries ---------- */
.industries { background: var(--bg-soft); }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.ind-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ind-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ind-item .dot {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.ind-item .dot svg { width: 19px; height: 19px; }
.ind-item h3 { font-size: 1.02rem; margin-bottom: 3px; }
.ind-item p { font-size: .9rem; margin: 0; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step { position: relative; padding-top: 6px; }
.step-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .95rem; }
.step::after {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  opacity: .0;
}
.step { padding-top: 26px; }
.step-bar { width: 34px; height: 3px; border-radius: 3px; background: var(--grad); position: absolute; top: 0; left: 0; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { margin-bottom: 18px; font-size: 1.04rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-panel {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(124,58,237,.45), transparent 60%);
  pointer-events: none;
}
.about-panel h3 { color: #fff; font-size: 1.32rem; margin-bottom: 22px; position: relative; }
.about-list { list-style: none; position: relative; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #d6d9e6;
  font-size: .98rem;
}
.about-list li:first-child { border-top: none; }
.about-list svg { width: 19px; height: 19px; color: #a78bfa; flex: none; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(124,58,237,.16), transparent 55%),
    var(--ink);
  color: #fff;
  border-radius: 0;
}
.contact .section-head h2 { color: #fff; }
.contact .lead { color: #b8bccb; }
.contact-card {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.contact .eyebrow { color: #a78bfa; }
.contact .eyebrow::before { background: #a78bfa; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 30px 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact-email svg { width: 26px; height: 26px; color: #a78bfa; }
.contact-note { color: #9096a8; font-size: .95rem; margin-top: 6px; }
.contact .btn-accent { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070a12;
  color: #aeb3c4;
  padding: 68px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #8b91a7; font-size: .95rem; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #aeb3c4; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: .88rem;
  color: #767c90;
}
.footer-legal-line { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: #9096a8; }
.footer-legal-line .mark { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-hero .updated { color: var(--muted-2); font-size: .92rem; margin-top: 14px; }
.legal-body { padding: 56px 0 96px; }
.legal-body .container { max-width: 800px; }
.legal-body h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; }
.legal-body ul { padding-left: 22px; margin-bottom: 18px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); font-weight: 500; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-note {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal-note p { margin: 0; font-size: .96rem; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 18px 24px 26px;
  z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .hero { padding: 66px 0 72px; }
  .nav-links, .nav-actions .btn-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { gap: 16px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
