/* ===== PHNX Hero Section - Rich & Trendy Full Width ===== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Typography */
  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-luxe: "Fraunces", Georgia, "Times New Roman", serif;
  
  /* Colors - Rich & Professional */
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #7c2d92 75%, #be185d 100%);
  --secondary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --accent-gold: #d4af37;
  --accent-gold-light: #f4e4a6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Spacing - Reduced for compact design */
  --hero-padding: clamp(40px, 8vh, 60px);
  --container-max: 1400px;
  --container-padding: clamp(20px, 5vw, 60px);
}

/* ===================================
   HERO SECTION BASE
   =================================== */
.phnx-hero {
  position: relative;
  width: 100vw;
  min-height: 75vh; /* Reduced from 100vh to 75vh */
  margin-left: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-ui);
}

/* Background Layers */
.phnx-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.phnx-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.95;
}

.phnx-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(212,175,55,0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Animated Particles */
.phnx-hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===================================
   HERO CONTAINER & LAYOUT
   =================================== */
.phnx-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--hero-padding) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 60px); /* Reduced gap */
  align-items: center;
}

.phnx-hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 24px); /* Reduced gap between content elements */
}

/* ===================================
   HERO BADGE
   =================================== */
.phnx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px; /* Slightly smaller padding */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  color: var(--white);
  font-size: 13px; /* Slightly smaller font */
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.phnx-hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.phnx-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; /* Slightly smaller */
  height: 18px;
  background: var(--accent-gold);
  border-radius: 50%;
  color: var(--text-primary);
}
/*====================================
YOSHIKI BADGE
======================================*/
/* Outer purple badge box */
.yoshki-badge {
    width: 125px;       /* official width */
    height: 183px;      /* official height */
    padding: 8px;       /* optional nice spacing */
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

/* Wrapper fits container */
.yoshki-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Yoshki badge iframe in real size */
.yoshki-frame {
    width: 120px !important; 
    height: 180px !important;
    border: none;
    display: block;

    /* Scale up slightly so it fills the container nicely */
    transform: scale(1.05);
    transform-origin: top left;
}

/* ===================================
   HERO TITLE
   =================================== */
.phnx-hero-title {
  font-family: var(--font-luxe);
  font-size: clamp(2.2rem, 3.5vw, 4rem); /* Slightly smaller title */
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Reduced gap */
}

/* Smaller, responsive hero title */
/* Extra-small, truly capped hero title */
.phnx-hero-title-main{
  font-size: clamp(12px, 1.6vw, 20px);  /* smaller at all sizes */
  font-family:Geneva;    
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: .95;
  margin: .25rem 0 .5rem;
  max-width: 40ch;                      /* keep long titles from spanning too wide */
}


.phnx-hero-title-accent {
  font-size: clamp(6px, 1.2vw, 40px); /* ↓ smaller across sizes */
  line-height: 1.1;                  /* 50 → 600 (widely supported) */
  letter-spacing: -0.015em;            /* subtle tightening */
  opacity: 0.95; 
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  position: relative;
}

.phnx-hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: -6px; /* Adjusted position */
  left: 0;
  width: 60%;
  height: 3px; /* Slightly smaller */
  background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
  border-radius: 2px;
}

.phnx-hero-title-sub {
  font-weight: 600;
  font-size: 0.8em;
  opacity: 0.9;
}

/* ===================================
   HERO SUBTITLE
   =================================== */
.phnx-hero-subtitle {
  font-size: clamp(0.8rem, 1.0vw, 1.0rem); /* Slightly smaller subtitle */
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
  max-width: 90%;
}

/* ===================================
   HERO STATS
   =================================== */
.phnx-hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px); /* Reduced gap */
  padding: clamp(16px, 3vh, 24px) 0; /* Reduced padding */
}

.phnx-stat-item {
  text-align: center;
  color: var(--white);
}

.phnx-stat-number {
  font-family: var(--font-luxe);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Reduced size */
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phnx-stat-number::after {
  content: '+';
  margin-left: 4px;
}

.phnx-stat-number[data-count$="98"]::after {
  content: '%';
}

.phnx-stat-label {
  font-size: 13px; /* Slightly smaller */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: 6px; /* Reduced margin */
}

.phnx-stat-divider {
  width: 1px;
  height: 35px; /* Reduced height */
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

/* ===================================
   HERO ACTIONS (CTA BUTTONS)
   =================================== */
.phnx-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px; /* Slightly reduced gap */
  flex-wrap: wrap;
}

.phnx-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Slightly reduced gap */
  padding: 16px 28px; /* Reduced padding */
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px; /* Slightly smaller font */
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.phnx-hero-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  transition: left 0.6s ease;
}

.phnx-hero-cta-primary:hover::before {
  left: 100%;
}

.phnx-hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.phnx-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Slightly reduced gap */
  padding: 16px 28px; /* Reduced padding */
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px; /* Slightly smaller font */
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.phnx-hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--white);
}

.phnx-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.phnx-hero-cta-primary:hover .phnx-cta-icon {
  transform: translateX(4px);
}

.phnx-hero-cta-secondary:hover .phnx-cta-icon {
  transform: translateY(2px);
}

