/* -------------------------------
   GLOBAL
-------------------------------- */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f9fc;
  color: #222;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* -------------------------------
   HEADER
-------------------------------- */
.header {
  background: white;
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
}

nav a:hover {
  color: #007bff;
}

/* -------------------------------
   HERO
-------------------------------- */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  color: #555;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.cta-btn:hover {
  background: #0056b3;
}

/* -------------------------------
   FEATURES
-------------------------------- */
.features {
  padding: 40px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* -------------------------------
   USE CASES
-------------------------------- */
.usecases {
  padding: 40px 0;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

/* -------------------------------
   CTA
-------------------------------- */
.cta {
  text-align: center;
  padding: 50px 0;
}

/* -------------------------------
   TOOL PAGE
-------------------------------- */
.tool-section {
  padding: 40px 0;
}

.form-group {
  margin-bottom: 20px;
}

input[type="file"],
input[type="text"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
}

/* Ratio grid */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.ratio-grid label {
  background: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ddd;
}

.ratio-grid input {
  margin-right: 5px;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #218838;
}

/* Status */
#status {
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
}

/* Preview */
#preview {
  margin-top: 20px;
  text-align: center;
}

.preview-img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* -------------------------------
   FOOTER
-------------------------------- */
.footer {
  background: white;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}