/* =============================================
   Capsly — www.capsly.app ortak stil
   Marka paleti: lacivert (#07101F) + elektrik mavi (#2B6BE8)
   ============================================= */

:root {
  --bg: #07101F;
  --bg-alt: #0C1829;
  --surface: #ffffff;
  --text: #0D1829;
  --text-muted: #6B7E99;
  --text-inverse: #ffffff;
  --primary: #2B6BE8;
  --primary-hover: #1A4FBD;
  --primary-soft: #4A87DC;
  --accent: #4A87DC;
  --accent-soft: #7AAAE8;
  --highlight: #E6EEFB;
  --border: #D5DEF0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(43, 107, 232, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(7, 16, 31, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: var(--text-inverse);
  padding: 16px 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .logo {
  display: inline-flex;
  align-items: center;
}
.nav .logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(1.05) drop-shadow(0 2px 8px rgba(43, 107, 232, 0.35));
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav ul a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}
.nav ul a:hover { color: var(--text-inverse); }

/* --- Hero --- */
.hero {
  background: radial-gradient(ellipse at top, #0B1754 0%, #07101F 70%);
  color: var(--text-inverse);
  padding: 72px 0 120px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(43, 107, 232, 0.32) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(43, 107, 232, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero .hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 0 20px;
  display: block;
  position: relative;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(43, 107, 232, 0.45);
}
.hero .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 107, 232, 0.18);
  border: 1px solid rgba(43, 107, 232, 0.4);
  color: #A8C4F5;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4A87DC 0%, #2B6BE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}
.hero .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2B6BE8 0%, #4A87DC 100%);
  color: var(--text-inverse);
  box-shadow: 0 8px 24px rgba(43, 107, 232, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1A4FBD 0%, #2B6BE8 100%);
  color: var(--text-inverse);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* --- Features --- */
.features {
  padding: 96px 0;
  background: #F5F7FB;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(43, 107, 232, 0.15);
}
.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 107, 232, 0.14) 0%, rgba(74, 135, 220, 0.1) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- How it works --- */
.how {
  padding: 96px 0;
  background: var(--surface);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.step {
  text-align: center;
}
.step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2B6BE8 0%, #4A87DC 100%);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(43, 107, 232, 0.35);
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}
.step p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- CTA strip --- */
.cta-strip {
  padding: 80px 0;
  background: linear-gradient(135deg, #0C1829 0%, #07101F 100%);
  color: var(--text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(43, 107, 232, 0.24) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  font-size: 17px;
  position: relative;
}
.cta-strip .btn { position: relative; }

/* --- Footer --- */
footer {
  background: #040D1A;
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
  font-size: 14px;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  color: var(--text-inverse);
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: rgba(255, 255, 255, 0.6); }
footer ul a:hover { color: var(--text-inverse); }
footer .brand p { max-width: 320px; }
footer .brand .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
footer .brand .brand-row img { width: 32px; height: 32px; border-radius: 8px; }
footer .brand .brand-row h4 { margin: 0; }
footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Legal pages --- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.legal-page .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-page p { margin-bottom: 14px; color: #1A2A45; }
.legal-page ul, .legal-page ol {
  margin-left: 24px;
  margin-bottom: 14px;
}
.legal-page li { margin-bottom: 6px; color: #1A2A45; }
.legal-page .toc {
  background: var(--highlight);
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 32px;
  border: 1px solid rgba(43, 107, 232, 0.12);
}
.legal-page .toc h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.legal-page .toc ol {
  margin: 0; padding-left: 20px;
}
.legal-page .toc a { color: var(--text); }
.legal-page .toc a:hover { color: var(--primary); }

/* --- Error page --- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.error-page .code {
  font-size: 96px;
  font-weight: 800;
  background: linear-gradient(135deg, #2B6BE8 0%, #4A87DC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.error-page h1 {
  font-size: 28px;
  margin: 16px 0 8px;
  font-weight: 700;
}
.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --- Dil switcher --- */
.nav ul li.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nav ul li.lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.nav ul li.lang-switch a:hover {
  color: var(--text-inverse);
}
.nav ul li.lang-switch a.active {
  color: var(--text-inverse);
  background: rgba(43, 107, 232, 0.28);
}
.nav ul li.lang-switch .lang-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

/* --- Dil onerisi banner --- */
.lang-suggestion {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0C1829;
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  z-index: 1000;
  animation: lang-suggestion-in 0.25s ease;
}
@keyframes lang-suggestion-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.lang-suggestion-msg { opacity: 0.82; }
.lang-suggestion-accept {
  color: var(--text-inverse);
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.lang-suggestion-accept:hover { background: var(--primary-hover); color: var(--text-inverse); }
.lang-suggestion-dismiss {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.lang-suggestion-dismiss:hover { color: var(--text-inverse); }

/* --- Responsive --- */
@media (max-width: 720px) {
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .hero .hero-logo { width: 80px; height: 80px; border-radius: 18px; }
  .nav .logo img { height: 28px; }
  .features, .how { padding: 64px 0; }
  .section-title h2 { font-size: 28px; }
  .cta-strip h2 { font-size: 26px; }
  .nav ul { gap: 16px; }
  .nav ul li:first-child { display: none; }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .legal-page h1 { font-size: 28px; }
  .lang-suggestion {
    bottom: 12px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
