:root{
  --bg:#0f1720; --bg-alt:#1b1e25; --card:#171923; --accent:#7c5cff; --muted:#9aa6bf; --text:#e6eef8; --gradient-start: #6a5acd; --gradient-end: #4d9a96;
  --maxw:1100px; --radius:12px; font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg, #080c10 0%, #1b1e25 150vh);color:var(--text);-webkit-font-smoothing:antialiased}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(
    500px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(124, 92, 255, 0.06),
    transparent 70%
  );
  z-index: 0;
  pointer-events: none; /* Allows clicking through this layer */
  transition: opacity 0.3s;
}
.wrap{position: relative; z-index: 1;} /* Needed to display the gradient under the content correctly */
.wrap{width: 100%;margin:0 auto;}
header{
  display:flex;align-items:center;justify-content:space-between;padding: 20px 0; width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 1000;
  background-color: rgba(15, 23, 32, 0); /* Start transparent */
  backdrop-filter: blur(0px); /* Start with no blur */
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out, padding 0.3s ease-out, height 0.3s ease-out;
}
.header-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px;}
.logo{display:flex;gap:12px;align-items:center; text-decoration: none; color: var(--text);}
.logo .badge{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end));display:flex;align-items:center;justify-content:center;font-weight:700;color:#041426; transition: transform 0.3s ease-out;}
.logo:hover .badge { transform: rotate(-10deg) scale(1.1); }
.logo h1{font-size:18px;margin:0}
nav { display: flex; gap: 4px; }
nav a{color:var(--muted);text-decoration:none;margin-left:14px;font-size:15px; transition: color 0.2s ease-out; padding: 8px 12px; border-radius: 8px;}
nav a:hover { color: var(--text); background-color: rgba(255,255,255,0.05); }
.hero-wrapper {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 85px); /* 85px is the initial header height (20px*2 padding + content) */
  width: 100%;
  padding: 80px 20px 40px;
  position: relative;
  background: linear-gradient(90deg, #0f1720 0%, #1b1e25 50%, #22282b 100%);
  overflow: hidden;
}
.hero{display:flex; align-items: center; justify-content: space-between; gap: 48px; max-width: var(--maxw); width: 100%; margin: 0 auto;}
.hero-content { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-text { max-width: 480px; text-align: left; }
.hero h2{font-size:42px;margin:0 0 12px; line-height: 1.2; font-weight: 700;}
.hero p{color:var(--muted);margin:0 0 20px;line-height:1.5}
.cta{display:flex;gap:12px; justify-content: flex-start;}
.btn{padding:12px 24px;border-radius:10px;font-weight:600;border:0;cursor:pointer; transition: transform 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out; text-decoration: none; display: inline-block;}
.btn:hover { transform: translateY(-2px); }
.btn-primary{background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.2);}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.btn-ghost{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);color:var(--text);}
.btn-ghost:hover { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.meta{display:flex;gap:10px;color:var(--muted);font-size:13px;margin-top:14px; justify-content: flex-start;}

.hero-image-container {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg-image {
  width: 100%;
  opacity: 0.5;
}
.hero-app-image {
  position: absolute;
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.section-content { display: flex; align-items: center; gap: 48px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section-content-column { display: flex; flex-direction: column; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.info-section:nth-of-type(even) .section-content { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-text h3 { font-size: 28px; margin-top: 0; }
.feature-text p { font-size: 16px; color: var(--muted); line-height: 1.6; }

.feature-visual {
  flex: 1.2;
  height: 320px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.2s ease-out;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
  width: 100%;
}
.download-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease-out, border-color 0.3s ease-out;
}
.download-card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.2); }
.os-icon {
  width: 40px; height: 40px; margin-bottom: 12px;
  filter: brightness(0) invert(1); /* Makes the icon white */
}
.download-card h4 { margin: 0 0 4px; font-size: 18px; }
.download-card .card-muted { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.pricing{display:flex;gap:18px;align-items:flex-start}
.pricing h3 { font-size: 24px; }
.plan{background:var(--card);padding:20px;border-radius:12px;border:1px solid rgba(255,255,255,0.03);flex:1; transition: transform 0.3s ease-out, border-color 0.3s ease-out;}
.plan h3{margin-top:0}
.plan .price{font-size:28px;margin:10px 0 14px}
.faq .q{border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 14px; margin-bottom: 14px; cursor: pointer; overflow: hidden;}
.faq .q-header { display: flex; justify-content: space-between; align-items: center; }
.faq .q-header strong { font-weight: 600; }
.faq .q-answer { max-height: 0; opacity: 0; transform: translateY(-10px); overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.3s ease-out, transform 0.4s ease-out, margin-top 0.4s ease-out; margin-top: 0; line-height: 1.6; }
.faq .q.active .q-answer { max-height: 200px; opacity: 1; transform: translateY(0); margin-top: 12px; }
.faq-icon { font-size: 24px; font-weight: 300; color: var(--muted); transition: transform 0.3s ease-out; }
.faq .q.active .faq-icon { transform: rotate(45deg); color: var(--accent); }
footer{border-top:1px solid rgba(255,255,255,0.03);padding:22px 20px;color:var(--muted);font-size:14px;display:flex;justify-content:space-between;align-items:center; max-width: var(--maxw); margin: 0 auto;}
/* Responsive */
@media (max-width:980px){
  .wrap { padding: 0; }
  header, header.scrolled { padding: 10px 0; }
  .header-wrapper { padding: 0 10px; height: 60px; }
  .hero-wrapper { padding: 80px 20px 40px; min-height: auto; }
  .hero { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
  .cta { justify-content: center; }
  .meta { justify-content: center; }
  .hero-image-container { margin-top: 40px; }
  footer { padding: 20px; flex-direction: column; gap: 10px; text-align: center; }
  .hero h2 { font-size: 32px; }
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg);
    width: 100%;
    flex-direction: column;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .menu-toggle { display: block; position: relative; z-index: 1; }
  .menu-toggle input { display: block; width: 40px; height: 32px; position: absolute; top: -5px; left: -5px; cursor: pointer; opacity: 0; z-index: 2; }
  .menu-toggle .ham { display: block; width: 30px; height: 3px; margin-bottom: 5px; position: relative; background: var(--text); border-radius: 3px; z-index: 1; transform-origin: 4px 0px; transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.55s ease; }
  .menu-toggle .ham:nth-child(2) { transform-origin: 0% 0%; }
  .menu-toggle .ham:nth-child(4) { transform-origin: 0% 100%; }
  .menu-toggle input:checked ~ .ham:nth-child(2) { transform: rotate(45deg) translate(-2px, -1px); }
  .menu-toggle input:checked ~ .ham:nth-child(3) { opacity: 0; transform: rotate(0deg) scale(0.2, 0.2); }
  .menu-toggle input:checked ~ .ham:nth-child(4) { transform: rotate(-45deg) translate(0, -1px); }
  .menu-toggle input:checked + .ham + .ham + .ham + nav { display: flex; }
  .pricing{flex-direction:column}
  .download-cards { grid-template-columns: 1fr; }
  .section-content { flex-direction: column !important; }
}
@media (min-width: 981px) { .menu-toggle { display: none; } }
@media (max-width: 768px) {
  .hero h2 { font-size: 28px; }
  .section-wrapper { padding: 60px 20px; }
  .cta { flex-direction: column; }
  .feature-text h3 { font-size: 24px; }
  .feature-visual { height: 240px; }
}

/* --- Visual section separation --- */
.section-wrapper { padding: 64px 20px; }
.info-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.info-section:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-wrapper.alt-bg {
  background: rgba(27, 30, 37, 0.5);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

header.scrolled {
  background-color: rgba(15, 23, 32, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
}

.plan:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.3); }