/* ============================================================
   İLAÇ ZAMANI — style.css
   ============================================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary: #1565C0;
  --primary-light: #1E88E5;
  --primary-dark: #0D47A1;
  --accent: #29B6F6;
  --accent2: #4CAF50;
  --danger: #EF5350;
  --warning: #FF7043;

  --bg: #F8FAFE;
  --surface: #FFFFFF;
  --surface2: #EEF4FF;

  --text-main: #0D1B2A;
  --text-sub: #546E7A;
  --text-muted: #90A4AE;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(21, 101, 192, .10);
  --shadow-md: 0 8px 32px rgba(21, 101, 192, .15);
  --shadow-lg: 0 20px 60px rgba(21, 101, 192, .20);

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  padding: 100px 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface2);
  border: 1.5px solid rgba(21, 101, 192, .2);
  border-radius: 50px;
  padding: 6px 18px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.75;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(21, 101, 192, .4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(21, 101, 192, .45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: var(--text-main);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-store:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-store svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store-text small {
  font-size: 11px;
  font-weight: 600;
  opacity: .75;
}

.btn-store-text span {
  font-size: 16px;
  font-weight: 800;
}

/* ---------- SCROLL-REVEAL UTILITY ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(21, 101, 192, .12);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(21, 101, 192, .25);
}

.nav-logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text strong {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -.3px;
}

.nav-logo-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .5px;
}

#navbar.scrolled .nav-logo-text strong {
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#navbar.scrolled .nav-links a {
  color: var(--text-sub);
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: none;
  padding: 10px 24px !important;
  font-size: 14px !important;
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

#hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: var(--transition);
}

#navbar.scrolled #hamburger span {
  background: var(--text-main);
}

/* ---------- MOBILE NAV ---------- */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--surface2);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--surface2);
}

#mobile-menu a:last-child {
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(155deg, var(--primary-dark) 0%, var(--primary) 45%, var(--primary-light) 75%, #42A5F5 100%);
}

/* Animated background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 182, 246, .8), transparent);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(76, 175, 80, .6), transparent);
  bottom: -100px;
  left: -80px;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent);
  top: 50%;
  left: 40%;
  animation-delay: 5s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.08);
  }
}

/* Decorative grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* LEFT */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  animation: fadeInDown .8s ease both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(1.4);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
  animation: fadeInUp .9s ease .1s both;
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .accent-word {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp .9s ease .2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp .9s ease .3s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp .9s ease .4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-stat small {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
}

.hero-stat-divider {
  width: 1.5px;
  background: rgba(255, 255, 255, .25);
  align-self: stretch;
}

/* RIGHT — Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInLeft .9s ease .2s both;
  position: relative;
}

.phone-mockup-wrap {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.phone-mockup {
  width: 280px;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 44px;
  border: 10px solid #2a2a4a;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .08),
    0 40px 80px rgba(0, 0, 0, .5),
    0 10px 30px rgba(21, 101, 192, .4);
  overflow: hidden;
  position: relative;
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-16px) rotate(-1deg);
  }
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #0a0a1a;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(180deg, #F8FAFE 0%, #EEF4FF 100%);
  padding: 12px;
  min-height: 440px;
}

/* App UI Inside Phone */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.app-header-left {
  display: flex;
  flex-direction: column;
}

.app-header-left span:first-child {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.app-header-left span:last-child {
  font-size: 10px;
  color: rgba(255, 255, 255, .75);
}

.app-header-right {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.app-section-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding: 0 2px;
}

.app-medicine-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.app-med-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.app-med-icon.blue {
  background: rgba(21, 101, 192, .12);
}

.app-med-icon.green {
  background: rgba(76, 175, 80, .12);
}

.app-med-icon.orange {
  background: rgba(255, 112, 67, .12);
}

.app-med-info {
  flex: 1;
}

.app-med-info strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
}

.app-med-info small {
  font-size: 9px;
  color: var(--text-muted);
}

.app-med-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.app-med-status.taken {
  background: var(--accent2);
  color: #fff;
}

.app-med-status.pending {
  background: #E3F2FD;
  color: var(--primary);
}

/* Phone glow ring */
.phone-glow {
  position: absolute;
  inset: -30px;
  border-radius: 70px;
  background: radial-gradient(circle at center, rgba(41, 182, 246, .25), transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Floating badges around phone */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  animation: badgeFloat 4s ease-in-out infinite;
}

.floating-badge-icon {
  font-size: 20px;
}

.floating-badge-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-sub);
}

