/* Beygir Bet Öneri — tema */
:root {
  --bg-base: #0a1d3f;
  --grad-start: #093482;
  --grad-end: #041d4a;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.15);
  --text: #e8f4ff;
  --text-muted: #8fb3d9;
  --border: rgba(0, 212, 255, 0.25);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background-color: var(--bg-base);
  background-image: linear-gradient(to bottom, var(--grad-start), var(--grad-end));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Üst bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 29, 63, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(100%, 320px);
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .logo-img {
    height: 48px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  opacity: 1;
}

/* Mobil menü tetikleyici */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 310;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0, 212, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  background: var(--accent-soft);
  border-color: rgba(0, 212, 255, 0.45);
}

.nav-toggle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

body.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.is-nav-open {
  overflow: hidden;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 280;
    background: rgba(2, 10, 28, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .logo-link {
    justify-content: flex-start;
    max-width: calc(100% - 3.5rem);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 305;
    width: min(19.5rem, calc(100vw - 1rem));
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5.25rem 1.15rem 2rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: linear-gradient(165deg, rgba(10, 29, 63, 0.98) 0%, rgba(4, 29, 74, 0.99) 100%);
    border-left: 1px solid var(--border);
    /* Gölge yalnızca açıkken — kapalıyken sağda şerit/kalıntı oluşturmaz */
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s,
      box-shadow 0.38s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.is-nav-open .nav-links {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s,
      box-shadow 0.38s ease;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 11px;
    border: 1px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--accent-soft);
    border-color: rgba(0, 212, 255, 0.2);
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* Ana içerik */
main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 2.75rem;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Bölüm başlıkları */
.section {
  margin-top: 2.75rem;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.section-head--solo {
  margin-bottom: 1.5rem;
}

.section-head--solo .section-title {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.section-gap {
  margin-top: 1.5rem;
}

/* Adımlar */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.step {
  position: relative;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Üç sütun grid */
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.card-tight p {
  margin: 0;
  font-size: 0.9rem;
}

.card-subtitle {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
}

/* SSS */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 29, 63, 0.45);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.faq-item[open] {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: -0.2rem;
}

.faq-body {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.faq-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.faq-strong {
  color: var(--text);
  font-weight: 600;
}

.form-intro {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Kartlar */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  background: rgba(10, 29, 63, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .card.reveal-on-scroll.is-visible:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
    border-color: rgba(0, 212, 255, 0.42);
  }
}

/* Görünüm animasyonu (scroll) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    transition: border-color 0.2s ease;
  }

  @media (hover: hover) {
    .card.reveal-on-scroll.is-visible:hover {
      transform: none;
    }
  }

  .nav-toggle-bar {
    transition: none;
  }

  body.is-nav-open .nav-links {
    transition: none;
  }

  body.is-nav-open .nav-backdrop {
    transition: none;
  }
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.95;
}

.card > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form */
.form-section {
  margin-top: 2.5rem;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
}

#feedback-form {
  position: relative;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.85;
}

/* Spam koruması: gizli honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(4, 29, 74, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(232, 244, 255, 0.4);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #041d4a;
  background: linear-gradient(135deg, var(--accent), #33ddff);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.35);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn .spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(4, 29, 74, 0.3);
  border-top-color: #041d4a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  opacity: 0.9;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: rgba(0, 200, 120, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.4);
  color: #7fefc0;
}

.form-status.error {
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffb4b4;
}

/* Alt bilgi */
.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(4, 29, 74, 0.4);
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .domain {
  color: var(--accent);
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Erişilebilirlik: görünür odak */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hero {
    padding: 1.75rem 0 2rem;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
  }
}
