/* ==========================================================================
   BRITISH INSTITUTE OF PROFESSIONAL DEFENCE (BIPD)
   Visual Stylesheet — Transparent Overlay & Visible Background Video
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR SYSTEM & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Client Refined Palette */
  --color-deep-navy: #071426;
  --color-ivory: #F5F1E8;
  --color-white: #FFFFFF;
  --color-muted-gold: #C7A45A;
  --color-soft-gold: #D8C58A;

  /* Subtle Borders & Overlays */
  --border-gold-subtle: rgba(199, 164, 90, 0.4);
  --border-gold-hover: rgba(216, 197, 138, 0.7);
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Typography System */
  --font-headings: Georgia, 'Cinzel', 'Times New Roman', serif;
  --font-editorial: Georgia, 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE RESET — FULLY TRANSPARENT PAGE BACKGROUND
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  background: transparent !important; /* Must be transparent so background video shows */
  color: var(--color-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND VIDEO & TRANSPARENT OVERLAY (EXACT CLIENT SPECIFICATION)
   -------------------------------------------------------------------------- */
.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  display: block;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 25, 0.35),
    rgba(5, 12, 25, 0.50)
  );
  z-index: -1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. CONTENT LAYOUT & VERTICAL RHYTHM
   -------------------------------------------------------------------------- */
.landing-wrapper {
  position: relative;
  z-index: 1;
  background: transparent !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem;
}

.hero-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent !important;
}

/* --------------------------------------------------------------------------
   ITEM 1: TOP TITLE
   -------------------------------------------------------------------------- */
.top-title-section {
  margin-bottom: 1.35rem;
  width: 100%;
}

.top-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: clamp(1rem, 1.7vw, 1.4rem); /* 20px–26px desktop, 16px–18px mobile */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(5, 12, 25, 0.9);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   ITEM 2: BIPD LOGO
   -------------------------------------------------------------------------- */
.logo-section {
  margin-bottom: 1.35rem;
  display: flex;
  justify-content: center;
}

.bipd-logo {
  width: clamp(170px, 17vw, 250px); /* 230–280px desktop, 160–200px mobile */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
  transition: var(--transition-smooth);
}

.bipd-logo:hover {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   ITEM 3: CORE STATEMENT STRAPLINE
   -------------------------------------------------------------------------- */
.core-statement-bar {
  background: transparent;
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  backdrop-filter: blur(2px);
}

.core-text {
  font-family: var(--font-headings);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-ivory);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   ITEM 4: MAIN COMING-SOON MESSAGE
   -------------------------------------------------------------------------- */
.coming-soon-wrapper {
  margin-bottom: 1.75rem;
  width: 100%;
}

.coming-soon-msg {
  font-family: var(--font-editorial);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem); /* 38px–48px desktop, 28px–34px mobile */
  font-weight: 500;
  font-style: italic;
  color: var(--color-soft-gold);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   ITEMS 5–9: BIPD DEFENCE ENGINE SURFACE
   -------------------------------------------------------------------------- */
.platform-surface {
  width: 100%;
  max-width: 760px;
  background: rgba(5, 12, 25, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.75rem 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

/* ITEM 5: BIPD DEFENCE ENGINE Title */
.platform-title {
  font-family: var(--font-headings);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem); /* 26px–32px desktop */
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--color-ivory);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gold-divider {
  width: 60px;
  height: 1px;
  background: var(--border-gold-subtle);
  margin: 0 auto 0.85rem;
}

/* ITEM 6: Supporting Line */
.supporting-line {
  font-family: var(--font-editorial);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  font-style: italic;
  color: var(--color-soft-gold);
  margin-bottom: 1.1rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ITEMS 7, 8, 9: Paragraphs Group */
.paragraphs-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.body-paragraph {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem); /* 16px–18px desktop, 15px–16px mobile */
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ivory);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.highlight-paragraph {
  color: var(--color-soft-gold);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   ITEMS 10–12: EMAIL CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

/* ITEM 10: Want to see it first? */
.cta-label {
  font-family: var(--font-editorial);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: var(--color-ivory);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cta-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.input-group {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  background: rgba(5, 12, 25, 0.55);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.4rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  border-color: var(--color-soft-gold);
  box-shadow: 0 0 16px rgba(199, 164, 90, 0.3);
}

/* ITEM 11: Email Input */
.email-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.email-input.input-error {
  border-color: #FCA5A5;
}

.email-input::placeholder {
  color: #94A3B8;
  font-weight: 300;
}

/* ITEM 12: Launching Soon CTA Button */
.cta-button {
  background: var(--color-deep-navy);
  color: var(--color-soft-gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-muted-gold);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background: var(--color-muted-gold);
  color: var(--color-deep-navy);
  border-color: var(--color-soft-gold);
}

/* Form Feedback Message */
.form-feedback {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.4rem;
  transition: var(--transition-smooth);
}

.form-feedback.success {
  color: #6EE7B7;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.4);
}

.form-feedback.error {
  color: #FCA5A5;
  text-shadow: 0 0 8px rgba(252, 165, 165, 0.4);
}

/* --------------------------------------------------------------------------
   SCROLL INDICATOR
   -------------------------------------------------------------------------- */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-soft-gold);
}

.scroll-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, var(--color-muted-gold), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 5px;
  background: var(--color-ivory);
  border-radius: 2px;
  animation: scrollDown 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDown {
  0% { top: -20%; opacity: 0; }
  30% { opacity: 1; }
  80% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   STAGGERED ENTRANCE ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-element {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.top-title-section.fade-element { animation-delay: 0.12s; }
.logo-section.fade-element { animation-delay: 0.25s; }
.core-statement-bar.fade-element { animation-delay: 0.38s; }
.coming-soon-wrapper.fade-element { animation-delay: 0.5s; }
.platform-surface.fade-element { animation-delay: 0.65s; }
.cta-section.fade-element { animation-delay: 0.8s; }
.scroll-indicator.fade-element { animation-delay: 0.95s; }

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

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .landing-wrapper {
    padding: 20px;
    width: 100%;
  }

  .hero-container {
    width: 92%;
  }

  .top-title-section {
    margin-bottom: 1.25rem;
  }

  .logo-section {
    margin-bottom: 1.25rem;
  }

  .bipd-logo {
    width: 180px;
  }

  .core-statement-bar {
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .coming-soon-wrapper {
    margin-bottom: 1.5rem;
  }

  .platform-surface {
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.65rem;
  }

  .email-input {
    width: 100%;
    background: rgba(5, 12, 25, 0.75);
    border: 1px solid var(--border-gold-subtle);
    border-radius: 6px;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
  }
}

@media (max-width: 414px) {
  .hero-container {
    width: 94%;
  }

  .bipd-logo {
    width: 160px;
  }

  .platform-surface {
    padding: 1.2rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fade-element {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-dot {
    animation: none !important;
  }

  .bipd-logo, .cta-button, .platform-surface {
    transition: none !important;
  }
}
