* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.5;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #4b5563;
}

.hero {
  padding: 56px 0 30px;
}

.hero-card,
.tool-card,
.section-card,
.history-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 28px;
  margin-bottom: 20px;
}

.hero h1,
.page-title {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.1;
}

.hero p,
.page-intro {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

.hero-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #374151;
}

.hero-list li {
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 28px;
}

.section-subtitle {
  margin: 0 0 18px;
  color: #6b7280;
}

.tool-section {
  padding: 10px 0 28px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 12px;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #111827;
}

button {
  border: none;
  border-radius: 14px;
  background: #111827;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
}

button:hover {
  opacity: 0.95;
}

.hint {
  color: #6b7280;
  font-size: 14px;
  margin-top: 10px;
}

.error {
  color: #b91c1c;
  margin-top: 12px;
  font-weight: 600;
}

.result {
  margin-top: 22px;
  display: none;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  background: #fafafa;
}

.result.show {
  display: block;
}

.status-badge,
.badge {
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 14px;
}

.safe { background: #dcfce7; color: #166534; }
.suspicious { background: #fef3c7; color: #92400e; }
.malicious { background: #fee2e2; color: #991b1b; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  background: white;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

.sections {
  padding: 10px 0 56px;
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.section-card p {
  margin: 0;
  color: #4b5563;
}

.cta-box {
  margin-top: 30px;
  background: #111827;
  color: white;
  border-radius: 20px;
  padding: 28px;
}

.cta-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.cta-box p {
  margin: 0 0 16px;
  color: #e5e7eb;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-link {
  background: #c6d1e6;
  color: #111827;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-link:hover {
  background: #111827;
  color: white;
}

.history-page {
  padding: 56px 0;
}

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.history-table th {
  background: #f8fafc;
  font-size: 14px;
}

.history-table td {
  font-size: 15px;
}

.empty,
.error-box {
  padding: 18px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 600;
}

.empty {
  background: #f8fafc;
  color: #475569;
}

.error-box {
  background: #fee2e2;
  color: #991b1b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 28px;
}

.home-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.tech-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #374151;
}

.tech-list li {
  margin-bottom: 8px;
}

.home-top-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.home-top-image-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 18px;
}

.home-top-image-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .home-top-images,
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }
}


.page {
  padding: 56px 0;
}

.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  padding: 32px;
}

.subtitle {
  margin: 0 0 24px;
  color: #6b7280;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: #374151;
}

textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

textarea:focus,
select:focus {
  border-color: #111827;
}

.actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #111827;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.info-box {
  margin-top: 28px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  color: #4b5563;
}

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


footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 20px 0;
}

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

.footer-text {
  font-size: 14px;
  color: #6b7280;
}

.footer-icons img {
  width: 24px;
  height: 24px;
  margin-left: 12px;
  transition: transform 0.2s;
}

.footer-icons img:hover {
  transform: scale(1.2);
}

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

  .hero h1,
  .page-title {
    font-size: 32px;
  }

  .navbar-inner {
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
  }
}
