/* Prodexa — Editorial SaaS Design System
   Tipografi: Plus Jakarta Sans (başlık), Inter (gövde). Soyut UI, Bento, katmanlı gölge. */

:root {
  /* Zemin: saf beyaz değil, hafif gri */
  --bg: #fcfcfc;
  --bg-elevated: #fafafa;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-subtle: #737373;
  --border: rgba(226, 232, 240, 0.6);
  --border-solid: #e2e8f0;
  /* Katmanlı gölgeler — kirli değil, hafif */
  --shadow-layer-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-layer-2: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-layer-3: 0 4px 16px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --tracking-tight: -0.04em;
  --tracking-tighter: -0.03em;
  --pad-section: 5rem;
  --pad-block: 3rem;
  --pad-inline: 2.5rem;
  --pad-card: 2.25rem;
  --grid-gap: 1rem;
  --grid-gap-mobile: 1.5rem;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ——— Tipografi: hiyerarşi ağırlık + tracking + boşluk ——— */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  color: var(--text);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  color: var(--text);
  margin: 0 0 2.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* ——— Layout ——— */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

/* ——— Header: mobil hamburger ——— */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem var(--pad-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: var(--tracking-tighter);
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--text);
}

.nav__btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-solid);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav__btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-solid);
  background: var(--bg);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle::before { top: 9px; }
.nav-toggle::after { top: 15px; }

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width:  min(280px, 85vw);
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-layer-3);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ——— Hero: Value Proposition ——— */
.hero {
  padding: var(--pad-section) var(--pad-inline) 5rem;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 32rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.hero__illus {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

/* Abstract dashboard: SVG container */
.abstract-dashboard {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-layer-2);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto 1fr 1fr;
  gap: 0.75rem;
}

.abstract-dashboard__bar {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  opacity: 0.7;
}

.abstract-dashboard__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: var(--shadow-layer-1);
}

.abstract-dashboard__card--chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.abstract-dashboard__chart-line {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.abstract-dashboard__chart-bar {
  width: 8px;
  background: var(--border-solid);
  border-radius: 2px;
  opacity: 0.8;
}

.abstract-dashboard__row {
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__illus {
    margin: 0 auto;
    order: -1;
    max-width: 100%;
  }
}

/* ——— Social Proof ——— */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--pad-block) var(--pad-inline);
  background: var(--bg-elevated);
}

.social-proof__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 1.5rem;
}

.social-proof__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo-placeholder {
  width: 80px;
  height: 32px;
  background: var(--border-solid);
  opacity: 0.5;
  border-radius: 4px;
}

/* ——— Bento Grid ——— */
.bento-section {
  padding: var(--pad-section) var(--pad-inline);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--grid-gap);
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-layer-1);
}

.bento-card--wide {
  grid-column: span 8;
  grid-row: span 1;
}

.bento-card--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-card--mid {
  grid-column: span 6;
  grid-row: span 1;
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.bento-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.bento-card a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

.bento-card a:hover {
  text-decoration: underline;
}

/* Abstract UI inside cards */
.abstract-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.abstract-ui__line {
  height: 1px;
  background: var(--border);
  border-radius: 1px;
}

.abstract-ui__line--full { width: 100%; }

.abstract-ui__flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.abstract-ui__flow-item {
  width: 48px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.abstract-ui__flow-arrow {
  width: 12px;
  height: 1px;
  background: var(--border);
}

.abstract-ui__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 0.5rem;
}

.abstract-ui__bar {
  width: 10px;
  min-height: 12px;
  background: var(--border-solid);
  border-radius: 2px;
  opacity: 0.7;
}

.abstract-ui__bar:nth-child(1) { height: 28px; }
.abstract-ui__bar:nth-child(2) { height: 44px; }
.abstract-ui__bar:nth-child(3) { height: 20px; }
.abstract-ui__bar:nth-child(4) { height: 36px; }
.abstract-ui__bar:nth-child(5) { height: 32px; }

.abstract-ui__card {
  width: 100%;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.abstract-ui__table {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.abstract-ui__row {
  display: grid;
  grid-template-columns: 24px 1fr 70px;
  align-items: center;
  gap: 0.75rem;
}

.abstract-ui__row .line {
  height: 1px;
  background: var(--border);
  border-radius: 1px;
}

.abstract-ui__row .line:nth-child(1) { max-width: 16px; }
.abstract-ui__row .line:nth-child(2) { min-height: 10px; }
.abstract-ui__row .line:nth-child(3) { max-width: 45px; justify-self: end; }

@media (max-width: 768px) {
  .bento {
    gap: var(--grid-gap-mobile);
  }

  .bento-card--wide,
  .bento-card--tall,
  .bento-card--mid {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

/* ——— Tech section ——— */
.tech-section {
  padding: var(--pad-section) var(--pad-inline);
  background: var(--bg);
}

.tech-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

.tech-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 3.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.tech-card {
  text-align: center;
  padding: 0 1rem;
}

.tech-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
}

.tech-card__icon svg {
  width: 100%;
  height: 100%;
}

.tech-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.tech-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-mobile);
  }
}

/* ——— CTA ——— */
.cta-section {
  padding: var(--pad-section) var(--pad-inline);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--pad-inline);
  text-align: center;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--pad-block) var(--pad-inline);
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin: 0;
}

/* ——— Subpages: breadcrumb + content ——— */
.page-hero {
  padding: var(--pad-block) var(--pad-inline) 2.5rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.page-content {
  padding: var(--pad-section) var(--pad-inline);
}

.page-content .section-title {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content .section-title:first-child {
  margin-top: 0;
}

/* Card grid for solution/industry listing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.card-grid--mobile-stack {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--mobile-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid--mobile-stack {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-card,
.industry-card {
  display: block;
  padding: var(--pad-card);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-layer-1);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.solution-card:hover,
.industry-card:hover {
  box-shadow: var(--shadow-layer-2);
  border-color: var(--border-solid);
}

.solution-card h3,
.industry-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.solution-card p,
.industry-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
