/* AutoZATCA product landing — self-contained styles */
:root {
  --teal-900: #064e48;
  --teal-800: #0b5f56;
  --teal-700: #0f766e;
  --teal-600: #14857c;
  --ink: #14201e;
  --ink-soft: #3a4a47;
  --sand: #e7efe9;
  --sand-deep: #d3e0d8;
  --paper: #f4f8f5;
  --amber: #c4a035;
  --white: #ffffff;
  --max: 1080px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-900);
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  background: rgba(15, 118, 110, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 248, 245, 0.88);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-800);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--teal-700);
}

/* Hero — one composition, brand first, full-bleed atmosphere */
.hero {
  position: relative;
  min-height: min(100vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(196, 160, 53, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(20, 133, 124, 0.45), transparent 50%),
    linear-gradient(145deg, #053f3a 0%, #0f766e 48%, #0a5c56 100%);
  animation: hero-shift 18s ease-in-out infinite alternate;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: grid-drift 28s linear infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: max(4%, 2rem);
  bottom: 12%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.12) 18px,
      rgba(255, 255, 255, 0.12) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.12) 18px,
      rgba(255, 255, 255, 0.12) 20px
    );
  transform: rotate(-8deg);
  animation: motif-float 10s ease-in-out infinite alternate;
}

.hero-content {
  padding: 7rem 0 5rem;
  max-width: 40rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  margin-right: auto;
  width: min(100% - 2.5rem, 40rem);
  animation: rise-in 0.9s ease-out both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: rgba(235, 245, 242, 0.92);
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--teal-800);
}

.btn-primary:hover {
  background: var(--sand);
  color: var(--teal-900);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Features */
.features {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
}

.features h2,
.install h2,
.ar-section h2,
.support h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--teal-900);
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem 1.5rem;
}

.feature-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--teal-700);
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Install */
.install {
  padding: 4.5rem 0;
  background: var(--white);
}

.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.steps li {
  margin-bottom: 0.75rem;
}

.install-aside {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
}

.install-aside pre {
  margin: 0 0 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.install-aside code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.aside-note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(230, 240, 236, 0.88);
}

/* Arabic */
.ar-section {
  padding: 4.5rem 0;
  background:
    linear-gradient(165deg, #0c4f49 0%, #12756c 55%, #0a5a53 100%);
  color: var(--white);
}

.ar-section h2 {
  color: var(--white);
}

.ar-section .section-lede {
  color: rgba(235, 245, 242, 0.92);
}

.ar-points {
  margin: 0 0 1.5rem;
  padding-right: 1.2rem;
  padding-left: 0;
  color: rgba(235, 245, 242, 0.95);
  font-size: 1.08rem;
}

.ar-points li {
  margin-bottom: 0.65rem;
}

.ar-note {
  margin: 0;
  color: rgba(220, 235, 230, 0.85);
  font-size: 0.98rem;
}

.ar-section code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Support */
.support {
  padding: 4.5rem 0;
  background: var(--sand);
}

.support-inner {
  max-width: 42rem;
}

.support p {
  color: var(--ink-soft);
}

.honest {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 118, 110, 0.2);
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: rgba(230, 240, 236, 0.85);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer code {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Motion */
@keyframes hero-shift {
  from { filter: saturate(1); }
  to { filter: saturate(1.08) brightness(1.03); }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 28px, 28px 56px; }
}

@keyframes motif-float {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero-bg::after {
    width: 260px;
    height: 260px;
    opacity: 0.55;
    right: -2rem;
    bottom: 18%;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 6rem 0 3.5rem;
  }
}

@media (max-width: 560px) {
  .site-header nav {
    display: none;
  }

  .brand-mark {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg,
  .hero-bg::before,
  .hero-bg::after,
  .hero-content,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
