/*
Theme Name: AI King
Theme URI: https://ai-king.pl
Author: AI King
Author URI: https://ai-king.pl
Description: Strona usług wdrożeń AI dla firm.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ai-king
*/

:root {
  --ak-bg: #050806;
  --ak-bg-2: #0b110f;
  --ak-ink: #f5f7ef;
  --ak-muted: #b7c4bb;
  --ak-soft: #111b18;
  --ak-line: rgba(188, 239, 214, 0.16);
  --ak-panel: rgba(13, 23, 20, 0.78);
  --ak-panel-solid: #0e1714;
  --ak-green: #38f08e;
  --ak-cyan: #43d8ff;
  --ak-gold: #d7af64;
  --ak-danger: #ff6b61;
  --ak-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --ak-radius: 8px;
  --ak-max: 1180px;
  --ak-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ak-bg);
  color: var(--ak-ink);
  font-family: var(--ak-font);
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

img {
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--ak-line);
  background: rgba(5, 8, 6, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--ak-max));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ak-ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 240, 142, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, #14231e, #050806);
  color: var(--ak-green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 30px rgba(56, 240, 142, 0.18);
}

.brand span:last-child {
  font-size: 19px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 24px;
  list-style: none;
}

.primary-nav a {
  color: var(--ak-muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--ak-green);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ak-line);
  border-radius: 8px;
  background: var(--ak-panel-solid);
  color: var(--ak-ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid rgba(56, 240, 142, 0.78);
  border-radius: 8px;
  background: var(--ak-green);
  color: #07100d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, color 170ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(56, 240, 142, 0.24);
}

.button.secondary {
  border-color: rgba(245, 247, 239, 0.3);
  background: rgba(245, 247, 239, 0.06);
  color: var(--ak-ink);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: rgba(67, 216, 255, 0.72);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(67, 216, 255, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ak-green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  content: "";
}

.section {
  padding: 96px 0;
  background: var(--ak-bg);
}

.section-inner {
  width: min(100% - 40px, var(--ak-max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: #050806;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.95) 0%, rgba(5, 8, 6, 0.86) 39%, rgba(5, 8, 6, 0.28) 74%, rgba(5, 8, 6, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 8, 6, 0.12) 0%, rgba(5, 8, 6, 0.92) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  width: min(100% - 40px, var(--ak-max));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 84px 0 58px;
  gap: 48px;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 4.9rem;
  font-weight: 900;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--ak-muted);
  font-size: 1.24rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 12px;
}

.hero-proof {
  display: grid;
  max-width: 760px;
  margin-top: 50px;
  border-top: 1px solid var(--ak-line);
  grid-template-columns: repeat(3, 1fr);
}

.proof-item {
  padding: 20px 24px 0 0;
}

.proof-item strong {
  display: block;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--ak-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-console {
  position: relative;
  align-self: end;
  min-height: 430px;
  padding: 24px;
  border: 1px solid rgba(188, 239, 214, 0.22);
  border-radius: var(--ak-radius);
  background: rgba(6, 12, 10, 0.74);
  box-shadow: var(--ak-shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-console::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(67, 216, 255, 0.2);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.hero-console::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 216, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(67, 216, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.console-header,
.console-core,
.console-list {
  position: relative;
  z-index: 1;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ak-muted);
  font-size: 0.84rem;
}

.console-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ak-green);
  box-shadow: 0 0 22px rgba(56, 240, 142, 0.78);
}

.console-core {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 62px auto 44px;
  place-items: center;
  border: 1px solid rgba(56, 240, 142, 0.45);
  border-radius: 50%;
  background: #07100d;
  color: var(--ak-green);
  font-size: 2.1rem;
  font-weight: 900;
  box-shadow: 0 0 54px rgba(56, 240, 142, 0.22);
}

.console-list {
  display: grid;
  gap: 10px;
}

.console-list div {
  padding: 14px 16px;
  border: 1px solid rgba(245, 247, 239, 0.11);
  border-radius: 8px;
  background: rgba(245, 247, 239, 0.06);
}

.console-list strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.console-list span {
  display: block;
  margin-top: 4px;
  color: var(--ak-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.split-section {
  background: linear-gradient(180deg, #050806 0%, #08100d 100%);
}

.split-grid {
  display: grid;
  align-items: center;
  gap: 54px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
}

.section-copy h2,
.section-heading h2,
.sticky-copy h2,
.contact-panel h2 {
  margin: 14px 0 0;
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1.02;
}

.section-copy p,
.section-heading p,
.sticky-copy p {
  margin: 20px 0 0;
  color: var(--ak-muted);
  font-size: 1.1rem;
}

.problem-list {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--ak-line);
}

.problem-row {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--ak-line);
  gap: 18px;
  grid-template-columns: 54px 1fr;
}

.problem-row span {
  color: var(--ak-cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.problem-row h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.18;
}

.problem-row p {
  margin: 8px 0 0;
  color: var(--ak-muted);
}

.visual-frame,
.contact-image {
  margin: 0;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-panel-solid);
  box-shadow: var(--ak-shadow);
  overflow: hidden;
}

.visual-frame img,
.contact-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-frame figcaption {
  padding: 14px 16px;
  color: var(--ak-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
}

.services {
  background: #07100d;
}

.service-grid {
  display: grid;
  margin-top: 46px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 440px;
  padding: 16px 16px 24px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.service-media {
  margin-bottom: 22px;
  border-radius: 6px;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--ak-green);
}

.service-card h3 {
  margin: 22px 0 12px;
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: var(--ak-muted);
}

.process {
  background: #050806;
}

.process-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1fr);
}

.sticky-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-step {
  display: grid;
  padding: 24px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-panel);
  gap: 18px;
  grid-template-columns: 54px 1fr;
}

.timeline-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 240, 142, 0.42);
  border-radius: 50%;
  background: rgba(56, 240, 142, 0.08);
  color: var(--ak-green);
  font-weight: 900;
}

