/* Vandly product page — home layout language + Vandly brand colors */
:root {
  --bg: #060d1c;
  --surface: #0d1830;
  --surface-2: #122040;
  --blue: #1a6bff;
  --blue-deep: #0d47c9;
  --teal: #00d4c8;
  --teal-soft: #5eead4;
  --orange: #ff8a1f;
  --ink: #eef4ff;
  --ink-muted: #8fa0c0;
  --border: rgba(0, 212, 200, 0.18);
  --glow: 0 0 26px rgba(0, 212, 200, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.55em;
}

.mono { font-family: "Space Mono", monospace; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.grad {
  background: linear-gradient(120deg, var(--teal-soft), var(--teal) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1rem;
  background: rgba(0, 212, 200, 0.06);
}

/* Atmosphere */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 212, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 100%);
}

.nodes-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px 3px rgba(0, 212, 200, 0.4);
  opacity: 0.4;
  animation: nodeFloat var(--dur, 14s) ease-in-out infinite alternate,
             nodePulse 3s ease-in-out infinite;
}

@keyframes nodeFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(var(--dx, 20px), var(--dy, -30px)); }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.55; }
}

/* Header — like home */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 200, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
}

.main-nav {
  display: none;
  gap: 1.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--teal-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 4% 1.1rem;
  border-top: 1px solid rgba(0, 212, 200, 0.1);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.3rem;
}

.mobile-menu .btn { text-align: center; margin-top: 0.35rem; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

.hide-mobile-sm { display: none; }
@media (min-width: 700px) {
  .hide-mobile-sm { display: inline-block; }
}

/* Lang */
.lang-switch { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--teal-soft);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover { border-color: var(--teal); box-shadow: var(--glow); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.3rem;
  z-index: 60;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.lang-menu[hidden] { display: none; }

.lang-option {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.lang-option:hover,
.lang-option[aria-selected="true"] { color: var(--teal); background: rgba(0, 212, 200, 0.08); }

/* Buttons — same shape/placement as home */
.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(120deg, var(--teal-soft), var(--teal) 40%, var(--blue) 100%);
  color: #04101f;
  box-shadow: 0 6px 22px rgba(0, 212, 200, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 212, 200, 0.5), 0 8px 24px rgba(26, 107, 255, 0.3);
}

.btn-ghost,
.btn-secondary {
  background: transparent;
  color: var(--teal-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: var(--teal);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-hint {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Hero — centered like home */
.hero {
  padding: 8.8rem 0 4.5rem;
  text-align: center;
}

.hero-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 212, 200, 0.28));
}

.float { animation: float 5.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-tag {
  color: var(--teal);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.8vw, 3.1rem);
  font-weight: 900;
  max-width: 16ch;
  margin-inline: auto;
}

.hero-lead {
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.app-frame {
  margin: 2.4rem auto 0;
  width: min(920px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1e3a, #0a162c);
  border: 1px solid rgba(0, 212, 200, 0.22);
  box-shadow:
    0 0 0 1px rgba(26, 107, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 212, 200, 0.12);
}

.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  background: rgba(8, 18, 36, 0.92);
  border-bottom: 1px solid rgba(0, 212, 200, 0.12);
}

.app-frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(143, 160, 192, 0.35);
}

.app-frame-bar span:nth-child(1) { background: #ff5f57; }
.app-frame-bar span:nth-child(2) { background: #febc2e; }
.app-frame-bar span:nth-child(3) { background: #28c840; }

.app-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Sections */
.section { padding: 4.4rem 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(18, 32, 64, 0.55), transparent);
  border-block: 1px solid rgba(0, 212, 200, 0.08);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.6rem;
}

.section-head h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.section-head p { color: var(--ink-muted); margin: 0; }

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--glow);
}

.feature-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--teal);
  background: rgba(0, 212, 200, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

/* Process */
.process-track {
  display: grid;
  gap: 1.2rem;
  position: relative;
}

@media (min-width: 800px) {
  .process-track { grid-template-columns: repeat(3, 1fr); }
  .process-track::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    inset-inline: 2rem;
    border-top: 2px dashed rgba(0, 212, 200, 0.28);
  }
}

.step {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  position: relative;
  z-index: 1;
}

.step-num {
  display: inline-block;
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 16px rgba(255, 138, 31, 0.4);
}

.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }

/* Gallery */
.gallery {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--glow);
}

.shot-frame {
  aspect-ratio: 16 / 10;
  background: #070f1c;
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-meta { padding: 0.9rem 1rem 1.05rem; }
.shot-meta h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.shot-meta p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 200, 0.1);
  border-radius: 14px;
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-family: "Tajawal", sans-serif;
  padding: 0.95rem 0;
  list-style: none;
}

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

.faq-body {
  color: var(--ink-muted);
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

/* CTA */
.cta-box {
  text-align: center;
  background:
    radial-gradient(ellipse 55% 90% at 50% 0%, rgba(0, 212, 200, 0.14), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3.2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cta-box h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.cta-box > p { color: var(--ink-muted); max-width: 34rem; margin: 0 auto 1.6rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 212, 200, 0.12);
  padding-top: 2.8rem;
  background: rgba(6, 13, 28, 0.9);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
}

.footer-brand-col p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 26rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h4 {
  color: var(--teal-soft);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 212, 200, 0.08);
  padding-block: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* Modal */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  inset-inline-end: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.modal-panel h3 { margin-top: 0.2rem; }
.modal-panel > p { color: var(--ink-muted); }

.lead-form { display: grid; gap: 0.85rem; margin-top: 1rem; }

.lead-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.lead-field input {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.lead-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.15);
}

.lead-error { color: #fb7185; font-size: 0.85rem; margin: 0; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .float, .node { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
