:root {
  --brand-blue: #0a66c2;
  --brand-gold: #f5b342;
  --neon-cyan: #00f0ff;
  --dark-bg: #050a14;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.8;
}

/* --- Canvas Background --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}

.nav-logo img {
width: 50px;
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: var(--transition);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-blue), #004080);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Layout & Sections --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
section {
  padding: 6rem 0;
  position: relative;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}
.hero-content {
  max-width: 800px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 3rem;
  margin-top: 3rem;
  animation: float 3s ease-in-out infinite;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--brand-gold);
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), #d49a30);
  color: #000;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 179, 66, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(245, 179, 66, 0.5);
}
.btn-secondary {
  background: var(--glass-bg);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
}

/* --- 3D Tilt Cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.tilt-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.1s ease-out;
  backdrop-filter: blur(10px);
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tilt-card-content {
  transform: translateZ(30px);
}
.tilt-card i {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}
.tilt-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #fff;
}
.tilt-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Demo / Early Access Section --- */
.demo-section {
  background: linear-gradient(
    135deg,
    rgba(10, 102, 194, 0.1),
    rgba(245, 179, 66, 0.05)
  );
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.demo-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--brand-blue);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(10, 102, 194, 0.2);
  position: relative;
  overflow: hidden;
}
.demo-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--brand-blue),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
  opacity: 0.1;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.demo-content {
  position: relative;
  z-index: 2;
}
.demo-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.demo-feat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.demo-feat-item i {
  color: var(--brand-gold);
}

/* --- Features List --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row:nth-child(even) {
  direction: ltr;
}
.feature-row:nth-child(even) > * {
  direction: rtl;
}

.feature-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.feature-text h3 i {
  color: var(--brand-gold);
}
.feature-text ul {
  list-style: none;
}
.feature-text li {
  padding: 0.8rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.feature-text li::before {
  content: "✓";
  color: var(--neon-cyan);
  font-weight: bold;
}
.feature-image {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* --- How it Works (Steps) --- */
.steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.steps-container::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    to left,
    transparent,
    var(--brand-blue),
    transparent
  );
  z-index: 0;
}
.step-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 60px;
  height: 60px;
  background: var(--dark-bg);
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.3);
}
.step-item:hover .step-num {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #000;
  transform: scale(1.1);
}
.step-item h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
}
.faq-question i {
  transition: var(--transition);
  color: var(--brand-gold);
}
.faq-item.show .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  transition:
    max-height 0.4s ease-out,
    padding 0.4s ease-out;
}
.faq-item.show .faq-answer {
  max-height: 500px;
}
.faq-item.show {
  max-height: 500px;
  animation: fadeIn 1.5s linear;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    max-height: 0;
  }
  50% {
    opacity: 0.5;
    max-height: 250px;
  }
  100% {
    opacity: 1;
    max-height: 500px;
  }
}

/* --- Contact Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group label {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
  background: transparent;
  padding: 0 0.5rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  right: 0.8rem;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  background: var(--dark-bg);
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-item i {
  width: 40px;
  height: 40px;
  background: rgba(10, 102, 194, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
}

/* --- Footer --- */
footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
}
.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--brand-gold);
  padding-right: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row:nth-child(even) {
    direction: rtl;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-container::before {
    display: none;
  }
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  .step-item {
    width: 100%;
    max-width: 400px;
    display: flex;
    text-align: right;
    gap: 1.5rem;
  }
  .step-num {
    margin: 0;
    min-width: 60px;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

#formMessage {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
    line-height: 1.6;
}

.alert ul {
    margin: 0;
    padding-right: 1.2rem;
    list-style-type: disc;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}