:root {
  --brand: #2F80D9;
  --brand-light: #5CA4F2;
  --brand-deep: #1B4FA0;
  --sos: #E5484D;
  --rescue: #F5A524;
  --safe: #30A46C;
  --bg: #070D19;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border-glass: rgba(255, 255, 255, 0.13);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --radius-xl: 26px;
  --radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 128, 217, 0.30) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(48, 164, 108, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(245, 165, 36, 0.10) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-top: 16px;
  background: rgba(12, 20, 38, 0.72);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 14px;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 14px rgba(47, 128, 217, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  background: rgba(47, 128, 217, 0.22);
  border: 1px solid rgba(92, 164, 242, 0.45);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lang-switch:hover {
  background: rgba(47, 128, 217, 0.38);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(47, 128, 217, 0.16);
  border: 1px solid rgba(47, 128, 217, 0.4);
  color: #93C5FD;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 128, 217, 0.38);
}

.btn-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}

.stat-chip strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-light);
}

.stat-chip span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 64px auto 32px;
}

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Visual Architecture / How It Works Split Blocks */
.visual-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.visual-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.visual-feature-row.reverse {
  direction: rtl;
}

.visual-feature-row.reverse > * {
  direction: ltr;
}

.visual-feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  display: block;
}

.step-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  background: rgba(47, 128, 217, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(47, 128, 217, 0.4);
}

.step-badge.orange {
  background: rgba(245, 165, 36, 0.18);
  color: #FCD34D;
  border-color: rgba(245, 165, 36, 0.4);
}

.step-badge.green {
  background: rgba(48, 164, 108, 0.18);
  color: #6EE7B7;
  border-color: rgba(48, 164, 108, 0.4);
}

.visual-feature-copy h3 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  margin-bottom: 12px;
  font-weight: 800;
}

.visual-feature-copy p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-bullets li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Interactive Architecture Diagram Banner */
.arch-diagram-box {
  background: rgba(15, 25, 48, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 36px 0;
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.arch-node {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.arch-node-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.arch-node h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.arch-node p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* App Screens Showcase Gallery */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.screen-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.screen-card.wide {
  grid-column: span 2;
}

.screen-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #050912;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.screen-card.wide .screen-img-wrap img {
  aspect-ratio: 16 / 10;
}

.screen-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.screen-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Feature Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 26px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Prose (Privacy & Support) */
.prose-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 32px 0 64px;
}

.prose-card h2 {
  font-size: 1.45rem;
  margin: 26px 0 10px;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose-card ul {
  padding-left: 20px;
}

footer {
  border-top: 1px solid var(--border-glass);
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

[data-lang="en"] {
  display: none;
}

body.lang-en [data-lang="tr"] {
  display: none;
}

body.lang-en [data-lang="en"] {
  display: block;
}

body.lang-en span[data-lang="en"] {
  display: inline;
}

span[data-lang="tr"] {
  display: inline;
}

@media (max-width: 900px) {
  .hero,
  .visual-feature-row {
    grid-template-columns: 1fr;
  }
  .screen-card.wide {
    grid-column: span 1;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