.fb-top-left {
  top: 60px;
  left: -70px;
  animation-delay: 0s;
}

.fb-top-right {
  top: 40px;
  right: -70px;
  animation-delay: 1.5s;
}

.fb-bot-left {
  bottom: 80px;
  left: -60px;
  animation-delay: .8s;
}

.fb-bot-right {
  bottom: 60px;
  right: -60px;
  animation-delay: 2.3s;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
  cursor: pointer;
  z-index: 2;
}

.hero-scroll .scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
  border-radius: 2px;
  animation: scrollAnim 1.8s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================
   RESPONSIVE — HERO & NAVBAR
   ============================================================ */
@media (max-width: 900px) {
  section {
    padding: 70px 0;
  }

  .hero-scroll {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .fb-top-left,
  .fb-bot-left {
    left: -30px;
  }

  .fb-top-right,
  .fb-bot-right {
    right: -30px;
  }

  .nav-links {
    display: none;
  }

  #hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .phone-mockup-wrap {
    width: 220px;
  }

  .phone-mockup {
    width: 220px;
  }

  .fb-top-left,
  .fb-bot-left,
  .fb-top-right,
  .fb-bot-right {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }
}

/* ============================================================
   FEATURES — Özellikler
   ============================================================ */
#features {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Subtle wave background */
#features::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -10%;
  width: 120%;
  height: 300px;
  background: linear-gradient(180deg, var(--surface2) 0%, transparent 100%);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-desc {
  margin: 0 auto;
}

/* Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* Feature Card */
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid rgba(21, 101, 192, .08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
}

/* Card gradient overlay on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, .04), rgba(41, 182, 246, .06));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

/* Colored top accent line */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--fc-color, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, .18);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

/* Icon */
.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 22px;
  position: relative;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  background: var(--fc-bg, var(--surface2));
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.12) rotate(-4deg);
}

/* Decorative ring behind icon */
.feature-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px dashed var(--fc-color, var(--primary));
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: rotate(0deg);
}

.feature-card:hover .feature-icon-wrap::before {
  opacity: .25;
  transform: rotate(45deg);
}

.feature-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Tag pills */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--fc-color, var(--primary));
  background: var(--fc-bg, var(--surface2));
  border-radius: 50px;
  padding: 4px 12px;
}

/* Stagger delays */
.feature-card:nth-child(1) {
  transition-delay: .00s;
}

.feature-card:nth-child(2) {
  transition-delay: .06s;
}

.feature-card:nth-child(3) {
  transition-delay: .12s;
}

.feature-card:nth-child(4) {
  transition-delay: .18s;
}

.feature-card:nth-child(5) {
  transition-delay: .24s;
}

.feature-card:nth-child(6) {
  transition-delay: .30s;
}

/* Reveal stagger for grid items */
.feature-card.reveal {
  transition: opacity .6s ease, transform .6s ease;
}

.feature-card.reveal:nth-child(1) {
  transition-delay: .05s;
}

.feature-card.reveal:nth-child(2) {
  transition-delay: .15s;
}

.feature-card.reveal:nth-child(3) {
  transition-delay: .25s;
}

.feature-card.reveal:nth-child(4) {
  transition-delay: .35s;
}

.feature-card.reveal:nth-child(5) {
  transition-delay: .45s;
}

.feature-card.reveal:nth-child(6) {
  transition-delay: .55s;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 22px;
  }
}

/* ============================================================
   HOW IT WORKS — Nasıl Çalışır
   ============================================================ */
#how-it-works {
  background: var(--bg);
  text-align: center;
}

.hiw-header {
  margin-bottom: 70px;
}

.hiw-header .section-desc {
  margin: 0 auto;
}

.hiw-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Connecting line behind steps */
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  z-index: -1;
}

.hiw-step {
  flex: 1;
  max-width: 320px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(21, 101, 192, .08);
}

.hiw-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 101, 192, .2);
}

