/* ===========================
   PTG Media — Main Stylesheet
   =========================== */

:root {
  --ptg-purple: #3d1a6e;
  --ptg-purple-mid: #5a2d91;
  --ptg-purple-light: #8b5ab5;
  --ptg-purple-pale: #e8dff5;
  --ptg-black: #0d0d0d;
  --ptg-dark: #1a1a2e;
  --ptg-gray-900: #1c1c1e;
  --ptg-gray-600: #6b6b76;
  --ptg-gray-200: #e8e8ec;
  --ptg-gray-100: #f5f5f7;
  --ptg-white: #ffffff;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ptg-black);
  background: var(--ptg-white);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography helpers ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptg-purple-mid);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ptg-black);
}

.section-heading em {
  font-style: italic;
  color: var(--ptg-purple-mid);
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ptg-gray-600);
  font-weight: 300;
}

/* ===========================
   NAV
   =========================== */
#mainNav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ptg-gray-200);
  transition: box-shadow 0.3s;
  padding: 0.75rem 0;
}

#mainNav.scrolled {
  box-shadow: 0 2px 24px rgba(61,26,110,0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ptg-purple);
  letter-spacing: -0.01em;
}

.navbar-brand img {
  transition: opacity 0.2s;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ptg-gray-600) !important;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding: 0.5rem 0 !important;
}

.nav-link:hover { color: var(--ptg-purple) !important; }

.btn-contact {
  background: var(--ptg-purple) !important;
  color: var(--ptg-white) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 100px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-contact:hover {
  background: var(--ptg-purple-mid) !important;
  transform: translateY(-1px);
}

/* ===========================
   HERO
   =========================== */
.hero-section {
  position: relative;
  background: var(--ptg-white);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ptg-gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--ptg-gray-200) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
}

.hero-content {
  padding-top: 6rem;
  animation: fadeUp 0.8s ease both;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ptg-black);
  letter-spacing: -0.02em;
}

.hero-heading em {
  font-style: italic;
  color: var(--ptg-purple-mid);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ptg-gray-600);
  font-weight: 300;
  max-width: 480px;
}

.btn-primary-dark {
  background: var(--ptg-purple);
  color: var(--ptg-white);
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-dark:hover {
  background: var(--ptg-purple-mid);
  color: var(--ptg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,26,110,0.22);
}

.btn-outline-dark-custom {
  background: transparent;
  color: var(--ptg-black);
  border: 1.5px solid var(--ptg-gray-200);
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-dark-custom:hover {
  border-color: var(--ptg-purple);
  color: var(--ptg-purple);
  transform: translateY(-2px);
}

.hero-logo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ptg-purple-pale) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-logo {
  width: 240px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(61,26,110,0.18));
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ptg-purple-mid), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===========================
   ABOUT
   =========================== */
.about-section {
  padding: 7rem 0;
  background: var(--ptg-gray-100);
}

.pillar-card {
  background: var(--ptg-white);
  border: 1px solid var(--ptg-gray-200);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(61,26,110,0.1);
  border-color: var(--ptg-purple-pale);
}

.pillar-icon {
  font-size: 1.8rem;
  color: var(--ptg-purple-mid);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ptg-black);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ptg-gray-600);
  font-weight: 300;
  margin: 0;
}

/* ===========================
   APP SHOWCASE
   =========================== */
.app-section {
  padding: 0;
  background: var(--ptg-white);
}

.app-section-inner {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--ptg-white) 0%, var(--ptg-gray-100) 100%);
}

.app-icon-showcase {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-img {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow:
    0 24px 60px rgba(61,26,110,0.2),
    0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.app-icon-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.app-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0;
}

.ring-1 {
  width: 220px; height: 220px;
  border-color: rgba(90,45,145,0.25);
  animation: ringPulse 3s 0s ease-in-out infinite;
}
.ring-2 {
  width: 280px; height: 280px;
  border-color: rgba(90,45,145,0.15);
  animation: ringPulse 3s 0.5s ease-in-out infinite;
}
.ring-3 {
  width: 340px; height: 340px;
  border-color: rgba(90,45,145,0.07);
  animation: ringPulse 3s 1s ease-in-out infinite;
}

.feature-tag {
  display: inline-block;
  background: var(--ptg-purple-pale);
  color: var(--ptg-purple);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin: 0.25rem 0.25rem 0.25rem 0;
  text-transform: uppercase;
}

.download-badge {
  height: 64px;
  width: auto;
  border-radius: 0;
  display: block;
  transition: transform 0.2s, filter 0.2s;
}

.download-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* ===========================
   CONTACT
   =========================== */
.contact-section {
  padding: 7rem 0;
  background: var(--ptg-dark);
}

.contact-section .eyebrow {
  color: var(--ptg-purple-light);
}

.contact-section .section-heading {
  color: var(--ptg-white);
}

.contact-section .section-body {
  color: rgba(255,255,255,0.55);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ptg-white);
  text-decoration: none;
  border-bottom: 2px solid var(--ptg-purple-light);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--ptg-purple-pale);
  border-color: var(--ptg-purple-pale);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--ptg-black);
  color: rgba(255,255,255,0.4);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  font-size: 0.8rem;
}

.footer-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(255,255,255,0.75);
}

/* ===========================
   LEGAL PAGES
   =========================== */
.legal-page {
  padding-top: 6rem;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ptg-black);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--ptg-gray-600);
  margin-bottom: 2.5rem;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ptg-black);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ptg-black);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ptg-gray-600);
  font-weight: 300;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--ptg-purple-mid);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ptg-purple-mid);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: gap 0.2s;
}

.legal-back:hover { gap: 0.65rem; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.85; }
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60%  { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes ringPulse {
  0%   { opacity: 0; transform: scale(0.85); }
  50%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991.98px) {
  .hero-content { padding-top: 2rem; }
  .hero-section .min-vh-100 { min-height: unset; padding: 7rem 0 4rem; }
}

@media (max-width: 767.98px) {
  .about-section,
  .app-section-inner,
  .contact-section { padding: 5rem 0; }
}
