/* === BASE STYLES === */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #151c2c;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

/* Speye Theme Override (Black background + #ff8ff5 accents) */
body.theme-speye {
  background: #08080a;
  color: #e6e6e8;
}

body.theme-speye header {
  background: #0e0e12;
  border-bottom: 1px solid #1a1a24;
  padding: 1.5rem 1rem 0.85rem;
}

body.theme-speye .policy-card {
  background: #0e0e14;
  border: 1px solid #1c1c28;
  box-shadow: 0 4px 14px rgba(255, 143, 245, 0.04);
}

body.theme-speye .site-footer {
  background: #0e0e12;
  border-top: 1px solid #1a1a24;
}

/* === HEADER === */
header {
  background: #1b223a;
  color: #ff8ff5;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #222f4b;
}

header h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  margin: 0.5rem 0 0;
  letter-spacing: 0.02em;
}

header h1 .bracket {
  color: #ffffff;
}

header h1 .title-text {
  color: #ff8ff5;
}

.header-breadcrumb-wrap {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  display: flex;
  justify-content: flex-start;
  font-family: system-ui, sans-serif;
  align-items: center;
}

.header-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ff8ff5;
  color: #121212;
  text-decoration: none;
  flex: 0 0 auto;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

.header-home:hover {
  transform: scale(1.05);
}

.header-home svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7c7c7;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 0.35rem;
  opacity: 0.65;
}

.breadcrumbs a,
.breadcrumbs span {
  color: #e0e0e0;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  color: #ff8ff5;
  font-weight: 600;
}

/* === SPEYE LOGO HEADER === */
.speye-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
}

.speye-logo-large {
  width: 220px;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
}

.speye-title {
  font-family: 'Roboto', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.speye-subtitle {
  color: #ff8ff5;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === MAIN LAYOUT === */
main {
  flex: 1 0 auto;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  box-sizing: border-box;
}

/* === LINKS & BUTTONS === */
a {
  color: #ff8ff5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #192036;
  border: 1px solid #ff8ff5;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px #664f64;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #ff8ff5;
  text-decoration: none;
}

.pill-primary {
  background: linear-gradient(135deg, rgba(255, 143, 245, 0.25), rgba(64, 153, 255, 0.15));
  border-color: rgba(255, 143, 245, 0.55);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 143, 245, 0.12);
  border: 1px solid rgba(255, 143, 245, 0.35);
  color: #ff8ff5;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* === APP PORTAL GRID === */
.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: #ff8ff5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 143, 245, 0.4), transparent);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: rgba(27, 34, 58, 0.75);
  border: 1px solid #222f4b;
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 143, 245, 0.15);
  border-color: #ff8ff5;
  text-decoration: none;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 143, 245, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.app-info {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

.app-tag {
  font-size: 0.78rem;
  color: #ff8ff5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.app-desc {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1 0 auto;
}

.app-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff8ff5;
  margin-top: auto;
}

.app-action svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.app-card:hover .app-action svg {
  transform: translateX(4px);
}

/* === NAV TABS === */
.nav-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #1c1c28;
  padding-bottom: 0.5rem;
}

.nav-tab {
  background: transparent;
  border: none;
  color: #a0a0a0;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 143, 245, 0.08);
}

.nav-tab.active {
  color: #ff8ff5;
  background: rgba(255, 143, 245, 0.15);
  box-shadow: inset 0 -2px 0 #ff8ff5;
}

/* === POLICY CARDS === */
.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222f4b;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.policy-card {
  background: rgba(27, 34, 58, 0.75);
  border: 1px solid #222f4b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px #404f7a;
}

.policy-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #ff8ff5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-card h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 143, 245, 0.4), transparent);
}

.policy-card p {
  line-height: 1.65;
  color: #d0d4dc;
  margin: 0 0 1rem;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #d0d4dc;
  line-height: 1.65;
}

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

.highlight-box {
  background: rgba(255, 143, 245, 0.08);
  border-left: 3px solid #ff8ff5;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  color: #e0e0e0;
  font-size: 0.93rem;
}

/* === FAQ ACCORDION === */
.faq-group {
  margin-bottom: 2rem;
}

.faq-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff8ff5;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item {
  background: #0e0e14;
  border: 1px solid #1c1c28;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 143, 245, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  stroke: #ff8ff5;
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.25rem;
  color: #a0a0a0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

/* === FOOTER === */
.site-footer {
  background: #1b223a;
  border-top: 1px solid #222f4b;
  margin-top: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #a0a0a0;
}

.site-footer__right {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-footer__sep {
  opacity: 0.7;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 1.25rem 1rem 2rem;
  }

  .policy-card {
    padding: 1.1rem;
  }

  .speye-logo-large {
    width: 150px;
  }

  .speye-title {
    font-size: 1.8rem;
  }
}
