/* =========================================================
   ROTAPAZAR — Landing Page Styles
   Palette: logonun renklerinden türetildi
   ========================================================= */

:root {
  --bg: #E8F6F3;          /* açık nane/su yeşili — genel arka plan */
  --bg-soft: #F5FBFA;      /* kartlar için hafif daha açık zemin */
  --accent: #16A085;       /* logodaki canlı "rp" yeşili — vurgu rengi */
  --accent-dark: #11876F;  /* accent hover tonu */
  --ink: #0B422B;          /* logo çerçevesindeki koyu orman yeşili — başlık/metin */
  --ink-soft: #3C6655;     /* gövde metinleri için yumuşatılmış ink tonu */
  --white: #FFFFFF;

  --shadow-sm: 0 4px 16px -4px rgba(11, 66, 43, 0.12);
  --shadow-md: 0 16px 40px -12px rgba(11, 66, 43, 0.18);
  --shadow-accent: 0 20px 45px -15px rgba(22, 160, 133, 0.45);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

a { text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(22, 160, 133, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.eyebrow-light {
  color: var(--bg);
  background: rgba(232, 246, 243, 0.15);
}

/* =========================================================
   NAVBAR — Sticky Glassmorphism
   ========================================================= */
.glass-nav {
  background: rgba(232, 246, 243, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 66, 43, 0.08);
  padding: 14px 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.glass-nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-brand .brand-logo {
  width: 64px;
  height: 64px;
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.15rem;
  text-transform: lowercase;
}

.brand-text strong { font-weight: 800; }

.navbar-nav .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--ink);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-spring);
}

.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.btn-ink {
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 25px -8px rgba(11, 66, 43, 0.5);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.btn-ink:hover,
.btn-ink:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(11, 66, 43, 0.6);
  color: var(--white);
}

.btn-ink:active { transform: translateY(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  padding: 160px 0 110px;
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(22, 160, 133, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(11, 66, 43, 0.08), transparent 50%),
    var(--bg);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.store-buttons { margin-top: 8px; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), background 0.25s ease;
}

.store-btn i { font-size: 1.8rem; }

.store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn small { font-size: 0.7rem; font-weight: 400; opacity: 0.8; }

.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
  background: var(--accent-dark);
  color: var(--white);
}

.store-btn:active { transform: translateY(-1px); }

.store-btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 35px -12px rgba(0,0,0,0.25);
}

.store-btn-light:hover,
.store-btn-light:focus-visible {
  background: var(--accent);
  color: var(--white);
}

/* --- Telefon mockup + süzülen rozetler --- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.phone-mockup {
  width: 270px;
  height: 560px;
  background: var(--ink);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(11, 66, 43, 0.15);
  position: relative;
  animation: floatPhone 5s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: var(--accent);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Görsel üzerine derinlik için renk/degrade katmanı */
.phone-screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 66, 43, 0.65), transparent 55%);
  mix-blend-mode: multiply;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  animation: floatBadge 4s ease-in-out infinite;
}

.float-badge i { color: var(--accent-dark); }

.badge-1 { top: 10%; left: -4%; animation-delay: 0.2s; }
.badge-2 { top: 48%; right: -8%; animation-delay: 0.9s; }
.badge-3 { bottom: 8%; left: 2%; animation-delay: 1.6s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =========================================================
   BENTO GRID — Özellikler
   ========================================================= */
.bento-section { padding: 110px 0; }

.section-heading { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "large large tall  tall"
    "large large stat1 stat2"
    "wide  wide  wide  wide";
  gap: 24px;
}

.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 66, 43, 0.05);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.bento-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}

.bento-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.bento-card p { margin-bottom: 0; color: var(--ink-soft); }

.bento-large { grid-area: large; background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; }
.bento-large h3 { font-size: 1.6rem; }
.bento-large p { margin-bottom: 16px; }

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 600;
  transition: gap 0.2s var(--ease-spring), color 0.2s ease;
}

.bento-link:hover,
.bento-link:focus-visible {
  color: var(--accent);
  gap: 12px;
}

.bento-tall { grid-area: tall; }
.bento-grid .bento-stat:nth-child(3) { grid-area: stat1; }
.bento-grid .bento-stat:nth-child(4) { grid-area: stat2; }
.bento-stat { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.bento-stat h3 { font-size: 2.2rem; color: var(--accent-dark); }
.bento-wide { grid-area: wide; display: flex; align-items: center; gap: 20px; }
.bento-wide .bento-icon { margin-bottom: 0; }

/* =========================================================
   QR / CTA SECTION
   ========================================================= */
.qr-section { padding: 0 0 110px; }

.qr-card {
  background: linear-gradient(135deg, var(--ink) 0%, #0E5438 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.qr-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(22, 160, 133, 0.35), transparent 50%);
}

.qr-card-text { position: relative; z-index: 1; max-width: 480px; }
.qr-card-text h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.qr-card-text p { color: rgba(232, 246, 243, 0.8); margin-bottom: 28px; }

.qr-card-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
}

.qr-image { display: block; width: 180px; height: 180px; border-radius: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(232, 246, 243, 0.7);
  padding: 48px 0 32px;
}

.footer-brand .brand-text { color: var(--white); }

.footer-links { list-style: none; padding: 0; flex-wrap: wrap; }
.footer-links a {
  color: rgba(232, 246, 243, 0.75);
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--accent); }

.footer-divider { border-color: rgba(232, 246, 243, 0.15); margin: 32px 0 20px; }

.footer-copy { font-size: 0.85rem; text-align: center; }

/* =========================================================
   HAKKIMIZDA SAYFASI — İç sayfa hero + adım kartları
   ========================================================= */
.page-hero { padding: 160px 0 90px; }

.story-card { display: flex; flex-direction: column; gap: 10px; }

.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 66, 43, 0.05);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 160, 133, 0.12);
  color: var(--accent-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 767.98px) {
  .steps-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 140px 0 60px; }
}

/* =========================================================
   SCROLL REVEAL (Intersection Observer ile tetiklenir)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

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

/* =========================================================
   RESPONSIVE — Mobile First Düzeltmeler
   ========================================================= */
@media (max-width: 991.98px) {
  .hero-section { padding: 140px 0 80px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .phone-stage { margin-top: 48px; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "large large"
      "tall  tall"
      "stat1 stat2"
      "wide  wide";
  }
}

@media (max-width: 575.98px) {
  .phone-mockup { width: 230px; height: 480px; }
  .float-badge { font-size: 0.75rem; padding: 8px 14px; }
  .badge-1 { left: -2%; }
  .badge-2 { right: -2%; }

  .bento-grid { grid-template-columns: 1fr; grid-template-areas: "large" "tall" "stat1" "stat2" "wide"; }

  .qr-card { padding: 40px 28px; justify-content: center; text-align: center; }
  .qr-card-text { margin: 0 auto; }
}