/* Step Number */
.hiw-step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 20px rgba(21, 101, 192, .3);
  border: 4px solid var(--surface);
}

.hiw-step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hiw-step-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
}

.hiw-step.reveal {
  transition: opacity .6s ease, transform .6s ease;
}

.hiw-step.reveal:nth-child(1) {
  transition-delay: .1s;
}

.hiw-step.reveal:nth-child(2) {
  transition-delay: .25s;
}

.hiw-step.reveal:nth-child(3) {
  transition-delay: .4s;
}

/* Responsive */
@media (max-width: 900px) {
  .hiw-steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hiw-steps::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--primary-light), transparent);
    transform: translateX(-50%);
  }

  .hiw-step {
    width: 100%;
    max-width: 400px;
  }
}

/* ============================================================
   SCREENSHOTS — Ekran Görüntüleri
   ============================================================ */
#screenshots {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  padding-bottom: 120px;
}

.screenshots-header {
  text-align: center;
  margin-bottom: 50px;
}

.screenshots-header .section-desc {
  margin: 0 auto;
}

/* Carousel wrapper */
.screenshots-carousel-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

/* Gradient fade at edges */
.screenshots-carousel-wrap::before,
.screenshots-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.screenshots-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.screenshots-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.screenshots-carousel {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 100px;
  /* Hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.screenshots-carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  scroll-snap-align: center;
  flex: 0 0 280px;
  transition: transform .4s ease, opacity .4s ease;
  opacity: .5;
  transform: scale(.9);
}

/* Simulate focus on center items using simple hover for now */
.screenshot-item:hover,
.screenshot-item:focus-within {
  opacity: 1;
  transform: scale(1);
}

.screen-mockup {
  width: 280px;
  height: 580px;
  background: var(--bg);
  border-radius: 44px;
  border: 10px solid #2a2a4a;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, .15),
    0 0 0 1px rgba(0, 0, 0, .05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen-notch {
  width: 100px;
  height: 28px;
  background: #2a2a4a;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.screen-header {
  height: 70px;
  background: var(--primary);
  display: flex;
  align-items: flex-end;
  padding: 0 20px 15px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.screen-body {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  background: var(--surface2);
}

/* Placeholder contents for screens */
.mock-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.mock-line {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
}

.mock-line.short {
  width: 60%;
}

.mock-line.circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  float: left;
  margin-right: 12px;
  margin-bottom: 0;
}

.screen-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin-top: 24px;
  color: var(--text-main);
}

.screen-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
}

@media (max-width: 768px) {

  .screenshots-carousel-wrap::before,
  .screenshots-carousel-wrap::after {
    display: none;
  }

  .screenshots-carousel {
    padding: 20px;
    gap: 20px;
  }

  .screenshot-item {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   FAQ — Sıkça Sorulan Sorular
   ============================================================ */
#faq {
  background: var(--bg);
}

.faq-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.faq-text {
  flex: 1;
  max-width: 440px;
  position: sticky;
  top: 120px;
}

.faq-contact-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(21, 101, 192, .06);
}

.faq-contact-icon {
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.faq-contact-card strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.faq-contact-card small {
  font-size: 13px;
  color: var(--text-sub);
}

.faq-accordion {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(21, 101, 192, .06);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(21, 101, 192, .2);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon {
  background: var(--primary);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background: #fff;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-sub);
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 900px) {
  .faq-inner {
    flex-direction: column;
    gap: 40px;
  }

  .faq-text {
    max-width: 100%;
    position: relative;
    top: 0;
    text-align: center;
  }

  .faq-contact-card {
    text-align: left;
  }
}

/* ============================================================
   DOWNLOAD CTA — İndirme Bölümü
   ============================================================ */
#download {
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(21, 101, 192, .25);
  color: #fff;
}

/* Background patterns for CTA */
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
  border-radius: 50%;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 182, 246, .2), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-desc {
  font-size: 18px;
  opacity: .85;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-actions .btn-store {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.cta-actions .btn-store:hover {
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--surface);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(21, 101, 192, .08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -.5px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.footer-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-sub);
  transition: var(--transition);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(21, 101, 192, .08);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-legal a {
  margin-left: 20px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 10px;
  }

  .cta-box {
    padding: 60px 24px;
    border-radius: var(--radius-lg);
  }
}