/* ============================================
   Hoparlör Temizleyici — Website Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #299BEC;
  --primary-dark: #1B7ECB;
  --primary-deeper: #1565A8;
  --primary-light: #5CB8F5;
  --primary-glow: rgba(41, 155, 236, 0.15);
  --primary-ghost: rgba(41, 155, 236, 0.06);

  --bg: #FFFFFF;
  --bg-alt: #F0F6FC;
  --surface: #F8FAFC;
  --surface-raised: #FFFFFF;

  --text: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-on-primary: #FFFFFF;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --success: #34C759;
  --warning: #FF9500;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-glow: 0 8px 32px rgba(41, 155, 236, 0.18);

  --max-width: 1120px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-center { text-align: center; }

/* ---------- Layout ---------- */

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

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(41, 155, 236, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Animated ripple rings */
.ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0;
  animation: ripple-expand 4s ease-out infinite;
}

.ripple-ring:nth-child(1) {
  width: 200px; height: 200px;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}
.ripple-ring:nth-child(2) {
  width: 200px; height: 200px;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: 1.3s;
}
.ripple-ring:nth-child(3) {
  width: 200px; height: 200px;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: 2.6s;
}

@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Floating dots */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.08;
  animation: float-dot 6s ease-in-out infinite;
}
.hero-dot:nth-child(4) { width: 300px; height: 300px; top: -80px; right: -60px; animation-delay: 0s; }
.hero-dot:nth-child(5) { width: 200px; height: 200px; bottom: 10%; left: -40px; animation-delay: 2s; }
.hero-dot:nth-child(6) { width: 120px; height: 120px; top: 30%; right: 15%; animation-delay: 1s; opacity: 0.05; }

@keyframes float-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.hero-text {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-ghost);
  border: 1px solid rgba(41, 155, 236, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 440px;
}

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

/* App Store Badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--text-on-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-on-primary);
}

.app-store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-badge .badge-text small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}

.app-store-badge .badge-text span {
  font-size: 1.05rem;
}

/* Hero Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--text);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
  animation: phone-float 5s ease-in-out infinite;
}

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

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F0F6FC 0%, #FFFFFF 100%);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: var(--text);
  border-radius: 0 0 20px 20px;
}

.phone-screen-content {
  text-align: center;
  padding: 20px;
}

.phone-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41, 155, 236, 0.1), rgba(41, 155, 236, 0.05));
  border: 1.5px solid rgba(41, 155, 236, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}

.phone-circle::before {
  content: '💧';
  font-size: 36px;
}

.phone-circle-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(41, 155, 236, 0.1);
  animation: phone-ring-pulse 3s ease-out infinite;
}

.phone-circle-ring:nth-child(2) {
  inset: -32px;
  animation-delay: 1s;
}

@keyframes phone-ring-pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0; }
}

.phone-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.phone-sublabel {
  font-size: 10px;
  color: var(--text-secondary);
  padding: 6px 16px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ---------- Wave Divider ---------- */

.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-divider-flip {
  transform: scaleY(-1);
  margin-bottom: -1px;
  margin-top: 0;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-ghost);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- How It Works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
}

/* Connecting line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 68px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--border);
}

/* ---------- Safety ---------- */

.safety-card {
  background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(41, 155, 236, 0.04) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.safety-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-ghost);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.safety-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.safety-list li {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.safety-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- CTA ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-deeper));
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -100px;
  left: -50px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.cta-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--text);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text);
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---------- Legal Pages ---------- */

.legal-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.legal-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Scroll Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-bg .ripple-ring {
    left: 50% !important;
    top: 60% !important;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 36px;
    padding: 10px;
  }

  .phone-screen { border-radius: 28px; }
  .phone-notch { width: 100px; height: 24px; }
  .phone-circle { width: 100px; height: 100px; }
  .phone-circle::before { font-size: 28px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .safety-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding-top: calc(var(--header-height) + 40px); padding-bottom: 40px; }

  .feature-card { padding: 28px 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-left { flex-direction: column; }

  .legal-page { padding-top: calc(var(--header-height) + 32px); }
  .legal-content h2 { margin-top: 32px; padding-top: 24px; }

  .cta-section { padding: 64px 0; }
}
