/* css/index.css */

/* =========================
   ROOT
========================= */

:root {
 --accent-color: #7c3aed;
}

/* =========================
   RESET
========================= */

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

html,
body {
 width: 100%;
 min-height: 100vh;
}

body {
 font-family: Inter, Arial, sans-serif;

 color: white;

 overflow-x: hidden;

 background: linear-gradient(135deg, #4c1d95, #312e81, #111827);

 position: relative;

 transition: background 0.3s ease;
}

/* =========================
   BACKGROUND IMAGE
========================= */

.background-image {
 position: fixed;
 inset: 0;

 z-index: 1;

 display: none;

 background-size: cover;
 background-position: center;
 background-repeat: no-repeat;
}

.overlay {
 position: fixed;
 inset: 0;

 z-index: 2;

 background: rgba(0, 0, 0, 0.55);
}

/* =========================
   NAVBAR
========================= */

.navbar {
 position: relative;
 z-index: 3;

 display: flex;
 justify-content: space-between;
 align-items: center;

 padding: 22px 30px;
}

.logo {
 font-size: 30px;
 font-weight: 800;

 letter-spacing: 0.5px;
}

.login-btn {
 text-decoration: none;

 color: white;

 background: rgba(255, 255, 255, 0.12);

 border: 1px solid rgba(255, 255, 255, 0.1);

 backdrop-filter: blur(12px);

 padding: 12px 18px;

 border-radius: 12px;

 transition: 0.2s;
}

.login-btn:hover {
 background: rgba(255, 255, 255, 0.18);
}

/* =========================
   MAIN
========================= */

main {
 position: relative;
 z-index: 3;

 min-height: calc(100vh - 90px);

 display: flex;
 justify-content: center;
 align-items: center;

 padding: 30px;
}

/* =========================
   LANDING PAGE
========================= */

.landing-card {
 width: 100%;
 max-width: 760px;

 display: flex;
 flex-direction: column;

 align-items: center;

 gap: 20px;

 text-align: center;

 padding: 60px 40px;

 background: rgba(20, 20, 20, 0.82);

 backdrop-filter: blur(18px);

 border: 1px solid rgba(255, 255, 255, 0.08);

 border-radius: 28px;
}

.landing-card h1 {
 font-size: 52px;
 font-weight: 800;

 line-height: 1.2;
}

.landing-card p {
 color: #d1d5db;

 font-size: 18px;

 line-height: 1.8;

 max-width: 550px;
}

/* =========================
   QUESTION CARD
========================= */

.question-card {
 width: 100%;
 max-width: 600px;

 background: rgba(20, 20, 20, 0.82);

 backdrop-filter: blur(18px);

 border: 1px solid rgba(255, 255, 255, 0.08);

 border-radius: 24px;

 padding: 30px;
}

.card-header {
 margin-bottom: 24px;
}

.card-header h1 {
 text-align: center;

 font-size: 32px;

 line-height: 1.3;

 margin-bottom: 12px;
}

.card-header p {
 text-align: center;

 color: #b8b8b8;

 line-height: 1.6;
}

/* =========================
   FORM
========================= */

.message-form {
 display: flex;
 flex-direction: column;

 gap: 15px;
}

.message-form input,
.message-form textarea {
 width: 100%;

 border: none;
 outline: none;

 background: #1b1b1b;

 color: white;

 padding: 16px;

 border-radius: 14px;

 font-size: 15px;

 transition: 0.2s;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
 color: #8f8f8f;
}

.message-form input:focus,
.message-form textarea:focus {
 box-shadow: 0 0 0 2px var(--accent-color);
}

.message-form textarea {
 min-height: 160px;

 resize: vertical;
}

.message-form button {
 border: none;

 background: var(--accent-color);

 color: white;

 padding: 16px;

 border-radius: 14px;

 font-size: 15px;
 font-weight: 700;

 cursor: pointer;

 transition: 0.2s;
}

.message-form button:hover {
 transform: translateY(-2px);

 filter: brightness(1.1);
}

.message-form button:disabled {
 opacity: 0.7;

 cursor: not-allowed;

 transform: none;
}

/* =========================
   TABLET
========================= */

@media (max-width: 768px) {
 .navbar {
  padding: 18px;
 }

 .logo {
  font-size: 24px;
 }

 .landing-card {
  padding: 40px 25px;
 }

 .landing-card h1 {
  font-size: 40px;
 }

 .landing-card p {
  font-size: 16px;
 }

 .question-card {
  max-width: 100%;

  padding: 24px;
 }

 .card-header h1 {
  font-size: 26px;
 }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
 .navbar {
  padding: 15px;
 }

 .logo {
  font-size: 22px;
 }

 .login-btn {
  padding: 10px 14px;

  font-size: 14px;
 }

 main {
  padding: 15px;
 }

 .landing-card {
  padding: 30px 20px;

  border-radius: 22px;
 }

 .landing-card h1 {
  font-size: 30px;
 }

 .landing-card p {
  font-size: 15px;
 }

 .question-card {
  padding: 20px;

  border-radius: 20px;
 }

 .card-header h1 {
  font-size: 22px;
 }

 .card-header p {
  font-size: 14px;
 }

 .message-form input,
 .message-form textarea,
 .message-form button {
  font-size: 14px;
 }
}