/* DeckMe — Public Site Styles
 * Renkler: Deep purple #6B2D8B, Coral #FF6B6B
 * Karanlık tema öncelikli
 */

:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #14141c;
  --color-bg-card: #1c1c28;
  --color-purple: #6B2D8B;
  --color-purple-light: #8B4DAB;
  --color-purple-dark: #4A1F62;
  --color-coral: #FF6B6B;
  --color-coral-light: #FF8B8B;
  --color-text: #f5f5f7;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-border: #2a2a36;
  --color-success: #10b981;
  --gradient-hero: linear-gradient(135deg, #6B2D8B 0%, #FF6B6B 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(107, 45, 139, 0.15) 0%, rgba(255, 107, 107, 0.08) 100%);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(107, 45, 139, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1100px;
  --max-width-text: 760px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--color-coral);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-coral-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-text);
}

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.navbar-brand:hover {
  color: var(--color-text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.navbar-links a:hover {
  color: var(--color-text);
}

/* === Hero === */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(107, 45, 139, 0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(107, 45, 139, 0.2);
  border: 1px solid rgba(107, 45, 139, 0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-purple-light);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

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

/* === App Store Badge (placeholder) === */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: white;
  color: black;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

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

.app-store-badge-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-store-badge-label small {
  font-size: 11px;
  font-weight: 400;
  color: #555;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--color-purple-light);
  background: rgba(107, 45, 139, 0.1);
  color: var(--color-text);
}

/* === Features === */
.features {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 45, 139, 0.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(107, 45, 139, 0.3);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* === CTA Section === */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-card {
  background: var(--gradient-subtle);
  border: 1px solid rgba(107, 45, 139, 0.3);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: var(--color-text-secondary);
  font-size: 17px;
  margin-bottom: 32px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-top: 60px;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, auto));
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* === Legal / Document Pages === */
.doc-page {
  padding: 60px 0 80px;
}

.doc-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.doc-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.doc-header .doc-meta {
  color: var(--color-text-muted);
  font-size: 14px;
}

.doc-content {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}

.doc-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.doc-content p {
  margin-bottom: 14px;
  color: var(--color-text-secondary);
}

.doc-content ul,
.doc-content ol {
  margin: 12px 0 18px 0;
  padding-left: 24px;
  color: var(--color-text-secondary);
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content li::marker {
  color: var(--color-purple-light);
}

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

.doc-content code {
  background: var(--color-bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  color: var(--color-coral-light);
}

.doc-content blockquote {
  border-left: 3px solid var(--color-purple);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--color-bg-elevated);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
}

.callout {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-coral);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.callout-title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc ol li {
  margin-bottom: 6px;
  font-size: 14px;
}

.toc a {
  color: var(--color-text-secondary);
}

.toc a:hover {
  color: var(--color-coral);
}

/* === FAQ === */
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-coral);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item-body {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item-body p {
  margin-bottom: 10px;
}

.faq-item-body p:last-child {
  margin-bottom: 0;
}

/* === Contact box === */
.contact-box {
  background: var(--gradient-subtle);
  border: 1px solid rgba(107, 45, 139, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.contact-box h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-box p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.contact-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-coral);
  padding: 10px 20px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: var(--radius-sm);
}

/* === Responsive === */
@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .features,
  .cta-section {
    padding: 56px 0;
  }

  .navbar-links {
    gap: 16px;
  }

  .navbar-links a {
    font-size: 14px;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-content h2 {
    font-size: 20px;
  }

  .doc-content h3 {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .navbar-links {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .app-store-badge,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
