:root {
  --bg-color: #050507;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-primary: #7000ff;
  --accent-secondary: #00c6ff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Outfit", sans-serif;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
.background-gradient {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.15) 0%,
    rgba(5, 5, 7, 0) 70%
  );
  filter: blur(80px);
  z-index: -1;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

/* Header */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 7, 0.7);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
}

.header-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(112, 0, 255, 0.4));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: white;
}

/* Buttons */
.btn-primary-small {
  background: white;
  color: black !important;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: background 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--glass-bg);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: white;
  color: black;
}

/* Sections */
section {
  padding: 6rem 1rem;
  display: flex;
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: var(--max-width);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  padding-top: 15vh;
  text-align: center;
  align-items: flex-start;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Features */
.features-section h2,
.support-section h2,
.pricing-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Password Manager Features Grid */
.pm-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  text-align: left;
}

.pm-feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.pm-feature-item p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.pm-highlight {
  color: var(--accent-secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .pm-features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Support */
.support-section {
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.02),
    transparent
  );
}

.support-section p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Pricing */
.pricing-section {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  background: rgba(112, 0, 255, 0.05);
  box-shadow: 0 0 30px rgba(112, 0, 255, 0.1);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.glass-card {
  backdrop-filter: blur(10px);
}

.badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-sub {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
}

.features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dedede;
}

.full-width {
  width: 100%;
}

.pricing-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.play-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.play-store-badge:hover {
  transform: scale(1.05);
}

.play-store-badge img {
  height: 60px;
  width: auto;
}

.in-app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 202px; /* Matches Google Play aspect ratio at 60px */
  background-color: black;
  border: 1.2px solid #a6a6a6; /* Exact Google Play badge border color and thickness */
  border-radius: 7.5px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-inline-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-inline-links .dot {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.footer-icons a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icons a:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-icons a[aria-label="Apple App Store"] {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem;
  }

  .nav-links {
    display: none; /* Mobile menu implementation omitted for MVP simplicity */
  }

  .cta-group {
    flex-direction: column;
  }

  .footer-content {
    text-align: center;
  }
}

/* Logo */
.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 15px rgba(112, 0, 255, 0.4));
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

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

.hero-section {
  padding-top: 12vh; /* Adjusted for header */
}

/* Override previous hero text center alignment */
.hero-section h1 {
  font-size: 3.5rem; /* Slightly smaller to fit */
  margin-bottom: 1.5rem;
}

.hero-sub {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-group {
  justify-content: flex-start;
  margin-bottom: 3rem;
}

/* Trust Row */
.trust-row {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-icon {
  font-size: 1.5rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  border-radius: 20px; /* If image needs rounding */
}

/* Mobile Responsive Updates */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .cta-group {
    justify-content: center;
  }

  .trust-row {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Page Headers */
.page-header {
  text-align: center;
  padding-top: 12vh;
  padding-bottom: 1.5rem;
  min-height: auto;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* FAQ Styling */
.support-overview {
  padding-top: 2.5rem;
  display: block;
}

.support-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.support-quick-card {
  width: 100%;
}

.support-quick-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 18px;
  text-decoration: none;
  color: white;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.support-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.support-quick-icon {
  font-size: 1.5rem;
}

.support-body {
  padding-top: 2rem;
  display: block;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.support-nav {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}

.support-nav h4 {
  margin-bottom: 1rem;
}

.support-nav a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.support-nav a:visited {
  color: var(--text-secondary);
}

.support-nav a:hover {
  color: white;
}

.support-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.faq-section {
  padding-top: 2rem;
}

.support-main .faq-section {
  padding-top: 0;
}

.support-main {
  width: 100%;
  max-width: 940px;
  justify-self: start;
}

.support-search {
  margin: 1.5rem 0 2rem;
}

.support-search input {
  width: 100%;
  max-width: 560px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-size: 0.95rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 100%;
  margin: 0;
  align-items: start;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
}

.faq-category {
  margin: 2.5rem 0 1rem;
  color: var(--accent-secondary);
  font-size: 1.3rem;
  width: 100%;
  display: block;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  align-self: flex-end;
  color: var(--accent-secondary);
  margin-top: -1.4rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-short {
  font-weight: 400;
  color: var(--text-secondary);
}

.faq-answer {
  margin-top: 1rem;
}

.faq-answer p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.faq-item ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.faq-item li {
  margin-bottom: 0.5rem;
}

.faq-item.is-hidden {
  display: none;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-note {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Policy */
.policy-section {
  padding-top: 0.75rem;
}

.policy-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-border);
  padding: 2.25rem;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.policy-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.policy-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.policy-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.policy-card li {
  margin-bottom: 0.5rem;
}

.policy-links {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.policy-links a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
}

.policy-links a:hover {
  color: white;
}

.contact-box {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem;
  background: rgba(112, 0, 255, 0.05);
  border-radius: 20px;
  border: 1px solid var(--accent-primary);
}

.contact-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-nav {
    position: static;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

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

.support-main section {
  display: block;
}

/* Active State */
.nav-links a.active {
  color: white;
  border-bottom: 2px solid var(--accent-secondary);
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem; /* Increase hover hit area to prevent dropdown closing */
  margin-bottom: -1rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(5, 5, 7, 0.95);
  min-width: 240px;
  box-shadow: 0px 8px 24px 0px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  z-index: 1000;
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
}

.dropdown-content a {
  color: var(--text-secondary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--glass-bg);
  color: white;
  border-bottom: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Recovery Section */
.recovery-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.recovery-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  height: 300px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.doc-stack {
  position: relative;
  width: 220px;
  height: 200px;
}

.doc-sheet {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(0) rotate(0deg);
}

.doc-sheet.back {
  transform: translate(-16px, 12px) rotate(-6deg);
  opacity: 0.4;
}

.doc-sheet.mid {
  transform: translate(10px, -8px) rotate(4deg);
  opacity: 0.6;
}

.doc-sheet.front {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: float 6s ease-in-out infinite;
}

.doc-chip {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.qr-block {
  width: 100%;
  height: 90px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%) 0
      0/14px 14px,
    linear-gradient(rgba(255, 255, 255, 0.12) 25%, transparent 25%) 0 0/14px
      14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.doc-lines span {
  display: block;
  height: 6px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.doc-lines span:nth-child(2) {
  width: 80%;
}

.doc-lines span:nth-child(3) {
  width: 60%;
}

.recovery-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.recovery-list {
  list-style: none;
  margin-bottom: 2rem;
}

.recovery-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.recovery-list li::before {
  content: "➢";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.recovery-note {
  font-style: italic;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  color: white;
}

@media (max-width: 900px) {
  .recovery-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .recovery-list {
    text-align: left;
    display: inline-block;
  }
}
