:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-elev: #edf3f9;
  --text: #172b46;
  --text-soft: #52647b;
  --line: #dbe5ef;
  --primary: #0875ba;
  --primary-2: #315cb0;
  --accent: #138d98;
  --warn: #f8c24f;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 36px rgba(24, 57, 94, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: #172b46;
}

.text-secondary {
  color: var(--text-soft) !important;
}

.section-padding {
  padding: 96px 0;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(121, 158, 220, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(121, 158, 220, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.reveal,
.reveal.in,
.page-ready .reveal {
  opacity: 1;
  transform: none;
}

/* layout utilities */
.card-soft,
.result-card,
.hero-panel,
.hero-dashboard,
.metric,
.quote-box,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #ffffff, #f8fbfe);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.tag,
.logo-pill,
.result-badge,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c9deef;
  background: #edf6fd;
  color: #245b85;
  font-weight: 700;
  font-size: 0.82rem;
}

/* The shared header wrapper must stick, rather than a nav inside a short wrapper. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}
#projeler {
  scroll-margin-top: calc(var(--site-header-height, 80px) + 24px);
}
/* header */
.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #dbe5ef !important;
  backdrop-filter: blur(14px);
}

.brand-img {
  height: 36px;
  width: auto;
}

.nav-link {
  color: #344963;
  font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0867a4;
}

.navbar-toggler {
  border-color: #b8c9da;
}

.navbar-toggler-icon {
  filter: none;
}

/* hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 2%, rgba(39, 178, 255, 0.12), transparent 40%),
    linear-gradient(140deg, #f4f9ff 0%, #edf6fd 55%, #f8fcff 100%);
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 160, 180, 0.03), transparent 40%, rgba(94, 123, 255, 0.03));
  pointer-events: none;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  color: #245b85;
  border: 1px solid #c5ddf0;
  background: #ffffff;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.85rem);
  line-height: 1.05;
}

.hero-sub {
  color: #435b76;
  max-width: 680px;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.12;
}

.hero-orb.one {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
  background: #21d1ff;
}

.hero-orb.two {
  width: 240px;
  height: 240px;
  bottom: -90px;
  left: 35%;
  background: #5975ff;
}

.hero-panel,
.hero-dashboard {
  border-radius: var(--radius-lg);
}

.hero-dashboard .line {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 60%, #7eb3ff 100%);
}

.hero-dashboard .line.short { width: 68%; }
.hero-dashboard .line.mid { width: 85%; }
.hero-dashboard .line.long { width: 100%; }

.kpi-card {
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #f4f8fc;
  padding: 12px;
}

.kpi-card small { color: #52647b; }
.kpi-card strong { color: #172b46; display: block; }

/* trust badges */
.proof-strip {
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

/* product ecosystem */
.result-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: #9dc7e6;
  box-shadow: 0 16px 38px rgba(24, 57, 94, 0.11);
}

/* services */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f3fc;
  color: #0867a4;
  border: 1px solid #c9deef;
  font-size: 1.2rem;
}

/* case studies */
.small {
  color: #435b76 !important;
}

/* process */
.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 5px rgba(39, 178, 255, 0.16);
}

/* technology */
#teknoloji .tag {
  background: #edf6fd;
}

/* cta */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #eaf4fd, #f4f9ff);
}

/* footer */
.footer {
  background: #eef4f9;
  border-top: 1px solid #dbe5ef;
  color: #435b76;
}

.footer-brand {
  max-width: 220px;
  height: auto;
}

.footer a {
  color: #344963;
  text-decoration: none;
}

.footer a:hover {
  color: #0867a4;
}

/* shared forms/buttons */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #b8c9da;
  background: #ffffff;
  color: #172b46;
  padding: 0.75rem 0.95rem;
}

.form-control::placeholder {
  color: #52647b;
}

.btn {
  border-radius: 12px;
  font-weight: 800;
}

.btn-warning {
  color: #051224;
  border-color: var(--warn);
  background: linear-gradient(180deg, #ffd978, #f8c24f);
}

.btn-outline-light {
  border-color: #93b7d4;
  color: #245b85;
}

.btn-outline-light:hover {
  color: #172b46;
  background: #e4f0fa;
}

.btn-outline-primary {
  border-color: #93b7d4;
  color: #245b85;
}

.btn-outline-primary:hover {
  background: #e4f0fa;
  color: #172b46;
  border-color: #739fbe;
}

/* floating helpers */

.mobile-sticky-cta {
  display: none;
}

/* responsive */
@media (max-width: 1199px) {
  .section-padding {
    padding: 84px 0;
  }
}

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

  .proof-strip {
    margin-top: -18px;
  }

  .hero {
    text-align: left;
  }

  .hero-panel,
  .hero-dashboard {
    padding: 1rem !important;
  }
}

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

  .brand-img {
    height: 32px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .proof-strip {
    margin-top: -8px;
  }

  body.has-mobile-cta {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1190;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
  }
}

/* Inactive contact preview remains readable without JavaScript. */
.contact-inactive-notice {
  padding: 1rem;
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.contact-preview :disabled {
  opacity: 1;
  cursor: not-allowed;
}

.contact-preview .form-control:disabled,
.contact-preview .form-select:disabled {
  background-color: var(--bg-elev);
  color: var(--text-soft);
}

.contact-preview .btn:disabled {
  color: var(--text-soft);
  background: var(--bg-elev);
  border-color: var(--line);
}

/* Keep legacy utility classes readable on the light surfaces. */
.hero-panel.text-white {
  color: var(--text) !important;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #0867a4;
  outline-offset: 4px;
}

.whatsapp-float {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #168b46;
  color: #fff;
  font-size: 29px;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(22, 139, 70, 0.25);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #106d36;
  color: #fff;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
