:root {
  --ink: #f7f9fb;
  --muted: #aeb7c1;
  --dark: #080a0d;
  --panel: #10151b;
  --panel-2: #151d25;
  --line: rgba(255, 255, 255, .14);
  --red: #f04438;
  --red-2: #ff6b4a;
  --cyan: #7fd8ff;
  --green: #55d98a;
  --cream: #f5efe4;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 10, 13, .58);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 13, .88);
  border-color: var(--line);
}

.brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, #f04438, #10151b 60%, #7fd8ff);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d8dee6;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  content: "";
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.contact-actions,
.article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.icon-action,
.solid-action,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}

.icon-action {
  width: 44px;
  border: 1px solid var(--line);
  color: var(--cyan);
}

.solid-action,
.primary-btn {
  border: 1px solid rgba(255, 255, 255, .2);
  background: var(--red);
  color: white;
  font-weight: 800;
  padding: 0 18px;
  box-shadow: 0 12px 30px rgba(240, 68, 56, .24);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, .25);
  color: #f6f7f8;
  padding: 0 18px;
  background: rgba(255, 255, 255, .05);
}

.hero {
  position: relative;
  min-height: 88vh;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 76px) 58px;
  overflow: hidden;
  --hero-open-opacity: .58;
  --hero-beam-opacity: .36;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #050608;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(0deg, var(--dark), rgba(8, 10, 13, 0));
  content: "";
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  pointer-events: none;
}

.hero-bg-closed {
  background-image: var(--hero-image);
}

.hero-bg-open {
  background-image: var(--hero-open-image);
  opacity: var(--hero-open-opacity);
  transition: opacity .18s ease-out;
  will-change: opacity;
}

.hero-bg-open::after,
.hero-bg-closed::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, .94) 0%, rgba(8, 10, 13, .68) 35%, rgba(8, 10, 13, .08) 72%),
    radial-gradient(circle at 78% 55%, rgba(240, 68, 56, .2), transparent 24%),
    radial-gradient(circle at 48% 58%, rgba(127, 216, 255, .16), transparent 22%);
  content: "";
}

.hero-bg-open::after {
  opacity: .82;
}

.hero-scene,
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-light {
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(127, 216, 255, .42) 48%, rgba(255, 255, 255, .22) 51%, transparent 58%),
    linear-gradient(74deg, transparent 0 63%, rgba(240, 68, 56, .34) 70%, transparent 78%);
  opacity: var(--hero-beam-opacity);
  mix-blend-mode: screen;
  animation: sweep 6.5s ease-in-out infinite;
  transition: opacity .18s ease-out;
}

.hero-copy {
  width: min(640px, 100%);
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.subhero h1 {
  font-size: clamp(52px, 8vw, 116px);
  line-height: .9;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  color: #d5dbe2;
  max-width: 58ch;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 27, .66);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.hero-stats dd {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.section {
  padding: 86px clamp(18px, 5vw, 76px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.contact-copy h2,
.detail-main h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.section-head p:not(.eyebrow),
.contact-copy p,
.detail-main p,
.article-page p {
  color: #c9d0d8;
}

.service-band,
.process-band,
.contact-band {
  background: #0c1015;
}

.service-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.blog-card,
.process-grid article,
.lead-form,
.detail-aside,
.work-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .18);
}

.service-card,
.blog-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.service-card span,
.work-item span,
.blog-card time {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3,
.blog-card h3,
.work-item h3 {
  margin: 14px 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.service-card p,
.blog-card p,
.work-item p {
  color: var(--muted);
}

.service-card a,
.blog-card a,
.detail-aside a {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 800;
}

.work-band {
  background: linear-gradient(180deg, #080a0d, #11171d 55%, #080a0d);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-item {
  overflow: hidden;
}

.work-item > div:last-child {
  padding: 22px;
}

.before-after {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  --split: 48%;
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-img {
  filter: sepia(.8) saturate(.55) contrast(.9) brightness(.72) blur(.4px);
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.before-after.has-real-before-after .before-img {
  filter: none;
}

.before-after::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: white;
  box-shadow: 0 0 24px rgba(255, 255, 255, .8);
  content: "";
}

.ba-labels {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ba-labels span {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(8, 10, 13, .72);
  color: white;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.before-after input {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: calc(100% - 32px);
  accent-color: var(--red);
  cursor: ew-resize;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article {
  padding: 28px;
  min-height: 230px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--cream);
  color: #16120d;
  font-weight: 900;
}

.info-band {
  background: #090c10;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .04);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
  margin: 14px 0 0;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 34px;
  align-items: start;
}

.contact-copy ul,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.contact-copy li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #dce2e8;
}

.contact-copy li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--green);
  content: "✓";
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #dce2e8;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.lead-form select,
.chat-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus,
.chat-form input:focus {
  border-color: var(--cyan);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
}

.subhero,
.article-page {
  padding: 136px clamp(18px, 5vw, 76px) 70px;
  background:
    linear-gradient(100deg, rgba(8, 10, 13, .94), rgba(8, 10, 13, .74)),
    url("../images/hero-pehlivan-stop.jpg") center / cover;
}

.subhero p,
.article-page p {
  max-width: 760px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.article-page {
  max-width: 920px;
}

.lead-text {
  font-size: 20px;
  color: #e3e8ee;
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.article-page time {
  display: block;
  color: var(--green);
  margin-bottom: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 22px;
  padding: 34px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #06080b;
}

.site-footer a {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.chat-launch {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: #f7f9fb;
  color: #111820;
  padding: 8px 14px 8px 8px;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-launch img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-panel {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 92px;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151b;
  box-shadow: var(--shadow);
}

.chat-head {
  display: grid;
  grid-template-columns: 50px 1fr 34px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #151d25;
}

.chat-head img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chat-head button,
.chat-form button,
.quick-prompts button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.chat-head button {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .08);
  color: white;
  font-size: 22px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 310px;
  overflow-y: auto;
  padding: 14px;
}

.message {
  width: fit-content;
  max-width: 88%;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
}

.message.assistant {
  background: rgba(127, 216, 255, .12);
  color: #e9f7ff;
}

.message.user {
  align-self: flex-end;
  background: var(--red);
  color: white;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.quick-prompts button {
  background: rgba(255, 255, 255, .08);
  color: #dce2e8;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form button {
  background: var(--green);
  color: #071009;
  font-weight: 900;
}

@keyframes sweep {
  0%, 100% { opacity: .42; transform: translateX(-4%); }
  50% { opacity: .9; transform: translateX(4%); }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .service-grid,
  .work-grid,
  .process-grid,
  .blog-grid,
  .contact-band,
  .detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .hero-stats,
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand small,
  .header-actions .solid-action {
    display: none;
  }

  .hero {
    min-height: 84vh;
    padding-top: 110px;
  }

  .hero {
    --hero-open-opacity: .74;
    --hero-beam-opacity: .48;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-bg-open::after,
  .hero-bg-closed::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 13, .92) 0%, rgba(8, 10, 13, .62) 54%, rgba(8, 10, 13, .22)),
      radial-gradient(circle at 74% 56%, rgba(240, 68, 56, .18), transparent 28%),
      radial-gradient(circle at 48% 58%, rgba(127, 216, 255, .16), transparent 26%);
  }

  .hero h1,
  .subhero h1 {
    font-size: 56px;
  }

  .section,
  .contact-band {
    padding: 64px 16px;
  }

  .chat-panel {
    right: 12px;
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
