/* clonehdd.com — stylesheet */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-deep: #0f1b2d;
  --ink: #16202e;
  --ink-soft: #4a5a6e;
  --line: #dfe5ec;
  --accent: #0f6fbe;
  --accent-dark: #0a5490;
  --good: #1a8a4f;
  --warn: #b9770e;
  --bad: #c0392b;
  --radius: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav a:hover { background: var(--bg-alt); color: var(--accent); }
.nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #0f1b2d 0%, #14324f 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  max-width: 760px;
}
.hero p {
  font-size: 19px;
  color: #c3d3e3;
  max-width: 660px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-art img { width: 100%; height: auto; display: block; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Page head ---------- */

.page-head { padding: 48px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.2; }
.page-head .lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 720px; }

.crumbs { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }

.meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Sections ---------- */

section { padding: 44px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 { font-size: 28px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.25; }
h3 { font-size: 21px; margin: 32px 0 8px; line-height: 1.3; }
h4 { font-size: 18px; margin: 24px 0 6px; }
.section-lede { color: var(--ink-soft); margin: 0 0 28px; max-width: 720px; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.card .card-foot { margin-top: auto; font-size: 14px; }

.card-img { padding: 0; overflow: hidden; }
.card-img .thumb { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.card-img .thumb img { width: 100%; height: auto; display: block; }
.card-img .card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Figures ---------- */

img { max-width: 100%; height: auto; }

.banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 0 32px;
}

.fig { margin: 32px 0; }
.fig img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.fig figcaption {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.5;
}

.pick-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}
.badge-free { color: var(--good); border-color: #b6e0c8; background: #eef9f2; }
.badge-freemium { color: var(--warn); border-color: #f0dcb0; background: #fdf6e8; }
.badge-paid { color: var(--bad); border-color: #f2c4be; background: #fdefed; }
.badge-oss { color: #5b4bb5; border-color: #cfc9ef; background: #f2f0fc; }

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--bg-alt);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
tbody tr:hover { background: #fafbfd; }
td strong { font-weight: 600; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }
.partial { color: var(--warn); font-weight: 600; }

/* ---------- Prose ---------- */

.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 { margin-top: 44px; padding-top: 4px; }
.prose h2:first-child { margin-top: 0; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 16px;
}
.callout strong { display: block; margin-bottom: 4px; }
.callout-warn { border-left-color: var(--warn); background: #fdf6e8; }
.callout-danger { border-left-color: var(--bad); background: #fdefed; }

code {
  font-family: var(--mono);
  font-size: 14.5px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
pre {
  background: var(--bg-deep);
  color: #dbe6f2;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14.5px;
  line-height: 1.6;
}
pre code { background: none; border: none; color: inherit; padding: 0; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li > strong { display: block; font-size: 18px; margin-bottom: 4px; }

/* ---------- Pros / cons ---------- */

.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 28px 0; }
.proscons > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.proscons h4 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.pros { background: #f4fbf7; border-color: #cbe9d9 !important; }
.pros h4 { color: var(--good); }
.cons { background: #fdf5f4; border-color: #f3d3ce !important; }
.cons h4 { color: var(--bad); }
.proscons ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.proscons li { margin-bottom: 7px; }

/* ---------- Spec box ---------- */

.specs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 32px;
}
.specs dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 200px) 1fr; }
.specs dt {
  padding: 11px 16px;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.specs dd {
  margin: 0;
  padding: 11px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: none; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--ink-soft); font-size: 16px; }
.faq .faq-body p { margin: 0 0 12px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Related ---------- */

.related { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }
.related h2 { font-size: 20px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  color: #9fb3c8;
  padding: 48px 0 32px;
  margin-top: 64px;
  font-size: 15px;
}
.site-footer a { color: #cfe0f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 14px; color: #7f95ab; }

/* ---------- Utility ---------- */

.stack-list { list-style: none; padding: 0; margin: 0; }
.stack-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.stack-list li:last-child { border-bottom: none; }
.stack-list a { font-weight: 600; text-decoration: none; font-size: 17px; }
.stack-list .desc { color: var(--ink-soft); font-size: 15px; flex: 1 1 300px; }

.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 12px 16px;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 400px; }
  .specs dl { grid-template-columns: 1fr; }
  .specs dt { border-bottom: none; padding-bottom: 2px; background: #fff; }
  .specs dd { padding-top: 2px; }
}
