/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  --ps-primary:      #0072bc;
  --ps-primary-dark: #0054a6;
  --ps-accent:       #00aeef;
  --ps-ink:          #1B2733;
  --ps-ink-soft:     #4A5A66;
  --ps-muted:        #6B7785;
  --ps-bg:           #FFFFFF;
  --ps-bg-soft:      #F4FAFD;
  --ps-bg-band:      #E6F4FD;
  --ps-border:       #D0E7FA;
  --ps-shadow:       0 10px 24px -12px rgba(0, 114, 188, 0.2);
  
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--ps-bg);
  color: var(--ps-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title {
  font-family: var(--font-body);
  color: var(--ps-ink);
  font-weight: 700;
}

a {
  color: var(--ps-primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--ps-primary-dark);
  text-decoration: none;
}

/* ==========================================================================
   Template Required Selectors
   ========================================================================== */
.fullscreen {
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.btn, .btn_main {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ps-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.2);
  transition: all 0.3s ease;
}

.btn:hover, .btn_main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 114, 188, 0.3);
  background: var(--ps-primary-dark);
  color: #fff;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ps-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.return-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  color: var(--ps-primary);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--ps-shadow);
}

.return-to-top.show {
  opacity: 1;
  visibility: visible;
}

.return-to-top:hover {
  background: var(--ps-primary);
  color: #fff;
  border-color: var(--ps-primary);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.site-header.sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ps-border);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 114, 188, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-header .sticky-logo {
  display: none;
}

.site-header.sticky .main-logo {
  display: none;
}

.site-header.sticky .sticky-logo {
  display: block;
}

.site-mobile-logo {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.menu-wrapper {
  margin-left: auto;
}

.site-main-menu li {
  margin: 0 15px;
}

.site-main-menu a {
  color: var(--ps-ink-soft);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.site-main-menu a:hover {
  color: var(--ps-primary);
}

.site-nav .btn {
  margin-left: 20px;
  padding: 10px 24px;
}

.toggle-menu {
  display: none;
  cursor: pointer;
}

.close-menu {
  display: none;
}

/* Modal */
.modal-content {
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  color: var(--ps-ink);
  border-radius: 16px;
  box-shadow: var(--ps-shadow);
}

.modal-header {
  border-bottom: 1px solid var(--ps-border);
}

.modal-header .close {
  color: var(--ps-ink);
  text-shadow: none;
}

.modal-body {
  color: var(--ps-ink-soft);
}

/* ==========================================================================
   Hub Specific Styles
   ========================================================================== */

/* Typography Utils */
.gradient-text {
  color: var(--ps-primary);
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  color: var(--ps-ink);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--ps-accent);
  border-radius: 4px;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ps-bg-soft) 0%, var(--ps-bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--ps-ink);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--ps-ink-soft);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero__image-wrapper {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  background: var(--ps-bg);
  box-shadow: var(--ps-shadow);
  border: 1px solid var(--ps-border);
}

.hero__image-wrapper img {
  border-radius: 10px;
  display: block;
  width: 100%;
}

/* How It Works Section */
.hiw-section {
  padding: 100px 0;
  position: relative;
  background: var(--ps-bg);
}

.hiw-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hiw-step {
  flex: 1;
  text-align: center;
}

.hiw-step__image {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  background: var(--ps-bg-soft);
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 114, 188, 0.08);
  transition: transform 0.3s ease;
}

.hiw-step:hover .hiw-step__image {
  transform: translateY(-5px);
}

.hiw-step__content {
  position: relative;
  padding-top: 20px;
}

.hiw-step__number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-primary);
  background: var(--ps-bg-band);
  padding: 4px 12px;
  border-radius: 20px;
}

.hiw-step__title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ps-ink);
}

.hiw-step__text {
  color: var(--ps-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.hiw-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ps-bg-soft);
  border-radius: 50%;
  margin-top: -100px;
}

/* Features Section */
.features-section {
  padding: 120px 0;
  background: var(--ps-bg-soft);
  border-top: 1px solid var(--ps-border);
  border-bottom: 1px solid var(--ps-border);
}

.features-intro {
  font-size: 18px;
  color: var(--ps-ink-soft);
  margin-top: 20px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: var(--ps-bg);
  box-shadow: 0 4px 20px rgba(0, 114, 188, 0.05);
}

.feature-item__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--ps-bg-band);
  border-radius: 12px;
  color: var(--ps-primary);
}

.feature-item__content {
  flex: 1;
}

.feature-item__title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ps-ink);
}

.feature-item__text {
  color: var(--ps-ink-soft);
  font-size: 15px;
  margin: 0;
}

/* Bottom CTA */
.bottom-cta {
  padding: 120px 0;
  background: var(--ps-bg);
}

.bottom-cta__content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.bottom-cta__content::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--ps-primary);
  border-radius: 4px;
}

.bottom-cta__title {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--ps-ink);
}

.bottom-cta__text {
  font-size: 18px;
  color: var(--ps-ink-soft);
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: linear-gradient(135deg, #E6F4FD 0%, #D0E7FA 100%);
  border-top: 1px solid #BDE0F8;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer__title {
  font-weight: 700;
  color: var(--ps-ink);
  margin-bottom: 15px;
}

.footer-nav-wrapper {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--ps-ink-soft);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--ps-primary);
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 114, 188, 0.1);
  color: var(--ps-muted);
  font-size: 14px;
}

/* Inner Pages */
.inner-page {
  padding: 150px 0 100px;
  background: var(--ps-bg);
}

.terms-section {
  padding: 150px 0 100px;
  background: var(--ps-bg);
}

.terms-privacy h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--ps-ink);
}

.terms-privacy h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: var(--ps-ink);
}

.terms-privacy p {
  margin-bottom: 20px;
  color: var(--ps-ink-soft);
}

.terms-privacy ul, .terms-privacy ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--ps-ink-soft);
}

.terms-privacy li {
  margin-bottom: 10px;
}

.terms-privacy a {
  color: var(--ps-primary);
  text-decoration: underline;
}

/* Contact Page */
.contact-section__wrap {
  margin-top: 50px;
}

.contact-card {
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.05);
  display: flex;
  flex-direction: column;
}

.contact-card__subtitle {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--ps-ink);
}

.contact-card__text {
  color: var(--ps-ink-soft);
  margin-bottom: 30px;
  flex-grow: 1;
}

.contact-card .btn {
  margin-top: auto;
}

/* Uninstall / Removed Pages */
.uninstall-page .inner-page, .removed-page .inner-page {
  text-align: center;
}

.uninstall-img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ps-border);
  margin-top: 40px;
  box-shadow: var(--ps-shadow);
}