:root {
  --color-navy: #14213D;
  --color-navy-dark: #0B1526;
  --color-orange: #F26B1F;
  --color-orange-dark: #D94E0A;
  --color-green: #1F9D55;
  --color-text: #1A1A1A;
  --color-text-muted: #4A5568;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F6F7FB;
  --color-border: #E2E5EC;
  --radius: 12px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

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

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-navy);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.nav a:hover {
  color: var(--color-navy);
}

.nav-cta {
  background: var(--color-orange);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--color-orange-dark);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch a {
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 4px 6px;
  border-radius: 6px;
}

.lang-switch a:hover {
  color: var(--color-navy);
  background: var(--color-bg-soft);
}

.lang-switch a.lang-current {
  color: var(--color-navy);
  background: var(--color-bg-soft);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding: 76px 0 80px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(1.8rem, 2.9vw, 2.5rem);
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.accent {
  color: var(--color-orange);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

/* Abstract hero visual — value-proposition card, no screenshots */
.hero-visual {
  position: relative;
}

.value-card {
  background: linear-gradient(155deg, var(--color-navy) 0%, #1B2E52 100%);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 48px -20px rgba(20, 33, 61, 0.45), 0 4px 12px rgba(20, 33, 61, 0.12);
  color: #fff;
}

.value-card-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F2B489;
  margin-bottom: 22px;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.value-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-orange { stroke: var(--color-orange); }
.icon-green { stroke: var(--color-green); }
.icon-navy { stroke: var(--color-navy); }

/* Story diagrams — inline stroke-SVG schematics, no fake UI */
.diagram-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.diagram {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.d-axis { stroke: var(--color-border); stroke-width: 2; }
.d-threshold { stroke: var(--color-orange); stroke-width: 1.5; stroke-dasharray: 5 5; }
.d-thin { stroke: var(--color-border); stroke-width: 1.5; }

.d-bar-ok { fill: var(--color-green); stroke: none; }
.d-bar-alert { fill: var(--color-orange); stroke: none; }

.d-node-ok { fill: var(--color-green); stroke: none; }
.d-node-alert { fill: var(--color-orange); stroke: none; }
.d-node-muted { fill: #fff; stroke: var(--color-border); stroke-width: 2; }
.d-panel { fill: #fff; stroke: var(--color-border); stroke-width: 2; }

.d-icon-navy { stroke: var(--color-navy); stroke-width: 1.6; fill: none; }
.d-icon-muted { stroke: var(--color-text-muted); stroke-width: 1.6; fill: none; }
.d-icon-white { stroke: #fff; stroke-width: 1.8; fill: none; }
.d-icon-alert { stroke: #fff; stroke-width: 1.8; fill: none; }

.d-dot-orange { fill: var(--color-orange); stroke: none; }
.d-dot-green { fill: var(--color-green); stroke: none; }
.d-flame { fill: var(--color-orange); stroke: none; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-orange-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
}

/* Stories (feature sections with real screenshots) */
.stories {
  padding: 80px 0 64px;
}

.stories h2, .faq h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.stories-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.story.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.story.reverse .story-visual {
  order: 2;
}

.story.reverse .story-body {
  order: 1;
}

.story-visual .browser-frame.small {
  box-shadow: 0 16px 32px -18px rgba(20, 33, 61, 0.3), 0 2px 8px rgba(20, 33, 61, 0.06);
  transform: none;
}

.story-body h3 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.story-body p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* Small remaining features — plain list, no card chrome */
.mini-features {
  list-style: none;
  margin: 8px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 32px;
}

.mini-features li {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  padding-left: 16px;
  border-left: 2px solid var(--color-orange);
}

.mini-features strong {
  color: var(--color-navy);
}

/* FAQ */
.faq {
  background: var(--color-bg-soft);
  padding: 72px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--color-navy);
  list-style: none;
  position: relative;
  padding-right: 24px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  color: var(--color-orange);
  font-size: 1.2rem;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 12px 0 0;
  color: var(--color-text-muted);
}

/* CTA */
.cta {
  padding: 80px 0;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
}

.cta h2 {
  color: #fff;
  font-size: 2rem;
}

.cta p {
  color: #C9D2E3;
  margin-bottom: 32px;
}

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

.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta .btn-secondary:hover {
  border-color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: #9AA6BE;
  padding: 32px 0;
  font-size: 0.88rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}

.footer-inner p {
  margin: 0;
}

.kvkk-link {
  text-decoration: underline;
  color: #9AA6BE;
}

.kvkk-link:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-text {
    max-width: none;
  }
  .hero-visual {
    order: -1;
  }
  .story, .story.reverse {
    grid-template-columns: 1fr;
  }
  .story.reverse .story-visual,
  .story.reverse .story-body,
  .story-visual,
  .story-body {
    order: initial;
  }
  .story {
    margin-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 14px;
  }
  .nav > a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .stories, .faq {
    padding: 48px 0;
  }
  .cta {
    padding: 56px 0;
  }
  .mini-features {
    grid-template-columns: 1fr;
  }
}

/* RTL (Arabic) overrides */
[dir="rtl"] .lang-switch {
  border-left: none;
  border-right: 1px solid var(--color-border);
  padding-left: 0;
  padding-right: 12px;
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .mini-features li {
  border-left: none;
  border-right: 2px solid var(--color-orange);
  padding-left: 0;
  padding-right: 16px;
}

[dir="rtl"] summary {
  padding-right: 0;
  padding-left: 24px;
}

[dir="rtl"] summary::after {
  right: auto;
  left: 0;
}

[dir="rtl"] .value-card-eyebrow {
  color: #F2B489;
}
