/* ============================================================================
   Paweł Witek — Digital Growth & Automation Consultant
   Static implementation of the Claude Design prototype "Pawel Witek.dc.html".
   Dark theme, mint accent. Design tokens lifted verbatim from the prototype.
   ========================================================================== */

:root {
  --pw-bg:        #070808;
  --pw-text:      #F4F6F4;
  --pw-muted:     #9AA39F;
  --pw-dim:       #717975;
  --pw-label:     #C9D0CC;
  --pw-mint:      #93F5C1;
  --pw-mint-deep: #62DFA0;
  --pw-on-mint:   #07120C;
  --pw-card:      #141716;
  --pw-input:     #0E1010;
  --pw-error:     #F0A899;
  --pw-dot:       #3A403D;

  --pw-sans: 'Geist', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  --pw-mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --pw-maxw: 1160px;
}

/* ---- Reset / base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: var(--pw-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; }
section[id] { scroll-margin-top: 92px; }
::selection { background: rgba(147, 245, 193, 0.22); color: var(--pw-text); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pw-mint);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- Layout primitives ----------------------------------------------------- */
.pw-page {
  position: relative;
  min-height: 100vh;
  background: var(--pw-bg);
  color: var(--pw-text);
  overflow-x: hidden;
}

.pw-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(125% 80% at 50% -5%, rgba(0, 0, 0, 0.9), transparent 72%);
          mask-image: radial-gradient(125% 80% at 50% -5%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.pw-layer { position: relative; z-index: 1; }

.pw-container {
  max-width: var(--pw-maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Header ---------------------------------------------------------------- */
.pw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pw-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pw-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pw-text);
  text-decoration: none;
}

.pw-header-cta {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pw-text);
  text-decoration: none;
  transition: border-color .18s ease-out, background-color .18s ease-out;
}
.pw-header-cta:hover {
  border-color: rgba(147, 245, 193, 0.55);
  background-color: rgba(147, 245, 193, 0.10);
}

/* ---- Eyebrow / shared type ------------------------------------------------- */
.pw-eyebrow {
  font-family: var(--pw-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pw-mint);
}

/* ---- Hero ------------------------------------------------------------------ */
.pw-hero-section { position: relative; overflow: hidden; }

.pw-hero-glow {
  position: absolute;
  top: -180px;
  right: -40px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(147, 245, 193, 0.16), rgba(147, 245, 193, 0.05) 40%, transparent 68%);
  filter: blur(8px);
}

.pw-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 84px;
}

.pw-h1 {
  margin: 20px 0 0;
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--pw-text);
  text-wrap: balance;
}

.pw-lead {
  margin: 24px 0 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pw-muted);
}

.pw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Buttons ------------------------------------------------------------------- */
.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .18s ease-out, border-color .18s ease-out, transform .12s ease-out;
}
.pw-btn:active { transform: translateY(1px); }

.pw-btn--primary {
  background: var(--pw-mint);
  color: var(--pw-on-mint);
  font-weight: 600;
  border: none;
}
.pw-btn--primary:hover { background-color: var(--pw-mint-deep); }

.pw-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--pw-text);
  font-weight: 500;
}
.pw-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background-color: rgba(255, 255, 255, 0.03);
}

/* Portrait ------------------------------------------------------------------ */
.pw-portrait-wrap {
  display: flex;
  justify-content: flex-end;
}

.pw-portrait {
  position: relative;
  width: 100%;
  max-width: 410px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pw-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 0 0 1px rgba(147, 245, 193, 0.06),
    0 30px 80px -40px rgba(147, 245, 193, 0.22),
    0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.pw-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
}

/* ---- Section frame --------------------------------------------------------- */
.pw-section-pad {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pw-section-head { max-width: 640px; }

.pw-h2 {
  margin: 16px 0 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--pw-text);
}

.pw-section-head p {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--pw-muted);
}

/* ---- Tools strip ----------------------------------------------------------- */
.pw-tools-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px 52px;
  margin-top: 46px;
}

.pw-tool {
  display: inline-flex;
  align-items: center;
  opacity: 0.72;
  transition: opacity .2s ease-out;
}
.pw-tool:hover { opacity: 1; }
.pw-tool img { width: auto; }

.pw-tool--mailerlite img { height: 25px; }
.pw-tool--make img       { height: 27px; }
.pw-tool--clickup img    { height: 27px; }
.pw-tool--elevenlabs img { height: 21px; }
.pw-tool--fireflies img  { height: 24px; }

/* ---- Newsletter ------------------------------------------------------------ */
.pw-newsletter-pad {
  padding-top: 72px;
  padding-bottom: 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pw-newsletter {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--pw-card);
}

.pw-newsletter-glow {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(147, 245, 193, 0.12), transparent 70%);
}

.pw-news-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.pw-news-h2 {
  margin: 16px 0 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--pw-text);
  text-wrap: balance;
}

