* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

:root {
  --bg-dark: #10131f;
  --bg-card: #171b2d;
  --bg-soft: #202640;
  --orange: #ff5f1f;
  --blue: #4d9fff;
  --green: #28c76f;
  --yellow: #ffb020;
  --red: #ff4d4d;
  --text-main: #ffffff;
  --text-muted: #b9c0d4;
  --border: rgba(255, 255, 255, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.header {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 31, 0.25), transparent 35%),
    radial-gradient(circle at top right, rgba(77, 159, 255, 0.25), transparent 35%),
    var(--bg-dark);
  padding: 24px;
}

.navbar {
  max-width: 1150px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.logo-box h1 {
  font-size: 24px;
}

.logo-box p {
  color: var(--text-muted);
  font-size: 14px;
}

.nav-btn {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 999px;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--orange);
}

.hero {
  max-width: 1150px;
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 95, 31, 0.14);
  color: #ffb39a;
  border: 1px solid rgba(255, 95, 31, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-content h2 {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 630px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--orange), #ff8a50);
  box-shadow: 0 14px 35px rgba(255, 95, 31, 0.25);
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  color: white;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-card {
  background: rgba(23, 27, 45, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.scan-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid rgba(77, 159, 255, 0.4);
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, rgba(77, 159, 255, 0.18), transparent);
}

.scan-ring::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 95, 31, 0.8);
  animation: spin 7s linear infinite;
}

.scan-ring span {
  font-size: 34px;
  font-weight: 900;
  color: white;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-card h3 {
  text-align: center;
  margin-bottom: 20px;
}

.mini-post {
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.mini-post span {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.mini-post.safe span {
  background: rgba(40, 199, 111, 0.18);
  color: #74f3ad;
}

.mini-post.warning span {
  background: rgba(255, 176, 32, 0.18);
  color: #ffd68a;
}

.mini-post.danger span {
  background: rgba(255, 77, 77, 0.18);
  color: #ff9d9d;
}

.mini-post p {
  color: var(--text-muted);
  font-size: 14px;
}

.features-section,
.demo-section,
.workflow-section {
  padding: 80px 24px;
  max-width: 1150px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title span {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title h2 {
  font-size: 38px;
  margin-top: 8px;
}

.section-title p {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 24px;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 95, 31, 0.45);
}

.feature-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.input-panel,
.result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 26px;
}

.input-panel label {
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
}

textarea {
  width: 100%;
  height: 220px;
  resize: vertical;
  background: #0d1020;
  border: 1px solid var(--border);
  color: white;
  padding: 16px;
  border-radius: 18px;
  outline: none;
  font-size: 15px;
}

textarea:focus {
  border-color: var(--blue);
}

.sample-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.sample-buttons button {
  border: none;
  cursor: pointer;
  background: var(--bg-soft);
  color: white;
  padding: 10px 13px;
  border-radius: 12px;
  transition: 0.3s;
}

.sample-buttons button:hover {
  background: var(--blue);
}

.analyze-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  padding: 15px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  transition: 0.3s;
}

.analyze-btn:hover {
  transform: translateY(-3px);
}

.result-panel h3 {
  margin-bottom: 16px;
}

.result-box {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  background: var(--bg-soft);
}

.result-status {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 14px;
}

.result-box.default .result-status {
  color: var(--text-muted);
}

.result-box.safe .result-status {
  color: var(--green);
}

.result-box.review .result-status {
  color: var(--yellow);
}

.result-box.spam .result-status,
.result-box.toxic .result-status {
  color: var(--red);
}

.score-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.score-bar {
  flex: 1;
  height: 12px;
  background: #0d1020;
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  border-radius: 999px;
  transition: 0.5s;
}

#scoreText {
  min-width: 45px;
  text-align: right;
  font-weight: 900;
}

#resultMessage {
  color: var(--text-muted);
}

.details-card,
.suggestion-card {
  background: #0d1020;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 18px;
  margin-top: 16px;
}

.details-card h4,
.suggestion-card h4 {
  margin-bottom: 10px;
}

.details-card ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.suggestion-card p {
  color: var(--text-muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 24px;
}

.timeline-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  font-weight: 900;
  margin-bottom: 16px;
}

.timeline-item h3 {
  margin-bottom: 10px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 15px;
}

.footer {
  text-align: center;
  padding: 45px 24px;
  border-top: 1px solid var(--border);
  background: #0d1020;
}

.footer p {
  color: var(--text-muted);
}

.footer-small {
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h2 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .navbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .features-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 34px;
  }

  .header {
    padding: 18px;
  }
}