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

:root {
  --cerulean-1: #007BA7;   /* light cerulean */
  --cerulean-2: #006494;   /* mid */
  --cerulean-3: #003f5c;   /* deep */
  --gray: #999999;
  --danger: #ff4d4d;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  background: #000; 
  color: var(--gray);
  padding-top: constant(safe-area-inset-top); /* older iOS */
  padding-top: env(safe-area-inset-top);
}

@font-face {
  font-family: 'Mokoto';
  src: url('fonts/Mokoto Glitch.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---------- brand word-mark ---------- */
.text-gradient {
  line-height: 1.25;
  padding-top: 0.15em;
  font-family: 'Mokoto', sans-serif;
  background: linear-gradient(
    270deg,
    #00bfff,
    var(--cerulean-1),
    var(--cerulean-2),
    var(--cerulean-3),
    #000020
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
  font-weight: normal;
  font-size: 2.5rem;
  margin: 40px 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/* header stays centred */
header { text-align: center; }

/* ---------- main section ---------- */
.container {
  width: 90%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.container h2,
.container h3,
.container h4 {
  color: var(--gray) !important;
  font-weight: 300;
}

.container .accent { color: var(--cerulean-1); }

.container p { margin: 1.2rem 0 2rem; }

input[type="email"] {
  background: #000;              /* Black background */
  color: #fff;                   /* White text */
  border: 1px solid #444;        /* Light grey border */
  border-radius: 50px;
  padding: 12px 24px;
  width: 65%;
  outline: none;                 /* Remove blue default glow */
  transition: border 0.3s ease;  /* Smooth border transition */
}

input[type="email"]:hover,
input[type="email"]:focus {
  border-color: var(--cerulean-1);  /* Cerulean blue on hover/focus */
}


#submitButton {
  background: #000;                    /* Black background */
  color: var(--cerulean-1);           /* Cerulean text */
  border: 1px solid var(--cerulean-1);/* Cerulean border */
  border-radius: 50px;
  padding: 12px 30px;
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

#submitButton:hover {
  background: var(--cerulean-1);  /* Cerulean background */
  color: #fff;                    /* White text */
}

.error-msg {
  color: var(--danger);
  display: none;
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.3rem;
  text-align: left;
}

.image {
  display: flex;
  justify-content: center;
}

.image img {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  border: 1px solid #444; /* subtle light grey border */
  border-radius: 8px;      /* optional: for slightly rounded corners */
}


/* ---------- footer ---------- */
footer { text-align: center; margin: 3rem 0 1rem; }

.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social li {
  width: 44px;
  height: 44px;
  border: 1px solid var(--cerulean-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}
.social li i { color: var(--cerulean-1); }
.social li:hover   { background: var(--cerulean-1); }
.social li:hover i { color: #fff; }

@media (max-width: 480px) {
  .text-gradient {
    margin-top: 80px;
  line-height: 1.25;
  padding-top: .15em;
  }

  .container input[type="email"],
  .container #submitButton {
    width: auto;
    display:inline-block; 
    margin:0 auto 2rem;
  }

  #submitButton {
    width: auto;              /* let it stay its pill shape */
    display: inline-block;
    margin: 0 auto 2rem;      /* center it beneath the input */
  }

  .image img {
    max-width: 90%;
  }
}


.image {
  padding: 0 1rem;
}

