/* ==========================================================================
   SecureArk Global Styles - Awwwards Tier
   ========================================================================== */

:root {
  --bg: #0a0a0a;          /* Matte Black */
  --bg-surface: #121212;  
  --text: #ffffff;        /* Stark White */
  --text-muted: #8e8e93;  
  --accent: #EF9B2A;      /* Gold */
  --accent-alt: #2E68C0;  /* Tech Blue */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, .display-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.title-massive {
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin-bottom: 2vh;
}

.title-section {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

p.lead {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-padding {
  padding: 15vh 0;
}

/* ==========================================================================
   Scroll Reveal Animation (IntersectionObserver Utility Classes)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   UI Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  background: #e5e5ea;
}

.btn-glass {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0) 100%);
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav-glass.scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
}

/* ==========================================================================
   WhatsApp Liquid Floating Button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3), inset 0 2px 5px rgba(255,255,255,0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5), inset 0 2px 5px rgba(255,255,255,0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ==========================================================================
   Custom Scrollytelling Engine Integrations
   ========================================================================== */
#world {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.content-wrapper {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-glass { padding: 1rem; flex-wrap: wrap; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px; margin-top: 1rem; }
  .nav-links a { font-size: 0.9rem; padding: 8px 12px; }
  .title-massive { font-size: 3.5rem !important; }
  .title-section { font-size: 2.5rem !important; }
  .lead { font-size: 1.2rem !important; }
  .section-padding { padding: 4rem 0; }
  .founder-image { height: auto !important; max-width: 100% !important; margin: 2rem auto !important; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
  .whatsapp-tooltip { display: none !important; }
}

@media (max-width: 480px) {
  .title-massive { font-size: 2.5rem !important; }
  .title-section { font-size: 2rem !important; }
  .nav-links { gap: 5px; }
  .nav-links a { font-size: 0.85rem; padding: 6px 10px; }
  .container { padding: 0 1.2rem; }
}


/* WhatsApp Popup Chat */
.wa-popup-container {
  position: fixed;
  bottom: 90px;
  right: 2rem;
  z-index: 999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa-chat-popup {
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}
.wa-chat-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-chat-header {
  background: #128C7E;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.wa-header-text {
  display: flex;
  flex-direction: column;
}
.wa-header-text strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.wa-header-text span {
  font-size: 0.75rem;
  opacity: 0.9;
}
.wa-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
  padding: 0 0.5rem;
}
.wa-close:hover {
  opacity: 1;
}
.wa-chat-body {
  background: #E5DDD5;
  padding: 1.5rem 1rem;
  position: relative;
}
.wa-message {
  background: #fff;
  color: #000;
  padding: 0.8rem 1rem;
  border-radius: 0 12px 12px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  max-width: 90%;
}
.wa-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: #999;
  margin-top: 5px;
}
.wa-btn {
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  transition: background 0.3s, transform 0.3s;
}
.wa-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .wa-popup-container {
    right: 1rem;
    bottom: 80px;
  }
}



/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  bottom: 75px;
  right: -10px;
  background: #fff;
  color: #1a1a1f;
  padding: 12px 18px;
  border-radius: 20px;
  border-bottom-right-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  animation: showTooltip 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.5s forwards;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 28px;
  border-top: 6px solid #fff;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

@keyframes showTooltip {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* --- SOCIAL PROOF & FOMO (HUMAN ENGINEERING) --- */
.social-proof-strip {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 0;
  text-align: center;
}
.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.scarcity-widget {
  color: #ff3b30;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.scarcity-dot {
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.loss-aversion-text {
  font-size: 0.9rem;
  color: #a1a1a6;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* --- UNIVERSAL CTA BUTTONS --- */
.cta-group { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
  align-items: center; 
  margin-top: 1.5rem; 
}
.btn-secondary { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem; 
  background: transparent; 
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.3); 
  border-radius: 100px; 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 1rem; 
  transition: all 0.4s; 
}
.btn-secondary:hover { 
  background: rgba(37, 211, 102, 0.2); 
  border-color: #25D366; 
  color: #25D366; 
  transform: translateY(-4px) scale(1.02); 
}
