:root {
  --ink: #102a43;
  --muted: #5b7184;
  --brand: #0877b9;
  --brand-dark: #075f94;
  --brand-soft: #e8f5fb;
  --surface: #ffffff;
  --canvas: #f7fafc;
  --line: #dbe7ee;
  --shadow: 0 18px 45px rgba(38, 82, 107, 0.1);
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body,
button,
input,
select,
textarea {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body {
  color: var(--ink);
  background: var(--canvas) !important;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(8, 119, 185, 0.1) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 44rem);
}

::selection {
  color: var(--ink);
  background: #bce8f8;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 119, 185, 0.35) !important;
  outline-offset: 3px;
}

/* The old visual layer ran three permanent animation loops. */
canvas,
.yrg-depth,
.yrg-depth-fallback,
.yrg-particles,
.yrg-progress,
.yrg-cursor-glow,
.yrg-scroll-hint,
.yrg-motion-ask,
.animate-blob,
.animate-bounce {
  display: none !important;
}

.fixed.inset-0.z-\[9999\] { display: none !important; }

.animate-float,
.animate-scroll-left,
.sparkle-btn,
.text-rotate-item {
  animation: none !important;
}

.backdrop-blur,
.backdrop-blur-md {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.text-rotate-wrapper {
  display: inline;
  height: auto;
  overflow: visible;
}

.text-rotate-item { display: none; }
.text-rotate-item:first-child {
  display: inline;
  color: var(--brand);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.max-w-screen-2xl { max-width: 82rem !important; }
.grid > * { min-width: 0; }

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.text-transparent.bg-clip-text,
.gradient-text-hover {
  color: var(--brand) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

.bg-gradient-to-r,
.sparkle-btn {
  background-image: none !important;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

nav.py-4 { padding-block: 0.6rem !important; }
nav .h-16 { height: 4rem !important; }
nav img { width: 8.7rem !important; height: auto !important; }

nav button,
nav a {
  color: #334e61;
  font-size: 0.9rem;
}

nav button:hover { color: var(--brand) !important; }

nav a[href="#/iletisim"] {
  padding: 0.7rem 1.05rem !important;
  color: #fff !important;
  background: var(--brand) !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
}

nav a[href="#/iletisim"]:hover { background: var(--brand-dark) !important; }

nav button span.rounded-full {
  color: var(--brand-dark) !important;
  background: var(--brand-soft) !important;
  border-color: #cce8f4 !important;
  border-radius: 0.65rem !important;
}

/* Shared light surfaces */
main,
main > div,
.bg-slate-50,
.bg-slate-100,
.hero-pattern,
.tech-grid-bg {
  background-color: transparent !important;
  background-image: none !important;
}

section {
  position: relative;
  isolation: isolate;
}

section > .pointer-events-none { display: none !important; }

section.py-24,
#wizard,
#about,
#process,
#references,
#blog {
  padding-top: 6.5rem !important;
  padding-bottom: 7.5rem !important;
}

section .text-center > span.inline-flex,
section > div > span.inline-flex,
main section:first-child span.inline-flex {
  color: var(--brand-dark) !important;
  background: var(--brand-soft) !important;
  border: 1px solid #cce8f4 !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  letter-spacing: 0.08em;
}

/* Home hero */
#home {
  padding-top: 10.5rem !important;
  padding-bottom: 6.5rem !important;
  background:
    radial-gradient(circle at 82% 28%, rgba(158, 219, 241, 0.38), transparent 25rem),
    linear-gradient(120deg, #f7fbfd 0%, #edf7fb 100%) !important;
  border-bottom: 1px solid var(--line);
}

#home::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(50%, 42rem);
  width: 1px;
  background: rgba(8, 119, 185, 0.12);
}

#home h1 {
  max-width: 10ch;
  font-size: clamp(3.25rem, 5.6vw, 5.9rem) !important;
  line-height: 0.98 !important;
  font-weight: 800 !important;
}

#home h1 + p {
  max-width: 35rem;
  color: var(--muted) !important;
  line-height: 1.75;
}

#home .tilt-card {
  transform: none;
  border: 1px solid #c9dce7 !important;
  border-radius: 1.15rem !important;
  background: #fff !important;
  box-shadow: 0.9rem 0.9rem 0 #dcedf5 !important;
}

#home .tilt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0.7rem 0.8rem 0 #dcedf5 !important;
}

#home .tilt-card > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0.8rem !important;
}

#home a.rounded-xl {
  min-height: 3.35rem;
  border-radius: 0.7rem !important;
  box-shadow: none !important;
}

#home a.bg-gradient-to-r {
  color: #fff !important;
  background: var(--brand) !important;
}

#home a.sparkle-btn {
  color: #fff !important;
  background: var(--brand) !important;
}

#home a.bg-white {
  color: var(--ink) !important;
  background: transparent !important;
  border-color: #b9cdd9 !important;
}

#home .text-2xl.font-bold {
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
}

/* Wizard */
#wizard {
  background: #eaf5fa !important;
  border: 0 !important;
}

#wizard > div > .text-center { text-align: left !important; }

#wizard > div > .text-center p {
  margin-left: 0 !important;
  max-width: 42rem;
}

#wizard .bg-white {
  background: var(--surface) !important;
  border-color: transparent !important;
  box-shadow: var(--shadow) !important;
}

#wizard button { border-radius: 0.65rem !important; }
#wizard button:hover { transform: translateY(-2px); }

/* About */
#about { background: #fff !important; }

#about img {
  filter: saturate(0.82) contrast(1.03);
  border-radius: 1rem !important;
}

#about .rounded-2xl,
#about .rounded-3xl { border-radius: 1rem !important; }

