/* ===== Pivotyn: bright, modern theme ===== */

:root {
  --indigo: #5b4bff;
  --violet: #8b5cf6;
  --teal: #14c8b4;
  --coral: #ff7a59;
  --sun: #ffc93c;

  --ink: #14142b;
  --body: #4a4a68;
  --muted: #7a7a96;
  --line: #e8e8f2;
  --bg: #ffffff;
  --tint: #f6f5ff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 30, 120, 0.08);
  --shadow-lg: 0 20px 50px rgba(40, 30, 120, 0.14);
  --gradient: linear-gradient(120deg, var(--indigo), var(--violet) 45%, var(--teal));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--indigo); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(91, 75, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 1.2em;
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, 0.18); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--gradient);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 75, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91, 75, 255, 0.38); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--indigo); box-shadow: var(--shadow); }

.btn-small { padding: 10px 20px; font-size: 0.95rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 20, 43, 0.05); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-small { font-size: 1.05rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--indigo); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
}
.hero-inner { position: relative; max-width: 860px; text-align: center; }
.hero .lead { font-size: 1.2rem; max-width: 660px; margin: 0 auto 2em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #c7c0ff; top: -120px; left: -80px; }
.blob-2 { width: 380px; height: 380px; background: #a8f0e6; bottom: -140px; right: -60px; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: #ffd6c9; top: 30%; right: 18%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.06); }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card ul { margin: 1em 0 0; padding: 0; list-style: none; }
.card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-indigo { background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.icon-teal   { background: linear-gradient(135deg, #0fb5a2, var(--teal)); }
.icon-coral  { background: linear-gradient(135deg, var(--coral), #ffa25c); }

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.values li {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid var(--indigo);
}
.values li:nth-child(2) { border-top-color: var(--teal); }
.values li:nth-child(3) { border-top-color: var(--coral); }
.values li:nth-child(4) { border-top-color: var(--sun); }
.values strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.values span { font-size: 0.93rem; }

/* Contact */
.contact {
  background: var(--gradient);
  color: rgba(255, 255, 255, 0.92);
}
.contact h2 { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-email a { color: #fff; font-weight: 700; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #fff;
  padding: 32px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-form .full { grid-column: 1 / -1; }
.optional { color: var(--muted); font-weight: 500; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fafaff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(91, 75, 255, 0.12);
  background: #fff;
}
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #0f9d8a; }
.form-status.err { color: #d64545; }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; color: var(--muted); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--body); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--indigo); }

/* Simple page (privacy, 404) */
.page { padding: 80px 0 100px; max-width: 760px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 90px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 20, 43, 0.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; width: 100%; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .values, .contact-form { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