/* ===================================
   TRUST INDICATORS
   =================================== */
.phnx-hero-trust {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px); /* Reduced gap */
  flex-wrap: wrap;
  padding-top: clamp(16px, 3vh, 24px); /* Reduced padding */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phnx-trust-item {
  display: flex;
  align-items: center;
  gap: 10px; /* Slightly reduced gap */
  color: var(--white);
}

.phnx-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px; /* Slightly smaller */
  height:210px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  color: var(--accent-gold);
}

.phnx-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phnx-trust-title {
  font-weight: 700;
  font-size: 13px; /* Slightly smaller */
  line-height: 1.2;
}

.phnx-trust-subtitle {
  font-size: 11px; /* Slightly smaller */
  opacity: 0.8;
  font-weight: 500;
}

/* ===================================
   HERO VISUAL
   =================================== */
.phnx-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phnx-hero-image-container {
  position: relative;
  width: 100%;
  max-width: 420px; /* Slightly smaller */
  aspect-ratio: 4/5;
}

.phnx-hero-image-bg {
  position: absolute;
  top: -16px; /* Reduced offset */
  left: -16px;
  right: -16px;
  bottom: -16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, rgba(255,255,255,0.1) 100%);
  border-radius: 28px; /* Slightly smaller radius */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

.phnx-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px; /* Slightly smaller radius */
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.phnx-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.phnx-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(212,175,55,0.1) 100%);
  color: rgba(255,255,255,0.6);
}

/* Floating Elements */
.phnx-floating-element {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px; /* Slightly smaller radius */
  backdrop-filter: blur(20px);
  padding: 10px 14px; /* Reduced padding */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.phnx-float-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.phnx-float-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 2s;
}

.phnx-float-3 {
  top: 60%;
  right: -5%;
  animation-delay: 4s;
}

.phnx-float-content {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  color: var(--white);
}

.phnx-float-icon {
  font-size: 18px; /* Slightly smaller */
}

.phnx-float-text {
  font-size: 13px; /* Slightly smaller */
  font-weight: 600;
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* ===================================
   SCROLL INDICATOR
   =================================== */
.phnx-hero-scroll {
  position: absolute;
  bottom: 30px; /* Moved up slightly */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.phnx-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* Reduced gap */
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.phnx-scroll-indicator:hover {
  color: var(--white);
  transform: translateY(-4px);
}

.phnx-scroll-text {
  font-size: 11px; /* Smaller font */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phnx-scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .phnx-hero {
    min-height: 70vh; /* Further reduced on tablets */
  }
  
  .phnx-hero-container {
    grid-template-columns: 1fr;
    gap: 40px; /* Reduced gap */
    text-align: center;
  }
  
  .phnx-hero-visual {
    order: -1;
  }
  
  .phnx-hero-image-container {
    max-width: 350px; /* Smaller on tablets */
  }
  
  .phnx-hero-stats {
    justify-content: center;
  }
  
  .phnx-hero-trust {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --hero-padding: clamp(30px, 8vh, 50px); /* Reduced mobile padding */
    --container-padding: 20px;
  }
  
  .phnx-hero {
    min-height: 60vh; /* Significantly reduced on mobile */
  }
  
  .phnx-hero-container {
    gap: 30px; /* Reduced gap */
  }
  
  .phnx-hero-actions {
    justify-content: center;
  }
  
  .phnx-hero-cta-primary,
  .phnx-hero-cta-secondary {
    padding: 14px 22px; /* Reduced padding */
    font-size: 14px; /* Smaller font */
  }
  
  .phnx-hero-stats {
    gap: 16px; /* Reduced gap */
  }
  
  .phnx-stat-divider {
    height: 25px; /* Reduced height */
  }
  
  .phnx-hero-trust {
    gap: 16px; /* Reduced gap */
  }
  
  .phnx-trust-item {
    flex-direction: column;
    text-align: center;
    gap: 6px; /* Reduced gap */
  }
  
  .phnx-floating-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .phnx-hero {
    min-height: 55vh; /* Even more compact on small phones */
  }
  
  .phnx-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px; /* Reduced gap */
  }
  
  .phnx-hero-cta-primary,
  .phnx-hero-cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px; /* Further reduced padding */
  }
  
  .phnx-hero-stats {
    flex-direction: column;
    gap: 16px; /* Reduced gap */
  }
  
  .phnx-stat-divider {
    width: 30px; /* Reduced width */
    height: 1px;
  }
  
  .phnx-hero-trust {
    flex-direction: column;
    gap: 12px; /* Reduced gap */
  }
  
  .phnx-hero-content {
    gap: clamp(12px, 2vh, 18px); /* Further reduced content spacing */
  }
}

/* ===================================
   ACCESSIBILITY & FOCUS STATES
   =================================== */
.phnx-hero-cta-primary:focus,
.phnx-hero-cta-secondary:focus,
.phnx-scroll-indicator:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .phnx-hero-pattern,
  .phnx-floating-element,
  .phnx-scroll-arrow {
    animation: none;
  }
  
  .phnx-hero-cta-primary::before {
    display: none;
  }
}