/* Basic Reset and Variables */
@font-face {
  font-family: "GC EPICPRO";
  src: url("assets/fonts/GC%20EPICPRO.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-dark: #000;
  --gray-lightest: #d9d9d9;
  --gray-light: #ccc;
  --gray-medium: #b3b3b3;
  --text-black: #000;
  --text-white: #fff;
  --text-blue: #253166;
  --text-gray: #727272;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  line-height: 1.6;
  position: relative;
}

/* KV image: behind hero content only, scoped to hero section */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/images/kv.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-dark);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
}

.hero-background-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
}

/* Wrapper: fixed viewport-sized layer so gradients don’t add to page size; overflow clips to viewport */
.gradient-corners-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Layer 2: gradient – img at intrinsic size so resolution matches input */
/* Center of image at viewport top-left; only bottom-right of image visible */
.gradient-corner {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-61%, -33%);
  height: 60%;
  max-width: none;
  max-height: none;
  display: block;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

.gradient-corner-br {
  top: auto;
  left: auto;
  bottom: 0;
  right: 0;
  transform: translate(63%, 40%);
  height: 88%;
  z-index: 0;
}

/* Grain overlay: above background/gradient, below text */
.page-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Layer 3 (top): all text / content */
main,
header {
  width: 70%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* --- Header --- */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-black);
  z-index: 10;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  z-index: 10;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-white);
  padding: 5px 25px;
  display: block;
  font-size: 14px;
  transition: background-color 0.2s;
}

.main-nav a:hover {
  background-color: var(--text-white);
  color: var(--text-black);
}

.main-nav ul li:last-child {
  border: 1px solid white;
}

body.page-about .main-nav a[href="about.html"],
body.page-contact .main-nav a[href="contact.html"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* Removed the literal white box, styling the text instead */
.hero-content-overlay {
  text-align: center;
  position: relative;
  z-index: 10;
  font-family: "GC EPICPRO", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hero-content-overlay h1 {
  font-family: "GC EPICPRO", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 7rem;
  line-height: 0.7;
  color: var(--text-white); /* White text */
}

.hero-description {
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 1rem;
  line-height: 1.5;
}

/* --- Description Section --- */
.description-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.description-box {
  width: 85%;
  padding: 30px;
  text-align: center;
  color: var(--text-white);
  border-radius: 8px;
}

.description-tagline {
  width: 85%;
  text-align: center;
  color: var(--text-white);
  font-weight: bold;
}

/* --- Features Section --- */
.features-section {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
}

.feature-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card-header {
  position: relative;
  width: 100%;
  min-height: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-title {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-family: "GC EPICPRO", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 4rem;
  font-weight: bold;
  color: var(--text-white);
}

.big-number {
  width: 100%;
  margin-top: -4.8rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: "GC EPICPRO", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10rem;
  font-weight: 800;
  color: var(--text-blue);
  z-index: 0;
  line-height: 1;
}

.short-desc {
  width: 80%;
  min-height: 4em;
  flex-shrink: 0;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-white);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* --- Shared Components & CTA Sections --- */
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.newsletter-title-box,
.social-title-box,
.faq-title-box {
  width: 85%;
  text-align: center;
  padding: 15px;
  margin-bottom: 15px;
  color: var(--text-white);
  font-weight: 500;
}

.sub-heading {
  width: 85%;
  text-align: center;
  padding: 15px;
  margin-bottom: 15px;
  color: var(--text-white);
  font-weight: 700;
  font-size: 2rem;
}

.primary-cta {
  border: solid 2px var(--text-white);
  padding: 10px 25px;
  cursor: pointer;
  font-size: 1rem;
  background-color: var(--text-black);
  color: var(--text-white);
  transition: background-color 0.2s;
  text-decoration: none;
}

.primary-cta:hover {
  background-color: var(--text-white);
  color: var(--text-black);
}

.secondary-cta {
  border: solid 2px var(--text-white);
  padding: 12px 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  background-color: var(--text-white);
  color: var(--text-black);
  transition: background-color 0.2s;
}

.secondary-cta:hover {
  background-color: var(--text-black);
  color: var(--text-white);
}

.journey-start-section {
  margin-bottom: 48px;
}

.journey-start-section button {
  font-weight: bold;
}

/* --- Newsletter Specifics --- */
.newsletter-form {
  display: flex;
  width: 85%;
  justify-content: center;
}

.newsletter-form input {
  padding: 12px 15px;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  flex: 1;
  max-width: 300px;
  outline: none;
  color: var(--text-gray);
}

.newsletter-form input:focus {
  border-color: var(--gray-medium);
}

/* --- Social Icons --- */
.social-icons-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  color: var(--text-black);
  background-color: var(--text-white);
  border-radius: 50%;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.social-icon-link:hover {
  background-color: var(--text-black);
  color: var(--text-white);
}

.social-icon-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* --- FAQ Specifics --- */
.faq-title-box {
  width: 150px;
  font-weight: bold;
}

.faq-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.faq-item {
  width: 85%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: center;
  padding: 15px 15px 28px 15px;
  border: none;
  background: transparent;
  color: var(--text-white);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
  content: "";
  display: block;
  float: right;
  width: 0;
  height: 0;
  margin-top: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 15px 20px 15px;
  margin: 0;
  color: var(--gray-lightest);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

/* Password gate overlay – full viewport, session-only */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.password-gate[hidden] {
  display: none;
}

.password-gate-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.password-gate-inner label {
  color: var(--gray-lightest);
  font-size: 0.95rem;
}

.password-gate-inner input {
  padding: 10px 12px;
  font-size: 1rem;
  background: #1a1a1a;
  border: 1px solid var(--gray-medium);
  border-radius: 6px;
  color: var(--text-white);
}

.password-gate-inner input::placeholder {
  color: var(--gray-medium);
}

.password-gate-inner button {
  padding: 10px 16px;
  font-size: 1rem;
  background: var(--text-blue);
  color: var(--text-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.password-gate-inner button:hover {
  opacity: 0.9;
}

.password-gate-error {
  color: #c44;
  font-size: 0.9rem;
  margin: 0;
}
