/* ----- Base Reset ----- */

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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  color: #fdfbff;
  background: radial-gradient(circle at 0% 0%, #c3a7ff 0, #8b7bff 24%, #6c66ff 52%, #4b59ff 100%);
  -webkit-font-smoothing: antialiased;
}

/* ----- Layout ----- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

/* ----- Glass Surface ----- */

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 24px 60px rgba(8, 5, 60, 0.55);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

/* ----- Navbar ----- */

.navbar {
  padding: 1.5rem 0 0.75rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, #eafae8 0, #b5e3b2 32%, #6abf6a 84%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 120%;
  height: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
}

.brand-subtitle {
  font-size: 0.78rem;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: #fdfbff;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(120deg, rgba(255,255,255,0.95), rgba(255,255,255,0.86));
  color: #4b3bff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 14px 40px rgba(9, 4, 70, 0.45);
}

/* ----- Hero ----- */

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.09;
  margin-bottom: 1.1rem;
}

.hero-gradient {
  background: linear-gradient(120deg, #ffffff, #e6ffe4, #ffe9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 34rem;
  opacity: 0.86;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #e7ffe3);
  color: #4b3bff;
  box-shadow: 0 18px 50px rgba(6, 0, 70, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(6, 0, 70, 0.9);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.45);
  color: #ffffff;
}

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

/* Badges & small UI */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 5, 90, 0.55);
  border: 1px solid rgba(250,243,255,0.35);
}

/* ----- Device Mock ----- */

.hero-device {
  position: relative;
  align-self: stretch;
}

.device-card {
  position: relative;
  width: min(360px, 90%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 36px;
  background: radial-gradient(circle at 0 0, #ffe7ff 0, #d3bfff 38%, #7aa7ff 100%);
  box-shadow: 0 24px 80px rgba(10, 0, 80, 0.85);
}

.device-notch {
  width: 40%;
  height: 16px;
  border-radius: 999px;
  margin: 0 auto 0.8rem;
  background: rgba(10, 0, 60, 0.45);
  opacity: 0.88;
}

.device-screen {
  border-radius: 30px;
  background: linear-gradient(180deg, #f9f3ff, #f1e6ff, #f9f9ff 80%);
  padding: 1.05rem;
  color: #150b3b;
}

/* you can tweak these mock elements later if you add real screenshots */
.device-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  background: rgba(150, 126, 255, 0.1);
}

.device-main-fact {
  margin: 1.1rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.device-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  opacity: 0.78;
}

/* ----- Sections ----- */

.section {
  padding: 1.5rem 0 3.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 30rem;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  padding: 1.3rem 1.4rem 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  box-shadow: 0 18px 55px rgba(7, 1, 60, 0.60);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  background: radial-gradient(circle at 0 0, #f6fff4 0, #bff1ca 55%, #6fd093 100%);
  color: #17522c;
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-text {
  font-size: 0.88rem;
  opacity: 0.82;
}

/* ----- Support Layout (support + privacy) ----- */

.page-narrow .section {
  padding-top: 2rem;
}

.text-card {
  padding: 1.8rem 1.6rem 2rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(20, 9, 80, 0.90), rgba(15, 4, 60, 0.96));
  box-shadow: 0 22px 65px rgba(3, 0, 40, 0.9);
}

.text-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.text-card h2 {
  font-size: 1.15rem;
  margin: 1.3rem 0 0.4rem;
}

.text-card p,
.text-card li {
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.9;
}

.text-card ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
}

/* Support specific */

.support-meta {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.support-meta a {
  color: #e7ffef;
}

/* ----- Footer ----- */

.footer {
  margin-top: auto;
  padding: 1.5rem 0 1.9rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
}

/* ----- Factora Accent Variants ----- */

.factora-bg {
  background: radial-gradient(circle at 0% 0%, #f3baff 0, #b390ff 34%, #6f83ff 70%, #4c62ff 100%);
}

.factora-pill {
  background: rgba(94, 60, 255, 0.75);
}

/* ----- Responsive ----- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.4rem;
  }

  .device-card {
    margin-top: 0.6rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}