/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

:root {
  --midnight: #0c1118;
  --pure-white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.7);
  --section-pad-dt: 140px;
  --section-pad-mb: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--pure-white);
  line-height: 1.6;
  background-color: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

/* GLOBAL IMPROVEMENTS */
h1, h2, h3, p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  font-size: clamp(15px, 2vw, 18px);
}

/* --- TYPOGRAPHY SYSTEM --- */

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: clamp(0.15em, 1vw, 0.25em); 
  line-height: 1.0;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  color: #ffffff !important; 
  text-transform: uppercase;
  display: block;
}

h1, h2, h3, .hero h1, .middle h2, .signup h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: #ffffff !important;
  letter-spacing: 0.03em;
}

/* --- SECTION 1: HERO --- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: url('../assets/images/hero.jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(20px, 6vw, 80px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: clamp(320px, 90%, 650px);
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 3rem); 
  line-height: 1.2;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.hero p {
  font-weight: 300;
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--white-muted);
  max-width: 420px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: clamp(0.9rem, 2vw, 1.1rem) clamp(1.6rem, 4vw, 2.4rem);
  font-size: clamp(12px, 1.5vw, 14px);
}

/* --- SECTION 2: MIDDLE --- */
.middle {
  background: #fcfaf9; 
  color: #1a1a1a;
  text-align: center;
  padding: clamp(70px, 10vw, var(--section-pad-dt)) clamp(16px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

.middle-container {
  width: 100%;
  max-width: clamp(320px, 92%, 1000px);
}

.middle h2 {
  color: #1a1a1a !important;
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.middle-content {
  display: inline-block;
  text-align: left; 
}

.middle-content p {
  font-weight: 300;
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: clamp(1.8, 2vw, 2.2);
  color: #4a4a4a;
}

/* --- SECTION 3: SIGNUP --- */
.signup {
  padding: clamp(70px, 10vw, var(--section-pad-dt)) clamp(16px, 6vw, 80px);
  background-color: #292F46;
  background-image: radial-gradient(circle at center, rgba(40,55,80,0.5) 0%, rgba(20,28,40,0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.signup h2 {
  font-size: clamp(2rem, 5vw, 3.5rem); 
}

.signup p {
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* FORM */
form {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: clamp(300px, 90%, 580px);
}

form input {
  flex: 1;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-size: 16px;
}

form button {
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* --- MEDIA QUERIES --- */

/* TABLETS */
@media (max-width: 1024px) {
  .middle-content {
    text-align: center;
  }

  form {
    max-width: 480px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .hero {
    align-items: flex-end;
    padding-bottom: 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .middle-content {
    text-align: center;
  }

  form {
    flex-direction: column;
    background: transparent !important;
    box-shadow: none;
    gap: 10px;
  }

  form input,
  form button {
    width: 100%;
    text-align: center;
    padding: 1.2rem;
  }
}

/* SMALL PHONES */
@media (max-width: 480px) {

  .hero h1 {
    line-height: 1.3;
  }

  .middle-content p {
    font-size: 17px;
  }
}

/* ULTRA SMALL */
@media (max-width: 360px) {

  .logo {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .signup h2 {
    font-size: 24px;
  }
}

/* LARGE SCREENS */
@media (min-width: 1440px) {

  .hero-content {
    max-width: 720px;
  }

  .middle-container {
    max-width: 1100px;
  }

  form {
    max-width: 640px;
  }
  
 
}