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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #0f0f0f, #1b1b1b);
  color: #eee;
  overflow-x: hidden;
}

/* NAVBAR */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 10px #000;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
}
.logo span {
  color: #5ae8ff;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-btn {
  background: transparent;
  border: 1px solid #5ae8ff;
  color: #5ae8ff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-btn:hover {
  background: #5ae8ff;
  color: #111;
}

main {
  margin-top: 90px;
}

.page {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.page.active {
  display: block;
  opacity: 1;
}

/* HOME */
.hero {
  text-align: center;
  padding: 100px 20px 50px;
}
.hero h1 {
  font-size: 3em;
}
.hero h1 span {
  color: #5ae8ff;
}
.hero p {
  color: #bbb;
}
.cta {
  margin-top: 30px;
  padding: 12px 30px;
  font-size: 1.1em;
  background: #5ae8ff;
  color: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.cta:hover {
  background: #3ad8f8;
}

/* WHY WEBSITES MATTER */
.why-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #141414, #1f1f1f);
  border-top: 1px solid #222;
}
.why-section h2 {
  color: #5ae8ff;
  margin-bottom: 40px;
  font-size: 2em;
}
.why-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.why-card {
  background: rgba(20,20,20,0.85);
  border: 1px solid #2b2b2b;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  transition: 0.3s;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(90,232,255,0.3);
}
.why-card h3 {
  color: #5ae8ff;
  margin-bottom: 10px;
}

/* BUILDER */
.builder-container {
  width: 90%;
  margin: auto;
  padding: 40px 0;
  max-width: 1000px;
}
.builder-header {
  margin-bottom: 20px;
}
.editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}
.code-area {
  display: flex;
  flex-direction: column;
}
.code-area label {
  font-weight: 600;
  color: #5ae8ff;
  margin-bottom: 8px;
}

/* Site name input styling */
#site-name {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #fff;
  font-family: inherit;
}
.hint { color:#888; font-size:12px; margin-top:6px; }

/* textareas */
textarea {
  width: 100%;
  height: 200px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  resize: vertical;
  transition: border 0.3s;
}
textarea:focus {
  border-color: #5ae8ff;
  outline: none;
}

/* controls */
.builder-controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top:20px;
}
.builder-controls button{
  padding:10px 16px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  background:#5ae8ff;
  color:#111;
}
.builder-controls button.secondary{
  background:#2b2b2b;color:#fff;border:1px solid #333;
}
.note {
  text-align: center;
  color: #777;
  margin-top:12px;
}

/* share output */
.share-output{ margin-top:18px; text-align:center; color:#cfeef7;}
.share-output .link{ display:inline-block; background:#061a1f; color:#5ae8ff; padding:8px 12px; border-radius:8px; border:1px solid #0e6c81; text-decoration:none; margin-right:8px; word-break:break-all; max-width:100%}
.share-output button.copy{ margin-left:8px; padding:8px 10px; border-radius:8px; border:none; background:#2b2b2b; color:#fff; cursor:pointer}

/* HELP */
.help-container {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
}
#help-input {
  width: 100%;
  height: 150px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  margin: 20px 0;
  font-family: monospace;
}
#ask-btn {
  background: #5ae8ff;
  color: #111;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
#ask-btn:hover {
  background: #3ad8f8;
}
.response-box {
  background: rgba(30,30,30,0.8);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  color: #ccc;
  min-height: 60px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  color: #666;
  background: #0d0d0d;
  margin-top: 60px;
  border-top: 1px solid #222;
}
