/* ========================================
   KOKA Premium — Design System (Gold/Yellow Theme)
   Matching the desktop app: --accent: #ffd400
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0d13;
  --bg-card: rgba(12, 13, 19, 0.85);
  --bg-input: #10121b;
  --border: rgba(255, 212, 0, 0.12);
  --border-focus: rgba(255, 212, 0, 0.5);
  --accent: #ffd400;
  --accent-bright: #ffe666;
  --accent-dim: rgba(255, 212, 0, 0.15);
  --accent-glow: rgba(230, 190, 0, 0.4);
  --accent-purple: #a78bfa;
  --text-primary: #ffffff;
  --text-secondary: #b4c5cb;
  --text-dim: #6e7a8a;
  --danger: #ff2a2a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(255, 212, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animation::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.05) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float1 15s ease-in-out infinite alternate;
}

.bg-animation::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: float2 18s ease-in-out infinite alternate;
}

@keyframes float1 {
  to {
    transform: translate(-100px, 100px) scale(1.2);
  }
}

@keyframes float2 {
  to {
    transform: translate(80px, -80px) scale(0.9);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.navbar-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-logo-animated {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  animation: kokaLogoCycle 25s ease-in-out infinite;
  will-change: transform, filter;
}

.navbar-brand-text {
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  .navbar-logo-animated {
    animation: none;
  }
}

@keyframes kokaLogoCycle {
  /* 1 — nabız */
  0% { transform: scale(1) rotate(0deg); filter: brightness(1) drop-shadow(0 0 0 transparent); }
  8% { transform: scale(1.12) rotate(0deg); }
  18% { transform: scale(1) rotate(0deg); }
  /* 2 — tam tur */
  20% { transform: rotate(0deg); }
  28% { transform: rotate(360deg) scale(1.08); }
  38% { transform: rotate(360deg) scale(1); }
  /* 3 — yukarı sıçrama */
  40% { transform: translateY(0); }
  48% { transform: translateY(-10px); }
  58% { transform: translateY(0); }
  /* 4 — altın parlama */
  60% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  68% { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(255, 212, 0, 0.8)); }
  78% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  /* 5 — hafif sallanma */
  80% { transform: translateX(0) rotate(0deg); }
  84% { transform: translateX(-5px) rotate(-8deg); }
  88% { transform: translateX(5px) rotate(8deg); }
  92% { transform: translateX(-3px) rotate(-4deg); }
  96% { transform: translateX(0) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.navbar-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-links .btn-nav-primary {
  background: linear-gradient(135deg, var(--accent), #ccaa00);
  color: #000;
  font-weight: 700;
  padding: 8px 20px;
}

.navbar-links .btn-nav-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Mobil menü — hamburger (geniş ekranda gizli) */
.navbar-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-toggle:hover {
  background: rgba(255, 212, 0, 0.12);
  border-color: rgba(255, 212, 0, 0.35);
}

.navbar-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.navbar-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.nav-open .navbar-toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.navbar.nav-open .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
}

body.nav-menu-open {
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ccaa00);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 212, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 212, 0, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 212, 0, 0.06);
}

.btn-danger {
  background: rgba(255, 42, 42, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 42, 42, 0.2);
}

/* ===== FEATURES / PRICING ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-card .badge-free {
  display: inline-block;
  background: rgba(0, 200, 100, 0.1);
  color: #00cc66;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 12px;
}

.feature-card .badge-premium {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 12px;
}

/* ===== PRICING ===== */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 212, 0, 0.08);
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 900;
  margin: 20px 0 8px;
  color: var(--accent);
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 28px 0;
}

.pricing-card ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card ul li i {
  color: var(--accent);
  font-size: 14px;
}

/* ===== AUTH FORMS ===== */
.auth-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== DASHBOARD ===== */
.dashboard {
  position: relative;
  z-index: 1;
  padding: 100px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge.premium {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 212, 0, 0.25);
}

.status-badge.free {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.dash-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dash-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.dash-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dash-info-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-info-item span {
  font-size: 15px;
  font-weight: 600;
}

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}

.alert.show {
  display: block;
}

.alert-error {
  background: rgba(255, 42, 42, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 42, 42, 0.2);
}

.alert-success {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 212, 0, 0.2);
}

/* ===== SKIP LINK (erişilebilirlik) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.footer-site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-site h4 {
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-site a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-site a:hover {
  color: var(--accent);
}

.footer-site .footer-brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .footer-site {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-site {
    grid-template-columns: 1fr;
  }
}

/* ===== İÇ SAYFA (yasal) ===== */
.page-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
}
.page-legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
}
.page-legal .lead {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}
.page-legal h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--text-primary);
}
.page-legal p,
.page-legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.page-legal ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.hero-elevated {
  padding-top: 88px;
  padding-bottom: 48px;
}

.hero-pitch {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip i {
  color: var(--accent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 32px auto 0;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
}
.step-card .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.founder-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 28px;
  background: linear-gradient(145deg, rgba(255, 212, 0, 0.06), rgba(167, 139, 250, 0.04));
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}
.founder-block p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.founder-block .name {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  margin-top: 8px;
}

/* Dar / mobil: üst menü hamburger + tam genişlik panel */
@media (max-width: 900px) {
  .navbar {
    padding: 0 14px;
    height: 56px;
  }

  .navbar-brand {
    font-size: 15px;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .navbar-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-logo-animated {
    width: 32px;
    height: 32px;
  }

  .navbar-toggle {
    display: flex;
    flex-direction: column;
  }

  .navbar-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0));
    margin: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-links.is-open {
    display: flex;
  }

  .navbar-links a {
    padding: 14px 16px;
    font-size: 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .navbar-links .btn-nav-primary {
    margin-top: 12px;
    text-align: center;
    padding: 14px 20px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero {
    padding: 80px 16px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .auth-card {
    margin: 80px 16px 40px;
    padding: 24px 20px;
  }

  .auth-card h2 {
    font-size: 20px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-sub {
    font-size: 14px;
  }

  .dash-info-grid {
    grid-template-columns: 1fr;
  }

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

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

  .pricing-card {
    padding: 24px 20px;
  }

  .download-card {
    padding: 24px 20px;
  }
}