html,
body {
  padding: 0;
  margin: 0;
}

.blog {
  max-width: 900px;
  background: #f7f7f7;
  margin: 0 auto;
  padding: 50px;
}

.markdown {
  max-width: 800px;
}

.markdown h1 {
  text-align: center;
}

.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  text-align: left;
}

.markdown blockquote {
  background: #fafafa;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 5px 10px 5px 35px;
  position: relative;
  overflow: hidden;
}

.markdown blockquote:before,
.markdown blockquote:after {
  content: "“";
  position: absolute;
  left: 5px;
  top: 10px;
  line-height: 50px;
  font-size: 80px;
  color: rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}

.markdown blockquote:after {
  content: "”";
  left: initial;
  top: initial;
  line-height: 0px;
  bottom: 0px;
  right: 0px;
}

.markdown img {
  display: block;
  margin: 10px auto;
  max-width: 100%;
}

.markdown img + code {
  text-align: center;
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

.markdown code {
  background: #313c51;
  color: white;
  padding: 5px;
  border-radius: 3px;
  display: inline-block;
  width: 100%;
  overflow: auto;
}

/* 
    Caption Generator - Brand Identity
    Colors: Social Purple, Electric Pink, Soft Lavender
*/

:root {
  --primary-color: #8b5cf6; /* Social Purple */
  --primary-hover: #7c3aed;
  --secondary-color: #ec4899; /* Electric Pink */
  --text-color: #1e1b4b;
  --text-light: #6366f1;
  --bg-color: #ffffff;
  --bg-alt: #f5f3ff;
  --border-color: #e0e7ff;
  --container-width: 1000px;
  --font-main: "DM Sans", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

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

/* Sticky Footer Layout */
html,
body {
  height: 100%;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #1e1b4b;
  letter-spacing: -0.03em;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e1b4b;
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top left, #f5f3ff, #ffffff);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ede9fe;
  color: var(--primary-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: 1.3rem;
  color: #4b5563;
  max-width: 650px;
  margin: 0 auto 3rem;
}

/* Hero Form */
.cta-form-container {
  max-width: 500px;
  margin: 0 auto 40px;
}

.input-group {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: 100px;
  box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-color);
}

.input-group input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-main);
  border-radius: 100px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}

/* Grid & Cards */
section {
  padding: 100px 0;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Blog */
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fdf2f8;
  color: var(--secondary-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-card h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* Contact Section */
.contact-section {
  background: var(--bg-alt);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: #1e1b4b;
  color: #e0e7ff;
  padding: 100px 0 40px;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -0.05em;
}

.site-footer h3 span {
  color: var(--primary-color);
}

.footer-cta {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  color: var(--secondary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-links h4,
.footer-legal h4 {
  color: #818cf8;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links a,
.footer-legal a {
  color: #c7d2fe;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid #312e81;
  text-align: center;
  color: #6366f1;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .input-group input {
    background: #fff;
    border-radius: 100px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 
    Caption Generator - Brand Identity
    Colors: Social Purple, Electric Pink, Soft Lavender
*/

:root {
  --primary-color: #8b5cf6; /* Social Purple */
  --primary-hover: #7c3aed;
  --secondary-color: #ec4899; /* Electric Pink */
  --text-color: #1e1b4b;
  --text-light: #6366f1;
  --bg-color: #ffffff;
  --bg-alt: #f5f3ff;
  --border-color: #e0e7ff;
  --container-width: 1000px;
  --font-main: "DM Sans", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

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

/* Sticky Footer Layout */
html,
body {
  height: 100%;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #1e1b4b;
  letter-spacing: -0.03em;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e1b4b;
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top left, #f5f3ff, #ffffff);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ede9fe;
  color: var(--primary-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: 1.3rem;
  color: #4b5563;
  max-width: 650px;
  margin: 0 auto 3rem;
}

/* Hero Form */
.cta-form-container {
  max-width: 500px;
  margin: 0 auto 40px;
}

.input-group {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: 100px;
  box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-color);
}

.input-group input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-main);
  border-radius: 100px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}

/* Grid & Cards */
section {
  padding: 100px 0;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Blog */
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fdf2f8;
  color: var(--secondary-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-card h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* Contact Section */
.contact-section {
  background: var(--bg-alt);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: #1e1b4b;
  color: #e0e7ff;
  padding: 100px 0 40px;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -0.05em;
}

.site-footer h3 span {
  color: var(--primary-color);
}

.footer-cta {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  color: var(--secondary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-links h4,
.footer-legal h4 {
  color: #818cf8;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-links a,
.footer-legal a {
  color: #c7d2fe;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid #312e81;
  text-align: center;
  color: #6366f1;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .input-group input {
    background: #fff;
    border-radius: 100px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Tool Specific Styles */
.tool-section {
  background: var(--bg-alt);
  padding: 60px 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.tool-form-card,
.tool-result-card {
  background: #fff;
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-color);
  min-height: 500px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: #fff;
  cursor: pointer;
}

/* Result Area */
.result-placeholder,
.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
  color: #94a3b8;
}

.result-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.btn-copy {
  background: #f3f4f6;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #e5e7eb;
}

.caption-output {
  background: #f9fafb;
  padding: 24px;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #374151;
  border: 1px solid #f3f4f6;
}

@media (max-width: 992px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-form-card,
  .tool-result-card {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
