@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700&display=swap');

:root {
  --brand-primary: #1f244b;
  --brand-dark: #16172b;
  --primary-500: #4c1d95;
  --primary-400: #7c3aed;
  --accent-amber: #f59e0b;
  --accent-mint: #10b981;
  --accent-sky: #0ea5e9;
  --bg: #fcfcfe;
  --bg-alt: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --border-light: #dce4f0;
  --text-secondary: #5b6477;
  --text-muted: #7c8597;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 24px 60px rgba(76, 29, 149, 0.12);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.07), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--brand-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2rem; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-light);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #fcfcfe;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.nav-cta,
.btn,
.sticky-cta,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn-primary,
.sticky-cta,
.cta-link {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  color: #fff;
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.18);
}

.nav-cta,
.btn {
  padding: 12px 20px;
}

.nav-cta:hover,
.btn-primary:hover,
.sticky-cta:hover,
.cta-link:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(76, 29, 149, 0.06);
  color: var(--primary-500);
  border: 1px solid rgba(76, 29, 149, 0.14);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 auto;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px 28px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.hero {
  padding: 72px 0 44px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero-shell--compact {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.hero-main,
.hero-side,
.content-card,
.article-callout,
.related-card,
.comparison-table,
.faq-item,
.resource-card,
.lead-magnet,
.insight-strip,
.sticky-card {
  background: #fff;
  border: 1px solid rgba(220, 228, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hero-main {
  padding: 32px;
  border-radius: var(--radius-2xl);
}

.hero-side {
  padding: 24px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.95));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.08);
  color: var(--primary-500);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

h1, h2, h3 {
  color: var(--brand-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.hero-meta span,
.tag,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.visual-card {
  min-height: 280px;
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(31, 36, 75, 0.98), rgba(76, 29, 149, 0.96) 58%, rgba(14, 165, 233, 0.92)),
    #1f244b;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.visual-card::before,
.visual-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.visual-card::before {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  top: -60px;
  right: -20px;
}

.visual-card::after {
  width: 180px;
  height: 180px;
  background: rgba(245, 158, 11, 0.18);
  bottom: -40px;
  left: -20px;
}

.visual-kicker,
.visual-title,
.visual-stat,
.visual-note {
  position: relative;
  z-index: 1;
}

.visual-kicker {
  font-size: 0.78rem;
  opacity: 0.74;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 18px 0;
}

.visual-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.visual-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.96rem;
}

.visual-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.content-wrap {
  padding: 0 0 72px;
}

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

.content-card {
  padding: 34px;
  border-radius: var(--radius-2xl);
}

.article-body h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 1.18rem;
  margin: 22px 0 10px;
}

.article-body p,
.article-body li,
.article-body td,
.article-body th,
.article-body blockquote {
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-body p + p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-callout,
.comparison-table,
.lead-magnet,
.faq-list {
  margin-top: 18px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
}

.article-body strong {
  color: var(--brand-dark);
}

.article-callout,
.lead-magnet,
.insight-strip {
  padding: 18px 20px;
  border-radius: 18px;
}

.rent-calculator {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(220, 228, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rent-calculator__header h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.rent-calculator__header p,
.rent-calculator__note {
  color: var(--text-secondary);
}

.rent-calculator__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.rent-calculator__field {
  display: grid;
  gap: 8px;
}

.rent-calculator__field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.rent-calculator__field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
}

.rent-calculator__field input:focus {
  outline: none;
  border-color: rgba(76, 29, 149, 0.4);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.rent-calculator__note {
  margin-top: 14px;
  font-size: 0.92rem;
}

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

.rent-calculator__result {
  padding: 16px;
  border-radius: 14px;
  background: #fbfcff;
  border: 1px solid var(--border-light);
}

.rent-calculator__result span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.rent-calculator__result strong {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.rent-calculator__result--accent {
  background: rgba(76, 29, 149, 0.05);
}

.article-callout {
  background: #fbfcff;
  border-left: 4px solid var(--primary-400);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.insight-strip div {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
}

.insight-strip strong {
  display: block;
  font-size: 1.2rem;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.comparison-table {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(220, 228, 240, 0.9);
}

.comparison-table th {
  background: rgba(76, 29, 149, 0.08);
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.sidebar-stack.reveal,
.sidebar-stack.reveal.visible {
  opacity: 1;
  transform: none;
}

.sticky-card,
.resource-card {
  padding: 18px;
  border-radius: 18px;
}

.sticky-card {
  z-index: 5;
}

.resource-card {
  position: relative;
  z-index: 1;
}

.sticky-card h3,
.resource-card h3,
.related-section h2,
.faq-title {
  font-size: 1.15rem;
}

.toc-list,
.resource-list,
.cta-points,
.related-links,
.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.toc-list a,
.resource-list a,
.related-links a {
  color: var(--text-secondary);
}

.toc-list a:hover,
.resource-list a:hover,
.related-links a:hover {
  color: var(--primary-500);
}

.sticky-cta {
  width: 100%;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.16);
  position: relative;
  z-index: 2;
  isolation: isolate;
  text-shadow: none;
}

.sticky-cta,
.sticky-cta:link,
.sticky-cta:visited,
.sticky-cta:hover,
.sticky-cta:active,
.cta-link,
.cta-link:link,
.cta-link:visited,
.cta-link:hover,
.cta-link:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.cta-link {
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.16);
}

.article-callout .cta-row a:not(.cta-link) {
  font-weight: 700;
  color: var(--primary-500);
}

.lead-magnet {
  background: #fffaf2;
  border-left: 4px solid var(--accent-amber);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--brand-primary);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 20px 20px;
}

.related-section {
  padding: 0 0 84px;
}

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

.related-card,
.resource-card {
  padding: 24px;
  border-radius: 18px;
}

.related-card--link {
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.related-card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(76, 29, 149, 0.16);
}

.related-card--link h3 {
  margin-top: 14px;
}

.related-card--link::after {
  content: 'Yazıyı oku →';
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-weight: 700;
  color: var(--primary-500);
}

.related-card p,
.resource-card p {
  color: var(--text-secondary);
  margin: 12px 0 18px;
}

.footer {
  padding: 42px 0 36px;
  background: #0f1226;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.mini-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1281px) {
  .toc,
  .sticky-card {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 1280px) {
  .toc,
  .sticky-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .content-grid,
  .footer-grid,
  .related-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 48px; }
  .hero-main,
  .content-card {
    padding: 24px 20px;
  }
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .rent-calculator__grid,
  .rent-calculator__results {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .nav-cta,
  .sticky-cta,
  .cta-link {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}
