@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Rajdhani:wght@500;600;700;800&family=Share+Tech+Mono&display=swap');

:root {
  --bg-deep: #0a0b0d;
  --bg-darker: #050607;
  --neon-green: #ffffff;
  --neon-green-glow: rgba(255, 255, 255, 0.25);
  --neon-cyan: #90989e;
  --neon-cyan-glow: rgba(144, 152, 158, 0.25);
  --acid-lime: #d1d8e0;
  --acid-lime-glow: rgba(209, 216, 224, 0.15);
  --text-primary: #f5f6fa;
  --text-muted: #747d8c;
  --danger-red: #ff3366;
  --danger-glow: rgba(255, 51, 102, 0.4);
  --glass-bg: rgba(18, 20, 23, 0.8);
  --border-neon: rgba(255, 255, 255, 0.12);

  --font-cyber: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

html,
body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Background Cyberpunk FX */
body {
  background-image:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(144, 152, 158, 0.08), transparent 35%),
    radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(180deg, #16181b 0%, var(--bg-deep) 60%, var(--bg-darker) 100%);
  background-attachment: fixed;
  position: relative;
}

/* Digital Grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
  z-index: 1;
}

/* CRT Scanlines / Glitch Ambient */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px);
  z-index: 2;
  opacity: 0.6;
}

/* Main Container Layout */
.page-container {
  min-height: 100vh;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 40px 0;
}

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

/* Hologram Header & Logo Frame */
.header {
  margin-bottom: 35px;
}

.logo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 420;
  height: auto;
  margin: 0 auto 15px;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%), rgba(5, 6, 7, 0.6);
  border: 1px solid var(--border-neon);
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  overflow: hidden;
}

/* Corner ticks for logo container removed */

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 15px var(--neon-green-glow));
  transition: transform 0.3s ease;
}

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

.company-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
  margin-top: 10px;
}

/* Tech Info Banner */
.tech-banner {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid-lime);
  margin-bottom: 25px;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(165, 177, 194, 0.05);
  border: 1px solid rgba(165, 177, 194, 0.2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.tech-banner::before {
  content: "●";
  animation: blink 1.2s infinite steps(2);
}

/* Cyber Hero Area */
.hero-title {
  font-family: var(--font-cyber);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #fff;
  background: linear-gradient(180deg, #fff 40%, #c8d6e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 15px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.15);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-cyber);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 35px;
}

/* Gateway Grid Layout for Actions */
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: min(840px, 100%);
  margin: 0 auto;
  align-items: stretch;
  transition: opacity 0.5s ease, transform 0.5s ease;
}


@media (max-width: 768px) {
  .gateway-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Tech Card Frame (Cyber-Futurista) */
.tech-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-neon);
  padding: 35px 30px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
}

/* Corner decorations removed */

.card-title {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title::before {
  content: "//";
  color: var(--neon-cyan);
  font-weight: 500;
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Form Styles */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cyber-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input-wrapper {
  position: relative;
}

.cyber-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(2, 4, 7, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  outline: none;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.cyber-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  background: rgba(4, 8, 14, 0.95);
}

/* Buttons Styles (Cyber-style) */
.cyber-btn {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 15px 22px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;

  /* Angolo smussato futurista */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.cyber-btn-primary {
  background: linear-gradient(90deg, #747d8c, var(--neon-green), var(--acid-lime));
  color: #050607;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.cyber-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.cyber-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.cyber-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cyber-btn:active {
  transform: translateY(1px);
}

/* Feedback messages styling */
.feedback-msg {
  min-height: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 5px;
  text-transform: uppercase;
}

.feedback-msg.error {
  color: var(--danger-red);
  text-shadow: 0 0 8px var(--danger-glow);
  animation: glitch-text 0.3s steps(2) 2;
}

.feedback-msg.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}

/* Hidden screening section styling */
.screening-section {
  display: none;
  width: min(1040px, 100%);
  margin: 40px auto 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screening-section.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Holographic Projection Frame for Video */
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--neon-green);
  background: #000;
  box-shadow:
    0 0 50px rgba(255, 255, 255, 0.15),
    0 0 120px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
}

.video-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  margin: 1px;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  z-index: 5;
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  object-fit: cover;
}

/* Custom Holographic video placeholder */
.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--neon-green);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(144, 152, 158, 0.08), transparent 45%),
    linear-gradient(180deg, #040810 0%, #000000 100%);
  position: relative;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  animation: scanning-line 6s linear infinite;
  z-index: 4;
}

.placeholder-content {
  text-align: center;
  max-width: 600px;
  z-index: 2;
}

.placeholder-title {
  font-family: var(--font-cyber);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.placeholder-status {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--acid-lime);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.placeholder-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Company Description / Services Grid */
.company-info {
  margin-top: 60px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-cyber);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-box {
  background: rgba(4, 8, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.feature-box:hover {
  background: rgba(6, 12, 21, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid-lime);
  margin-bottom: 10px;
}

.feature-title {
  font-family: var(--font-cyber);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Footer Section */
.footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(130, 168, 157, 0.6);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-brand {
  color: var(--neon-green);
}

.footer-legal {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-link {
  color: rgba(130, 168, 157, 0.6) !important; /* override any default Iubenda styles */
  text-decoration: none !important;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-link:hover {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Trailer Section styling */
.trailer-section {
  margin: 40px auto 60px;
  max-width: 800px;
  padding: 0 10px;
}

.trailer-title {
  font-family: var(--font-cyber);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-top: 5px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.trailer-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--neon-cyan);
  background: #000;
  box-shadow:
    0 0 30px rgba(144, 152, 158, 0.15),
    0 0 80px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(144, 152, 158, 0.1);
  overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.trailer-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(144, 152, 158, 0.15);
  pointer-events: none;
  margin: 1px;
  clip-path: polygon(19px 0, 100% 0, 100% calc(100% - 19px), calc(100% - 19px) 100%, 0 100%, 0 19px);
  z-index: 5;
}

.trailer-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* Keyframes animations */
@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes scanning-line {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(calc(100% * 16 / 9 - 4px));
    opacity: 0.2;
  }
}

@keyframes glitch-text {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* Extra media overrides for mobile screen sizes */
@media (max-width: 600px) {
  .page-container {
    padding: 20px 15px;
  }

  .tech-card {
    padding: 25px 20px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}