/* ===== Polar AI Agency — black & white theme ===== */
:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --line: #242424;
  --line-strong: #383838;
  --surface: #0d0d0d;
  --card: #121212;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

[data-lucide] { width: 1em; height: 1em; stroke-width: 2; vertical-align: middle; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  background: transparent;
  color: var(--white);
}
.btn i { width: 18px; height: 18px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { transform: translateY(-2px); background: #e6e6e6; }
.btn--ghost:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* ===== Warning bar ===== */
.warning-bar {
  overflow: hidden;
  white-space: nowrap;
  background: #111;
  border-bottom: 1px solid #facc15;
  padding: 10px 16px;
  text-align: center;
}
.warning-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--white);
  animation: warnSlide 4s ease-in-out infinite;
}
.warning-bar__icon {
  width: 18px; height: 18px;
  color: #facc15;
}
@keyframes warnSlide {
  0%   { transform: translateX(-28%); }
  50%  { transform: translateX(28%); }
  100% { transform: translateX(-28%); }
}

/* ===== Banner ===== */
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  padding: 10px 16px;
}
.banner__icon { width: 18px; height: 18px; }
.banner__close {
  background: none; border: none; color: var(--black);
  cursor: pointer; display: inline-flex; margin-left: 6px;
}
.banner__close i { width: 18px; height: 18px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: transparent;
}
.brand__mark i { width: 20px; height: 20px; color: var(--white); }
img.brand__mark { object-fit: contain; }
.brand__accent { color: var(--white); }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--muted); transition: color 0.15s ease; }
.nav a:hover { color: var(--white); }

/* ===== Hero ===== */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero__inner { text-align: center; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  background: var(--surface);
}
.pill i { width: 15px; height: 15px; }
.hero__title { font-size: clamp(38px, 6vw, 68px); margin: 24px 0 18px; }
.hero__sub { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 30px; }
.stat span { color: var(--muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); }
.section__head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards / Features ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature__icon {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--white); color: var(--black); margin-bottom: 18px;
}
.feature__icon i { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Steps ===== */
.step { text-align: center; padding: 16px; }
.step__num {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--white); margin-bottom: 16px;
}
.step__num i { width: 24px; height: 24px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Pricing ===== */
.pricing-grid { align-items: stretch; }
.pricing-state {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 40px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.plan {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.plan--featured { border: 2px solid var(--white); box-shadow: var(--shadow); }
.plan__badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--white); color: var(--black);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.plan__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1.5px solid var(--white); margin-bottom: 18px;
}
.plan__icon i { width: 24px; height: 24px; }
.plan__image {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: 14px; margin-bottom: 18px;
  background: var(--white);
}
.plan__name { font-size: 22px; }
.plan__desc { color: var(--muted); font-size: 15px; margin: 8px 0 18px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan__amount { font-size: 40px; font-weight: 800; }
.plan__interval { color: var(--muted); font-size: 15px; }
.plan__features { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.plan__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.plan__features i { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }
.plan .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== CTA ===== */
.cta { text-align: center; max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); }
.cta p { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.site-footer__copy { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--muted); transition: color 0.15s ease; }
.socials a:hover { color: var(--white); }
.socials i { width: 20px; height: 20px; }

/* ===== Utils ===== */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseRing {
  0% { box-shadow: var(--shadow), 0 0 0 0 rgba(255, 255, 255, 0.22); }
  70% { box-shadow: var(--shadow), 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: var(--shadow), 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero entrance */
.hero .pill { animation: fadeUp 0.6s ease both; }
.hero__title { animation: fadeUp 0.7s ease 0.1s both; }
.hero__sub { animation: fadeUp 0.7s ease 0.2s both; }
.hero__cta { animation: fadeUp 0.7s ease 0.3s both; }
.hero__stats { animation: fadeUp 0.7s ease 0.4s both; }

/* Brand snowflake spin on hover */
.brand__mark i { transition: transform 0.6s ease; }
.brand:hover .brand__mark i { transform: rotate(180deg); }

/* Icon hover motion */
.feature:hover .feature__icon { animation: floaty 1.2s ease-in-out infinite; }
.step__num { transition: transform 0.25s ease; }
.step:hover .step__num { transform: scale(1.08); }
.plan:hover .plan__icon { animation: floaty 1.2s ease-in-out infinite; }

/* Button shine */
.btn--solid { position: relative; overflow: hidden; }
.btn--solid::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 0, 0, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn--solid:hover::after { left: 140%; }

/* Featured plan pulse */
.plan--featured { animation: pulseRing 2.6s ease-out infinite; }

/* Nav underline */
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--white);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero__stats { gap: 32px; }
  .section { padding: 60px 0; }
}
