/* OfisHattı Araçlar — tasarım sistemi */
:root {
  --navy: #0c2438;
  --navy-2: #143652;
  --teal: #1b9e8f;
  --teal-dim: #157a6e;
  --sand: #e8dcc8;
  --ink: #12202c;
  --muted: #5c6b78;
  --line: rgba(12, 36, 56, 0.12);
  --paper: #f3efe6;
  --paper-2: #faf7f1;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #0f7a4c;
  --shadow: 0 18px 50px rgba(12, 36, 56, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(27, 158, 143, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 220, 200, 0.55), transparent 50%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(12, 36, 56, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 36, 56, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 247, 241, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(27, 158, 143, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(27, 158, 143, 0.1);
}

.nav-cta {
  background: var(--navy) !important;
  color: white !important;
  padding: 0.55rem 0.95rem !important;
  max-width: min(280px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--navy-2) !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: white;
  box-shadow: 0 10px 28px rgba(27, 158, 143, 0.28);
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--navy);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--navy);
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--teal-dim);
}

.hero-copy p {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 36, 56, 0.96), rgba(20, 54, 82, 0.9)),
    var(--navy);
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(27, 158, 143, 0.45), transparent 65%);
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.hero-panel .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-panel .big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0.4rem 0 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
}

.hero-stats span {
  font-size: 0.78rem;
  opacity: 0.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy {
  animation: fade-up 0.7s ease both;
}

/* Sections */
.section {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(12, 36, 56, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 168px;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 158, 143, 0.35);
  box-shadow: 0 16px 36px rgba(12, 36, 56, 0.1);
}

.tool-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(27, 158, 143, 0.12);
  color: var(--teal-dim);
  font-size: 1.1rem;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.tool-card .tool-use {
  font-size: 0.78rem;
  color: var(--muted);
}

.tool-card .go {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dim);
}

/* Support band */
.support-band {
  margin: 1rem 0 3rem;
  border-radius: 28px;
  padding: 1.8rem;
  background: linear-gradient(120deg, var(--navy), #1a4a63 55%, #17685f);
  color: white;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.support-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.support-band p {
  margin: 0;
  opacity: 0.85;
  max-width: 36rem;
}

.support-band .btn-primary {
  background: white;
  color: var(--navy);
  box-shadow: none;
}

/* Tool page layout */
.tool-page {
  padding: 2rem 0 3.5rem;
}

.tool-hero {
  margin-bottom: 1.4rem;
  animation: fade-up 0.55s ease both;
}

.crumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.crumb a:hover {
  color: var(--teal-dim);
}

.tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.45rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.tool-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(12, 36, 56, 0.05);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(27, 158, 143, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 158, 143, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.result-box {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: white;
  border-radius: 20px;
  padding: 1.2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.result-box h3 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.result-list {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.qr-canvas-wrap {
  display: grid;
  place-items: center;
  background: white;
  border-radius: 16px;
  padding: 1rem;
  min-height: 220px;
}

.qr-canvas-wrap canvas,
.qr-canvas-wrap img {
  max-width: 220px;
}

.dropzone {
  border: 1.5px dashed rgba(27, 158, 143, 0.45);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  background: rgba(27, 158, 143, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
}

.dropzone:hover,
.dropzone.drag {
  background: rgba(27, 158, 143, 0.1);
}

.preview-img {
  margin-top: 0.8rem;
  border-radius: 12px;
  max-height: 220px;
  margin-inline: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(27, 158, 143, 0.12);
  color: var(--teal-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(12, 36, 56, 0.05);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.notice a {
  color: var(--teal-dim);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a:hover {
  color: var(--teal-dim);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Legal pages */
.prose {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
}

.prose h1 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-top: 0;
}

.prose h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: 1.4rem;
}

.search-box {
  margin: 0 0 1.2rem;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(27, 158, 143, 0.5);
  box-shadow: 0 0 0 4px rgba(27, 158, 143, 0.12);
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .panel-grid,
  .tool-grid,
  .footer-grid,
  .support-band {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .tool-grid,
  .row-2,
  .row-3,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
