/* ===== CSS Variables & Theme ===== */
:root {
  --bg-primary: #1a2a20;
  --bg-secondary: #22352a;
  --bg-card: #2c4235;
  --bg-card-hover: #36503e;
  --text-primary: #ecf9f2;
  --text-secondary: #a8d5b8;
  --text-muted: #78a088;
  --accent-1: #10b981;
  --accent-2: #34d399;
  --accent-3: #fbbf24;
  --accent-4: #a78bfa;
  --gradient-1: linear-gradient(135deg, #10b981, #34d399);
  --gradient-2: linear-gradient(135deg, #34d399, #fbbf24);
  --gradient-3: linear-gradient(135deg, #fbbf24, #a78bfa);
  --glow-emerald: rgba(16, 185, 129, 0.4);
  --glow-lime: rgba(52, 211, 153, 0.4);
  --border-color: rgba(16, 185, 129, 0.25);
  --border-color-hover: rgba(16, 185, 129, 0.5);
  --header-height: 64px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Animated Background ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(52, 211, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(26, 42, 32, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  box-shadow: 0 1px 0 var(--border-color), inset 0 -1px 0 rgba(16, 185, 129, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.header-nav a:hover {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-logo span {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Main Content ===== */
.main-content {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 200px);
  position: relative;
  z-index: 1;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 340px;
  height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08), transparent);
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-visual::after {
  content: '✨';
  font-size: 80px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ===== Tools Grid ===== */
.tools-section {
  padding: 80px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tools-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tools-section > .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 50px;
  font-size: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.1);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:nth-child(2)::before {
  background: var(--gradient-2);
}

.tool-card:nth-child(3)::before {
  background: var(--gradient-3);
}

.tool-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tool-card:nth-child(1) .tool-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-1);
}

.tool-card:nth-child(2) .tool-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-2);
}

.tool-card:nth-child(3) .tool-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-3);
}

.tool-icons h3 {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.tool-card .btn {
  align-self: flex-start;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(16, 185, 129, 0.08);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Section Dividers ===== */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: 50px 24px 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 70px 24px 30px;
  position: relative;
}

.page-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 16px auto 0;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Tool Page Layout ===== */
.tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.tool-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group textarea,
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--glow-emerald);
}

.form-group textarea {
  min-height: 100px;
}

/* File upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  padding: 50px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--accent-1);
  background: rgba(16, 185, 129, 0.05);
}

.file-upload.has-file {
  border-color: var(--accent-2);
  border-style: solid;
  padding: 20px;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload .upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.file-upload p {
  color: var(--text-secondary);
  font-size: 13px;
}

.file-upload .file-name {
  color: var(--accent-2);
  font-weight: 500;
  margin-top: 8px;
}

.file-preview {
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  margin: 16px auto 0;
  display: none;
}

.file-preview.show {
  display: block;
}

/* Outpainting controls */
.outpaint-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 12px;
  color: var(--text-secondary);
}

.control-group input[type="number"],
.control-group select {
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.control-group input[type="number"]:focus,
.control-group select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--glow-emerald);
}

/* ===== Result Area ===== */
.result-area {
  display: none;
}

.result-area.show {
  display: block;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.result-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.result-card img {
  max-width: 100%;
  max-height: 512px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Loading Spinner ===== */
.loading {
  display: none;
  text-align: center;
  padding: 50px 24px;
}

.loading.show {
  display: block;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  border-radius: 10px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.data-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(16, 185, 129, 0.03);
}

/* ===== Contact Page ===== */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 24px 80px;
  text-align: center;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 50px 36px;
}

.contact-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.93rem;
}

.contact-email {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-1);
  border-radius: 10px;
  color: var(--accent-1);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 80px 24px 40px;
  }
  .hero p {
    margin: 0 auto 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    flex: 0 0 260px;
    height: 260px;
    order: -1;
  }
  .hero-visual::before {
    width: 220px;
    height: 220px;
  }
  .hero-visual::after {
    font-size: 64px;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 15, 13, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .hamburger {
    display: flex;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .tool-form {
    padding: 20px;
  }

  .outpaint-controls {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 50px 20px 24px;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  .tool-page {
    padding: 20px 16px 50px;
  }
  .guide-card {
    padding: 20px;
  }
  .result-card {
    padding: 20px;
  }
  .file-upload {
    padding: 36px 20px;
  }
  .tools-section {
    padding: 40px 16px 60px;
  }
  .hero {
    padding: 60px 16px 30px;
  }

  .article-page {
    padding: 24px 16px 50px;
  }
  .article-page h1 {
    font-size: 1.4rem;
  }
  .article-page h2 {
    font-size: 1.15rem;
  }

  .contact-page {
    padding: 30px 16px 50px;
  }

  .role-selector {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  .role-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .mode-selector {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .mode-btn {
    padding: 10px 8px;
  }
}

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

  .hero {
    padding: 50px 16px 24px;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-visual {
    flex: 0 0 200px;
    height: 200px;
  }
  .hero-visual::before {
    width: 170px;
    height: 170px;
  }
  .hero-visual::after {
    font-size: 50px;
  }

  .tool-page {
    padding: 16px 12px 36px;
  }
  .tool-form {
    padding: 16px;
  }
  .guide-card {
    padding: 16px;
  }
  .result-card {
    padding: 16px;
  }
  .result-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header {
    padding: 40px 16px 20px;
  }
  .page-header h1 {
    font-size: 1.3rem;
  }

  .legal-content {
    padding: 24px 16px 50px;
  }

  .contact-card {
    padding: 28px 16px;
  }

  .file-upload {
    padding: 26px 16px;
  }

  .role-selector {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .mode-selector {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .blog-grid {
    padding: 0 16px;
    gap: 12px;
  }
  .blog-card {
    padding: 16px;
  }

  .article-page {
    padding: 16px 12px 36px;
  }
}

/* ===== Grid Layout Utilities ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

/* ===== Step Cards ===== */
.step-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}

.step-card:nth-child(1) .step-number {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-1);
  border-radius: 12px;
}

.step-card:nth-child(2) .step-number {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-2);
  border-radius: 12px;
}

.step-card:nth-child(3) .step-number {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-3);
  border-radius: 12px;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== Use Case Cards ===== */
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.usecase-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.usecase-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.75;
}

/* ===== Utilities ===== */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Blog Styles ===== */
.blog-search {
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}
.blog-search input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--glow-emerald);
}
.blog-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.5;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.1);
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 36px 24px 50px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}
.pagination button {
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s;
}
.pagination button:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
}
.pagination button.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.no-results {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* ===== Article Page ===== */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 70px;
}
.article-page h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-page .article-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.article-page h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--text-primary);
}
.article-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}
.article-page p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.article-page ul, .article-page ol {
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
}
.article-page li {
  margin-bottom: 8px;
}
.article-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.article-page .back-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Guide Card & FAQ ===== */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.guide-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.guide-card p,
.guide-card li {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.guide-card ul {
  padding-left: 20px;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.93rem;
}
.faq-q::after {
  content: '+';
  font-size: 16px;
  color: var(--text-muted);
}
.faq-q.open::after {
  content: '−';
}
.faq-a {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  padding-top: 0;
}
.faq-a.open {
  max-height: 500px !important;
  padding-top: 10px;
}