@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #030305;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --accent: #00e5ff;
}

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

body, html {
  width: 100%;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  flex-shrink: 0;
  background-color: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  line-height: 1.2;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 50vh; /* Fixed height for stability */
  flex-shrink: 0; /* Prevent flexbox from crushing this section on mobile */
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-text {
  position: absolute;
  top: 15vh; /* Push down to center */
  left: 0;
  width: 100%;
  height: calc(100% - 15vh); /* Room to stick */
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none;
}

h1 {
  position: sticky;
  top: 120px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Subtle glow effect on text */
h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-section {
  flex: 1;
  background-color: var(--bg-color);
  position: relative;
  z-index: 3;
  padding: 2rem 2rem; /* Reduced top padding to pull text up closer to animation */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 750px;
  width: 100%;
  gap: 2.5rem;
}

.refined-text-block {
  width: 100%;
  text-align: left;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
}

.refined-text-block p {
  margin-bottom: 1.5rem;
}

.refined-text-block p:last-child {
  margin-bottom: 0;
}

.highlight {
  color: var(--text-primary);
  font-weight: 400;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: #fff;
  border-bottom-color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.trsec-brand {
  color: var(--accent);
  font-weight: 400;
}

.logo .trsec-brand {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  margin-top: 0.2rem;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.contact-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  align-items: flex-start;
  text-align: left;
}

.contact-link:hover .contact-email {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.contact-name {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 400;
}

.contact-email {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-phone {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background-color: var(--bg-color);
  position: relative;
  z-index: 3;
}

/* Dataroom Button */
.dataroom-access-container {
  margin-top: 2.5rem;
}

.dataroom-btn {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.5);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  font-family: 'Inter', sans-serif;
}

.dataroom-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
  color: #fff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 3rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.regulatory-content {
  max-width: 700px;
  text-align: left;
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 300;
}

.modal-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-content input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
}

.modal-content input:focus {
  border-color: var(--accent);
}

.error-text {
  color: #ff3366 !important;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem !important;
}

.error-text.hidden {
  display: none;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-btn.primary {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.5);
}

.modal-btn.primary:hover {
  background: rgba(0, 229, 255, 0.3);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo .trsec-brand {
    font-size: 1.8rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}