.timeline-step h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
}

.timeline-step p {
  margin: 8px 0 0;
  color: var(--ak-muted);
}

.offer {
  background: linear-gradient(180deg, #050806 0%, #0a110f 100%);
}

.offer-grid {
  display: grid;
  margin-top: 46px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.offer-card {
  display: flex;
  min-height: 380px;
  padding: 26px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-panel);
  flex-direction: column;
}

.offer-card.featured {
  border-color: rgba(56, 240, 142, 0.58);
  box-shadow: 0 22px 62px rgba(56, 240, 142, 0.12);
}

.offer-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.72rem;
}

.offer-card .price {
  margin: 18px 0;
  color: var(--ak-green);
  font-size: 1.42rem;
  font-weight: 900;
}

.offer-card ul {
  display: grid;
  margin: 0 0 26px;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.offer-card li {
  color: var(--ak-muted);
}

.offer-card li::before {
  color: var(--ak-cyan);
  content: "+ ";
  font-weight: 900;
}

.offer-card .button {
  margin-top: auto;
}

.faq {
  background: #07100d;
}

.faq-list {
  display: grid;
  margin-top: 36px;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius);
  background: var(--ak-panel);
}

.faq-item summary {
  padding: 22px 24px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 850;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ak-muted);
}

.contact {
  padding-bottom: 110px;
  background: #050806;
}

.contact-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.contact-panel {
  display: flex;
  padding: 40px;
  border: 1px solid rgba(56, 240, 142, 0.22);
  border-radius: var(--ak-radius);
  background: var(--ak-panel);
  flex-direction: column;
}

.contact-panel p {
  margin: 20px 0 0;
  color: var(--ak-muted);
  font-size: 1.08rem;
}

.contact-list {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 247, 239, 0.12);
  border-radius: 8px;
  background: rgba(245, 247, 239, 0.06);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.contact-image img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--ak-line);
  background: #050806;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  width: min(100% - 40px, var(--ak-max));
  margin: 0 auto;
  gap: 20px;
  color: var(--ak-muted);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-inner,
  .split-grid,
  .process-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-console {
    align-self: auto;
    max-width: 620px;
  }

  .service-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .sticky-copy {
    position: static;
  }

  .contact-image img {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--ak-line);
    border-radius: var(--ak-radius);
    background: var(--ak-panel-solid);
    box-shadow: var(--ak-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .primary-nav a {
    display: block;
    padding: 10px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 62px 0 48px;
  }

  .hero-copy h1 {
    font-size: 3.7rem;
  }

  .section-copy h2,
  .section-heading h2,
  .sticky-copy h2,
  .contact-panel h2 {
    font-size: 2.7rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 8, 6, 0.96), rgba(5, 8, 6, 0.76)),
      linear-gradient(180deg, rgba(5, 8, 6, 0.22), rgba(5, 8, 6, 0.94));
  }
}

@media (max-width: 620px) {
  .section {
    padding: 70px 0;
  }

  .header-inner,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--ak-max));
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-copy p {
    font-size: 1.04rem;
  }

  .section-copy h2,
  .section-heading h2,
  .sticky-copy h2,
  .contact-panel h2 {
    font-size: 2.15rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .proof-item {
    padding: 18px 0;
  }

  .hero-console {
    min-height: auto;
    padding: 18px;
  }

  .console-core {
    width: 104px;
    height: 104px;
    margin: 42px auto 34px;
    font-size: 1.7rem;
  }

  .problem-row,
  .timeline-step {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* SEO landing pages */
.page-shell .page-hero {
    position: relative;
    overflow: hidden;
    padding: 8.5rem 0 5rem;
    color: #f8fbff;
    background: radial-gradient(circle at 20% 20%, rgba(74, 222, 255, 0.22), transparent 28%), linear-gradient(135deg, #09111d 0%, #101a2c 48%, #102b3c 100%);
}

.page-shell .page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .35;
    pointer-events: none;
}

.page-shell .page-hero .section-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.breadcrumb-link {
    display: inline-flex;
    margin-bottom: 1.25rem;
    color: #67e8f9;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}

.page-shell .page-hero h1 {
    max-width: 840px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: 0;
}

.page-shell .page-hero p {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: rgba(248,251,255,.82);
    font-size: 1.2rem;
    line-height: 1.7;
}

.prose {
    max-width: 920px;
}

.prose h2,
.prose h3 {
    color: #101827;
    letter-spacing: 0;
}

.prose h2 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose h3 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.prose p,
.prose li {
    color: #3f4b5f;
    font-size: 1.06rem;
    line-height: 1.85;
}

.prose ol,
.prose ul {
    padding-left: 1.4rem;
}

.prose .button {
    margin-top: 1rem;
}
