/* -------------------------------------------------------------
 * Clenzy — Clean, Minimalist Landing Page
 * Designed like native Apple / indie Mac software (Linear/Panic style)
 * ----------------------------------------------------------- */

:root {
  --bg: #0C0E14;
  --bg-subtle: #141720;
  --bg-card: #181C26;
  --border: #222733;
  --border-subtle: #1A1F2B;

  --text-main: #F1F4F9;
  --text-muted: #8E98A8;
  --text-dim: #5A6474;

  --primary: #B70969;
  --primary-hover: #D00B78;
  --teal: #14B8A6;
  --blue: #3B82F6;
  --purple: #8B5CF6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* -------------------------------------------------------------
 * Header
 * ----------------------------------------------------------- */
.header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.brand-text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-author {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-author:hover {
  color: var(--text-main);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
  background: #202634;
  border-color: #2F374A;
}

/* -------------------------------------------------------------
 * Hero Section
 * ----------------------------------------------------------- */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero-icon {
  margin-bottom: 24px;
}

.hero-icon img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 400;
}

.download-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #000000;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-main:hover {
  background: #E5E7EB;
  transform: translateY(-1px);
}

.apple-svg {
  width: 16px;
  height: 16px;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-sub:hover {
  background: var(--bg-card);
  border-color: #2F374A;
}

.meta-line {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* -------------------------------------------------------------
 * Preview Section (macOS Window & Widget)
 * ----------------------------------------------------------- */
.preview-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.preview-frame {
  position: relative;
}

.mac-window {
  background: #11141D;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7);
}

.window-titlebar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #0E1017;
  border-bottom: 1px solid var(--border-subtle);
}

.dots {
  display: flex;
  gap: 6px;
  width: 60px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.window-spacer {
  width: 60px;
}

.window-content {
  display: flex;
  min-height: 380px;
}

.app-sidebar {
  width: 170px;
  background: #0E1017;
  border-right: 1px solid var(--border-subtle);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sidebar-row.active {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-weight: 500;
}

.row-icon {
  font-size: 0.625rem;
  opacity: 0.7;
}

.app-main {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-heading {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.app-scan-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: 0;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: default;
}

.storage-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.storage-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.gb-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.gb-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
}

.bar-fill.apps { background: #3B82F6; }
.bar-fill.dev { background: #8B5CF6; }
.bar-fill.docs { background: #14B8A6; }
.bar-fill.media { background: #F97316; }
.bar-fill.cleanable { background: #B70969; }

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-color {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.dot-color.blue { background: #3B82F6; }
.dot-color.purple { background: #8B5CF6; }
.dot-color.teal { background: #14B8A6; }
.dot-color.pink { background: #B70969; }

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vital-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.vb-title {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.vb-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.vb-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Floating Widget Preview */
.widget-preview {
  position: absolute;
  top: 40px;
  right: -20px;
  width: 260px;
  background: #11141D;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.wp-title {
  color: var(--text-main);
}

.wp-live {
  font-size: 0.625rem;
  color: var(--teal);
  font-weight: 600;
}

.wp-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
}

.wp-label { color: var(--text-dim); }
.wp-num { color: #FFFFFF; font-weight: 600; }

.wp-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.wp-bar-inner {
  width: 76%;
  height: 100%;
  background: var(--primary);
}

.wp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.wp-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.wpc-title {
  display: block;
  font-size: 0.625rem;
  color: var(--text-dim);
}

.wpc-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

/* -------------------------------------------------------------
 * Principles (4 Clean Columns)
 * ----------------------------------------------------------- */
.principles {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 72px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
}

.p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.p-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.p-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
 * Creator Section
 * ----------------------------------------------------------- */
.creator-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.creator-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cr-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cr-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cr-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.cr-link:hover {
  background: #242A39;
  border-color: #374155;
}

/* -------------------------------------------------------------
 * Footer
 * ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.f-links {
  display: flex;
  gap: 18px;
}

.f-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.f-links a:hover {
  color: var(--text-main);
}

/* -------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------- */
@media (max-width: 820px) {
  .widget-preview { display: none; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .app-sidebar { width: 130px; }
}

@media (max-width: 580px) {
  .hero-title { font-size: 2rem; }
  .p-grid { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .creator-box { flex-direction: column; align-items: flex-start; }
}
