/* Pogiit — Company Home (Deep Blue, White, Slate Gray) */
:root {
  --blue-deep: #0a1628;
  --blue-mid: #132a4a;
  --blue-accent: #2563eb;
  --blue-bright: #3b82f6;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --white: #ffffff;
  --off-white: #f1f5f9;
  --border: rgba(148, 163, 184, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--off-white);
  background: var(--blue-deep);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo span {
  color: var(--blue-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.95rem;
  color: var(--slate-light);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--white);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.phone-link:hover {
  background: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate-light);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-bright));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-visual-wrap {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% -10%;
  background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.35), transparent 65%);
  animation: hero-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-dashboard-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  display: block;
  animation: hero-img-float 6s ease-in-out infinite;
}

@keyframes hero-img-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-float-card {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  min-width: 120px;
}

.hero-float-card strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.hero-float-label {
  color: var(--slate);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-float-trend {
  display: block;
  color: #4ade80;
  font-size: 0.68rem;
  margin-top: 0.2rem;
}

.hero-float-icon {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--blue-bright);
}

.card-sales {
  top: 8%;
  right: -4%;
  animation: float-card-a 5s ease-in-out infinite;
}

.card-sync {
  bottom: 18%;
  left: -6%;
  animation: float-card-b 5.5s ease-in-out infinite 0.5s;
}

.card-ai {
  bottom: 6%;
  right: 6%;
  animation: float-card-c 6s ease-in-out infinite 1s;
}

@keyframes float-card-a {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(4px);
  }
}

@keyframes float-card-b {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(-6px);
  }
}

@keyframes float-card-c {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.sync-spin {
  animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ai-pulse {
  animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@media (max-width: 899px) {
  .hero-float-card {
    display: none;
  }
}

/* Legacy mock styles removed — hero uses image */
.mock-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate);
}

.mock-dot:nth-child(1) {
  background: #ef4444;
}

.mock-dot:nth-child(2) {
  background: #eab308;
}

.mock-dot:nth-child(3) {
  background: #22c55e;
}

.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.25);
}

.mock-bar.w-40 {
  width: 40%;
}

.mock-bar.w-70 {
  width: 70%;
}

.mock-bar.w-90 {
  width: 90%;
}

/* Services */
.services {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: var(--blue-deep);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--slate);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.service-card {
  background: rgba(19, 42, 74, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(37, 99, 235, 0.2);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate);
}

/* Marketing / AI */
.marketing {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-mid) 50%, var(--blue-deep) 100%);
}

.marketing-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.25), transparent 50%),
    rgba(10, 22, 40, 0.8);
}

@media (min-width: 800px) {
  .marketing-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  background: rgba(37, 99, 235, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.marketing h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.marketing .copy {
  color: var(--slate-light);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.marketing ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.marketing li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--off-white);
  font-size: 0.95rem;
}

.marketing li::before {
  content: "✓";
  color: var(--blue-bright);
  font-weight: 800;
}

.ai-visual {
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.9;
  min-height: 140px;
}

.ai-line {
  display: block;
  min-height: 1.4em;
}

.ai-line.prompt {
  color: var(--blue-bright);
}

.ai-line.response {
  color: var(--off-white);
  margin-bottom: 0.35rem;
}

.ai-cursor {
  display: inline-block;
  color: var(--blue-bright);
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: #070f1a;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer a {
  color: var(--slate);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--slate-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social a:hover {
  color: var(--white);
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
