/* =========================================================
   devFhm — token sistemi
   ========================================================= */
:root {
  --bg: #0a0a0d;
  --bg-elevated: #101013;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: #2a2a30;

  --red: #e8262c;
  --red-dim: #b91e23;
  --red-glow: rgba(232, 38, 44, 0.35);

  --white: #f2f2f4;
  --white-soft: #c7c7cd;
  --muted: #8b8b93;

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wrap: 1180px;
  --radius: 14px;
  --chevron-cut: polygon(0 0, 100% 0, 100% 100%, 4% 100%, 0 88%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Yardımcı: chevron/V motifi (marka imzası)
   ========================================================= */
.section-tag {
  width:100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 14px;
}
.section-tag::before {
  content: url("../assets/icon-bg.png");
  display: inline-block;
  zoom: 0.20; /* Görseli yarı boyutuna indirir (oranı deneme yanılma ile bulmanız gerekir) */
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo { height: 30px; width: auto; }

.main-nav {
  display: flex;
  gap: 36px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--white-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--border);
}
.hero-chevrons {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    width: min(640px, 60vw);
    opacity: 0.20;
    mix-blend-mode: screen;
    pointer-events: none;
}
.hero-chevrons img { width: 100%; height: auto; }

.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--red);
  letter-spacing: 3px;
  font-size: 13px;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  color: var(--white);
}
.hero h1 span { color: var(--red); }

.hero-sub {
  color: var(--white-soft);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--red);
  color: #0a0a0a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--red-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.play-icon {
  width: 14px; height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  display: inline-block;
}

/* =========================================================
   Uygulamalar bölümü
   ========================================================= */
.apps-section { padding: 96px 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); color: var(--white); }
.section-desc { color: var(--muted); font-size: 15.5px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.app-card {
  --accent: var(--red); /* JS her kart için bunu kendi rengiyle ezer */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
}
.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--surface-2);
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px;
  width: 30px; height: 4px;
  background: var(--accent);
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
}

.app-card-top { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.app-tag {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  padding: 3px 8px;
  border-radius: 5px;
}

.app-tagline {
  color: var(--white-soft);
  font-size: 14.5px;
  flex-grow: 1;
}

.app-card-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-card:hover .app-card-cta { color: var(--accent); }

/* =========================================================
   Hakkımızda
   ========================================================= */
.about-section {
  padding: 96px 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--white); }
.about-text p { color: var(--white-soft); font-size: 15.5px; max-width: 560px; }

.about-stats {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--red);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-mark {
  width: 100%;
  max-width: 260px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* =========================================================
   İletişim
   ========================================================= */
.contact-section { padding: 96px 0; }
.contact-inner { max-width: 720px; }
.contact-inner h2 { font-size: clamp(26px, 3.4vw, 36px); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--red); transform: translateY(-3px); }

.contact-icon {
  width: 26px; height: 26px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: rgba(232, 38, 44, 0.12);
  border: 1px solid rgba(232, 38, 44, 0.3);
  position: relative;
  flex-shrink: 0;
}
.contact-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--red);
}
/* basit, bağımlılıksız ikon şekilleri (clip-path ile) */
.contact-icon[data-icon="mail"]::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 22%, 50% 58%, 100% 22%, 100% 16%, 50% 48%, 0 16%);
}
.contact-icon[data-icon="instagram"]::before {
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 28%, black 30%);
  mask: radial-gradient(circle at 50% 50%, transparent 28%, black 30%);
}
.contact-icon[data-icon="x"]::before {
  clip-path: polygon(8% 0, 30% 0, 50% 38%, 70% 0, 92% 0, 60% 50%, 92% 100%, 70% 100%, 50% 62%, 30% 100%, 8% 100%, 40% 50%);
}
.contact-icon[data-icon="youtube"]::before {
  clip-path: polygon(0 12%, 0 88%, 100% 88%, 100% 12%);
}
.contact-icon[data-icon="youtube"]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--bg-elevated);
  transform: translate(-40%, -50%);
}
.contact-icon[data-icon="github"]::before {
  clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
  -webkit-mask: radial-gradient(circle at 50% 40%, transparent 18%, black 20%);
  mask: radial-gradient(circle at 50% 40%, transparent 18%, black 20%);
}
.contact-icon[data-icon="playstore"]::before {
  clip-path: polygon(15% 0, 15% 100%, 85% 50%);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--muted);
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo { height: 30px; opacity: 0.8; }
.footer-inner p { color: var(--muted); font-size: 13px; margin: 0; }

/* =========================================================
   Modal
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  --accent: var(--red); /* JS, açılan uygulamanın kendi rengiyle ezer */
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-right: 20px;
}
.modal-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}
.modal-head h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
}
.modal-tagline { color: var(--white-soft); font-size: 14px; margin: 0 0 8px; }
.modal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 3px 8px;
  border-radius: 5px;
}

.modal-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 26px 0;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.modal-shots img {
  height: 320px;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.modal-body h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-body p { color: var(--white-soft); font-size: 15px; }

.modal-footer { margin-top: 24px; display: flex; justify-content: center; }
.google-play-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.google-play-link:hover { transform: translateY(-2px); opacity: 0.92; }
.google-play-badge {
  height: 58px;
  width: auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-mark { max-width: 180px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 28px 26px;
    gap: 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 76px 0 64px; }
  .modal-shots img { height: 240px; }
}

@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