/* Process stays light: open theme throughout. */
#process {
  color: var(--ink) !important;
  background: #f0f7fa !important;
}

#process::before {
  content: "04 / SÜREÇ";
  position: absolute;
  top: 2.5rem;
  right: max(2rem, calc((100vw - 78rem) / 2));
  color: #95adba;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

#process * { color: inherit !important; }
#process p { color: var(--muted) !important; }

#process .bg-gradient-to-b {
  display: block !important;
  background: none !important;
}

#process .rounded-full {
  color: var(--brand-dark) !important;
  background: #fff !important;
  border-color: #9dd5e9 !important;
  box-shadow: 0 0 0 6px #dff1f7 !important;
}

#process .bg-gradient-to-b.from-brand-500 { background: #9fd4e7 !important; }

/* Cards */
.tilt-card,
.bg-white.rounded-2xl,
.bg-white.rounded-3xl {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 24px rgba(38, 82, 107, 0.07) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tilt-card:hover,
.bg-white.rounded-2xl:hover,
.bg-white.rounded-3xl:hover {
  transform: translateY(-4px);
  border-color: #b9d7e5 !important;
  box-shadow: 0 16px 35px rgba(38, 82, 107, 0.12) !important;
}

/* References */
#references { background: #fff !important; }

#references .overflow-hidden { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }

#references img {
  filter: grayscale(1);
  opacity: 0.76;
  transition: filter 180ms ease, opacity 180ms ease;
}

#references img:hover { filter: grayscale(0); opacity: 1; }

#references .animate-scroll-left { animation: none !important; transform: none !important; }
#references .animate-scroll-left > *:nth-child(n + 14) { display: none !important; }

/* Blog and FAQ */
#blog { background: #f2f7f9 !important; }

#blog img {
  filter: saturate(0.82);
  transition: transform 240ms ease, filter 240ms ease;
}

#blog article:hover img,
#blog .group:hover img { transform: scale(1.02); filter: saturate(1); }

#blog button { color: var(--brand-dark) !important; }

section:last-of-type {
  background: #fff !important;
  border-top: 1px solid var(--line);
}

section:last-of-type button {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

/* Inner-page heroes and controls */
main section:first-child:not(#home) {
  padding-top: 8.75rem !important;
  padding-bottom: 4.75rem !important;
  background: linear-gradient(135deg, #f6fbfd 0%, #eaf5fa 100%) !important;
  border-bottom: 1px solid var(--line);
}

main section:first-child:not(#home) h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(3rem, 5vw, 5rem) !important;
  line-height: 1 !important;
}

main section:first-child:not(#home) p { color: var(--muted) !important; }

main button.rounded-full,
main a.rounded-full { border-radius: 0.65rem !important; }

main button.bg-brand-600,
main a.bg-brand-600,
main button.bg-gradient-to-r,
main a.bg-gradient-to-r {
  color: #fff !important;
  background: var(--brand) !important;
}

input,
select,
textarea {
  color: var(--ink) !important;
  background: #fff !important;
  border-color: #c9d9e2 !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus { border-color: var(--brand) !important; }

iframe { border-radius: 0.75rem !important; }

/* Footer */
footer {
  color: #3d5668 !important;
  background: #eaf2f6 !important;
  border-top: 1px solid #d3e1e9 !important;
}

footer > .absolute { display: none !important; }
footer h4 { color: var(--ink) !important; }
footer img { width: 9rem !important; height: auto !important; }
footer a:hover { color: var(--brand-dark) !important; }
footer a[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.yrg-top-btn {
  width: 2.9rem;
  height: 2.9rem;
  color: #fff;
  background: var(--brand) !important;
  border: 0;
  border-radius: 0.65rem !important;
  box-shadow: 0 10px 26px rgba(8, 119, 185, 0.25) !important;
}

@media (max-width: 1023px) {
  nav.py-4 { padding-block: 0.4rem !important; }
  nav .h-16 { height: 3.8rem !important; }
  nav img { width: 7.7rem !important; }

  #home {
    padding-top: 8.5rem !important;
    padding-bottom: 5.5rem !important;
  }

  #home::after { display: none; }
  #home h1 { max-width: none; }
  #home .tilt-card { transform: none; box-shadow: 0.75rem 0.75rem 0 #dcedf5 !important; }

  section.py-24,
  #wizard,
  #about,
  #process,
  #references,
  #blog {
    padding-top: 5rem !important;
    padding-bottom: 5.5rem !important;
  }
}

@media (max-width: 639px) {
  body::before { background-size: 22px 22px; opacity: 0.65; }

  main .flex.items-start.justify-between { flex-wrap: wrap; }

  #home,
  main section:first-child:not(#home) {
    padding-top: 7.3rem !important;
    padding-bottom: 4.5rem !important;
  }

  #home { text-align: left !important; }
  #home .text-center { text-align: left !important; }

  #home h1 {
    font-size: clamp(3rem, 15vw, 4rem) !important;
    line-height: 1 !important;
  }

  #home h1 + p {
    font-size: 1rem !important;
    line-height: 1.65;
  }

  #home a.rounded-xl { width: 100%; }

  section h2 { font-size: 2.15rem !important; line-height: 1.08 !important; }

  #wizard > div > .text-center,
  #about .text-center,
  #references .text-center,
  #blog .text-center { text-align: left !important; }

  #wizard > div > .text-center p,
  #about .text-center p,
  #references .text-center p,
  #blog .text-center p { margin-left: 0 !important; }

  #references .overflow-hidden { mask-image: none; }
  #references .animate-scroll-left { flex-wrap: wrap !important; justify-content: center; }

  footer { padding-top: 3.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
