/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #fff8f3;
  color: #000;
  line-height: 1.5;
  width: 100%;
  margin: 0 auto;
  padding-top: 80px; /* adjust depending on header height */
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 15px 0;
  z-index: 1000;
}

.container {
  width: 95%;
  margin: auto;
  max-width: 1920px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.main-nav {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

/* Header login/signup buttons */
.header-buttons {
  display: flex;
  gap: 20px;           /* space between login & signup */
  margin-left: auto;    /* push to the right */
  align-items: center;
}

.header-buttons a {
  display: inline-block;
  padding: 5px 10px;
  background: #FF6B00;   /* orange */
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.header-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255,107,0,0.3);
  background: #e65a00;
}

/* Hero Section */
.hero {
  text-align: center;
  color: #000;
  padding: 40px 20px;
}

.hero h1 {
  color: #000;
  font-size: 2.5rem;
  margin-bottom: 0.1em;
}

.hero h2 {
  color: #000;
  font-size: 1.5rem;
  margin-bottom: 0.3em;
}

.hero p {
  color: #000;
  font-size: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Login/Signup Buttons on page */
.auth-buttons {
  text-align: center;
  margin: 40px 0;
}

.auth-buttons a {
  display: inline-block;
  margin: 15px 20px;
  padding: 22px 50px;
  background: #FF6B00;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.auth-buttons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(255,107,0,0.3);
  background: #e65a00;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 40px 20px;
  justify-items: center;
}

.tool-card {
  background: #fff;
  border: 1px solid black;
  border-radius: 10px;
  width: 232px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(254,80,0,0.1);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(254,80,0,0.2);
}

.tool-card img.tool-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 10px;
}

.tool-card span {
  font-size: 14px;
  color: #77787b;
  display: block;
  margin-top: 5px;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

/* Locked tools overlay */
.tool-card.locked {
  pointer-events: none;
  opacity: 0.5;
  position: relative;
}

.tool-card.locked::after {
  content: "Login or Subscribe to unlock";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* Description Section */
.description {
  column-count: 4;
  column-gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.description p {
  margin-bottom: 1em;
  line-height: 1.5;
  color: #000;
  font-size: 0.8rem;
  break-inside: avoid;
  text-align: justify;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  width: 100%;
  border-top: 1px solid #333;
  position: relative;
  bottom: auto;
  left: auto;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1400px) { .tools-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .auth-buttons a { font-size: 20px; padding: 18px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero h2 { font-size: 1.2rem; }
  .hero p { font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .auth-buttons a { font-size: 18px; padding: 15px 35px; }
  footer { font-size: 0.85rem; padding: 12px 10px; }
}