.pw-news-copy {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--pw-muted);
}

/* ---- Form ------------------------------------------------------------------ */
.pw-visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pw-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pw-label);
  margin-bottom: 8px;
}

.pw-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pw-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--pw-input);
  color: var(--pw-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.pw-input:focus {
  border-color: rgba(147, 245, 193, 0.6);
  box-shadow: 0 0 0 3px rgba(147, 245, 193, 0.14);
}

.pw-submit {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 11px;
  background: var(--pw-mint);
  color: var(--pw-on-mint);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .18s ease-out, opacity .18s ease-out, transform .12s ease-out;
}
.pw-submit:hover { background-color: var(--pw-mint-deep); }
.pw-submit:active { transform: translateY(1px); }
.pw-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.pw-form-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--pw-error);
}
.pw-form-error__mark {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--pw-error);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.pw-form-fineprint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--pw-dim);
}

.pw-form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(147, 245, 193, 0.35);
  border-radius: 14px;
  background: rgba(147, 245, 193, 0.08);
}
.pw-form-success__icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pw-mint);
}
.pw-form-success__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--pw-text);
}
.pw-form-success__copy {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pw-muted);
}

.pw-hidden { display: none !important; }

/* ---- Footer ---------------------------------------------------------------- */
.pw-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pw-footer-pad { padding-top: 36px; padding-bottom: 44px; }

.pw-footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.pw-footer-row span { font-size: 13.5px; color: var(--pw-muted); }
.pw-footer-dot { color: var(--pw-dot) !important; }
.pw-footer-link {
  font-size: 13.5px;
  color: var(--pw-muted);
  text-decoration: none;
  transition: color .18s ease-out;
}
.pw-footer-link:hover { color: var(--pw-text); }

.pw-footer-fine {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--pw-dim);
}

/* ============================================================================
   Privacy Notice page
   ========================================================================== */
.pw-legal-page {
  position: relative;
  min-height: 100vh;
  background: var(--pw-bg);
  color: var(--pw-text);
}
.pw-legal-container { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.pw-legal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pw-legal-header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pw-back-link {
  font-size: 14px;
  color: var(--pw-muted);
  text-decoration: none;
  transition: color .18s ease-out;
}
.pw-back-link:hover { color: var(--pw-text); }

.pw-legal-article { padding-top: 80px; padding-bottom: 104px; }

.pw-legal-h1 {
  margin: 16px 0 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--pw-text);
}
.pw-legal-intro {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--pw-muted);
  max-width: 620px;
}
.pw-legal-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin: 40px 0;
}
.pw-legal-section { margin-top: 36px; }
.pw-legal-section:first-of-type { margin-top: 8px; }
.pw-legal-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--pw-text);
}
.pw-legal-section p {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--pw-muted);
}
.pw-legal-section strong,
.pw-legal-fill {
  color: var(--pw-text);
  font-weight: inherit;
}
.pw-legal-link {
  color: var(--pw-mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 245, 193, 0.4);
  transition: color .18s ease-out;
}
.pw-legal-link:hover { color: var(--pw-mint-deep); }

.pw-legal-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pw-legal-footer-inner {
  padding-top: 36px;
  padding-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pw-legal-footer-inner > div { font-size: 13.5px; color: var(--pw-muted); }

/* ============================================================================
   Entrance animations  (pure CSS load animation — mirrors the prototype)
   ========================================================================== */
@keyframes pwRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pwHeaderDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pw-reveal {
  opacity: 0;
  animation: pwRise .85s cubic-bezier(0.21, 0.6, 0.35, 1) both;
  animation-delay: var(--pw-d, 0s);
  will-change: transform, opacity;
}
.pw-header-anim {
  opacity: 0;
  animation: pwHeaderDrop .6s ease-out .02s both;
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .pw-container { padding-left: 28px; padding-right: 28px; }
  .pw-h1 { font-size: 58px; }
}
@media (max-width: 900px) {
  .pw-hero { grid-template-columns: 1fr; gap: 40px; }
  .pw-portrait-wrap { justify-content: flex-start; max-width: 360px; }
  .pw-h1 { font-size: 50px; }
  .pw-news-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .pw-tools-strip { justify-content: flex-start; gap: 24px 32px; }
  .pw-footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 560px) {
  .pw-container,
  .pw-legal-container { padding-left: 20px; padding-right: 20px; }
  .pw-h1 { font-size: 42px; }
  .pw-cta-row { flex-direction: column; align-items: stretch; }
  .pw-form-row { flex-direction: column; align-items: stretch; }
  .pw-newsletter { padding: 26px; }
  .pw-legal-article { padding-top: 48px; padding-bottom: 64px; }
  .pw-legal-h1 { font-size: 34px; }
}
@media (max-width: 360px) {
  .pw-h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .pw-reveal, .pw-header-anim { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}
