/* ══════════════════════════════════════════════════════════════
   HOME V3 SPECIFIC STYLES
   ══════════════════════════════════════════════════════════════ */

/* HERO V3 */
.home-hero-v3 {
  position: relative;
  padding: 96px 40px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

html:not(.dark) .home-hero-v3 {
  border-bottom-color: var(--border-warm);
}

.home-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  min-height: 540px;
  position: relative;
  z-index: 2;
}

.home-hero-content {
  padding-bottom: 96px;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}
html:not(.dark) .home-hero-eyebrow { color: var(--text-light-dim); }

.home-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.home-hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  color: var(--text-primary);
}
html:not(.dark) .home-hero-title { color: var(--text-light); }

.home-hero-title em {
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
html:not(.dark) .home-hero-title em { color: var(--text-light); }

.home-hero-title em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -6px;
  bottom: 0.08em;
  height: 0.42em;
  background: rgba(0, 212, 255, 0.18);
  z-index: -1;
}
html:not(.dark) .home-hero-title em::after { background: rgba(0, 102, 204, 0.15); }

.home-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 48px;
}
html:not(.dark) .home-hero-sub { color: var(--text-light-mid); }

.home-hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}
html:not(.dark) .home-hero-sub strong { color: var(--text-light); }

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--background-dark);
  border: none;
  padding: 13px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
html:not(.dark) .home-btn-primary {
  background: var(--text-light);
  color: var(--bg-warm);
}

.home-btn-primary:hover {
  background: var(--cyan);
  transform: translateY(-1px);
  color: #fff;
}

.home-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--text-mid);
  border: none;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
html:not(.dark) .home-btn-ghost { color: var(--text-light-mid); }

.home-btn-ghost:hover {
  color: var(--text-primary);
}
html:not(.dark) .home-btn-ghost:hover { color: var(--text-light); }

.home-hero-visual {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-left: 1px solid var(--border);
}
html:not(.dark) .home-hero-visual { border-left-color: var(--border-warm); }

.home-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.05);
}

.home-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 65%, var(--background-dark) 100%),
              linear-gradient(90deg, var(--background-dark) 0%, transparent 22%);
}
html:not(.dark) .home-hero-img::after {
  background: linear-gradient(180deg, transparent 0%, transparent 65%, var(--bg-warm) 100%),
              linear-gradient(90deg, var(--bg-warm) 0%, transparent 22%);
}

.home-hero-meta-strip {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  z-index: 3;
}

.home-hero-meta-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
html:not(.dark) .home-hero-meta-tag {
  color: var(--text-light-dim);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--border-warm);
}

/* TOOLS V3 */
.home-tools {
  padding: 120px 40px 100px;
  position: relative;
  z-index: 2;
}
.home-tools-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.home-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}

.home-section-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
html:not(.dark) .home-section-num { color: var(--text-light-faint); }

.home-section-num strong {
  color: var(--cyan);
  font-weight: 500;
}

.home-section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
html:not(.dark) .home-section-title { color: var(--text-light); }

.home-section-title em {
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
html:not(.dark) .home-section-title em { color: var(--text-light); }

.home-section-title em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 0.08em;
  height: 0.42em;
  background: rgba(0, 212, 255, 0.18);
  z-index: -1;
}
html:not(.dark) .home-section-title em::after { background: rgba(0, 102, 204, 0.15); }

.home-section-aside {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 420px;
  padding-bottom: 8px;
}
html:not(.dark) .home-section-aside { color: var(--text-light-mid); }

.home-section-aside strong {
  color: var(--text-primary);
  font-weight: 500;
}
html:not(.dark) .home-section-aside strong { color: var(--text-light); }

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

.home-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
html:not(.dark) .home-tool-card {
  background: var(--surface-warm);
  border-color: var(--border-warm);
}

.home-tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.15);
}
html:not(.dark) .home-tool-card:hover {
  border-color: var(--border-warm-2);
  box-shadow: 0 20px 60px -20px rgba(0, 102, 204, 0.15);
}

.home-tool-card:hover .home-tool-img {
  transform: scale(1.04);
}

.home-tool-card:hover .home-tool-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
  border-color: var(--cyan);
  color: var(--cyan);
}

.home-tool-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface2);
}
html:not(.dark) .home-tool-thumb { background: var(--surface-warm-2); }

.home-tool-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-tool-img-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.home-tool-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  z-index: 2;
}
html:not(.dark) .home-tool-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(20, 18, 15, 0.12);
  color: var(--text-light);
}

.home-tool-badge.popular {
  border-color: rgba(200, 255, 0, 0.3);
  color: #c8ff00;
}
html:not(.dark) .home-tool-badge.popular {
  border-color: rgba(133, 170, 0, 0.3);
  color: #85aa00;
}

.home-tool-badge.popular::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8ff00;
}
html:not(.dark) .home-tool-badge.popular::before { background: #85aa00; }

.home-tool-badge.new {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}
html:not(.dark) .home-tool-badge.new { border-color: rgba(0, 102, 204, 0.3); }

.home-tool-badge.new::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.home-tool-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.home-tool-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.home-tool-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-primary);
}
html:not(.dark) .home-tool-name { color: var(--text-light); }

.home-tool-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  font-weight: 300;
  flex: 1;
}
html:not(.dark) .home-tool-desc { color: var(--text-light-mid); }

.home-tool-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  opacity: 0.5;
  transition: all 0.3s;
}
html:not(.dark) .home-tool-arrow {
  border-color: var(--border-warm-2);
  color: var(--text-light-dim);
}

.home-tool-arrow svg {
  width: 11px;
  height: 11px;
}

.home-tool-all {
  background: transparent;
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
html:not(.dark) .home-tool-all { border-color: var(--border-warm-2); }

.home-tool-all::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), rgba(208, 64, 192, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  opacity: 0.4;
  transition: opacity 0.5s;
  pointer-events: none;
}
html:not(.dark) .home-tool-all::before {
  background: radial-gradient(circle, rgba(0, 102, 204, 0.10), rgba(208, 64, 192, 0.05) 50%, transparent 70%);
}

.home-tool-all:hover {
  border-color: rgba(0, 212, 255, 0.3);
  border-style: solid;
}
html:not(.dark) .home-tool-all:hover { border-color: rgba(0, 102, 204, 0.3); }

.home-tool-all:hover::before {
  opacity: 1;
}

.home-tool-all-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}
html:not(.dark) .home-tool-all-icon {
  background: rgba(0, 102, 204, 0.05);
  border-color: rgba(0, 102, 204, 0.15);
}

.home-tool-all:hover .home-tool-all-icon {
  background: rgba(0, 212, 255, 0.12);
  transform: scale(1.05);
}
html:not(.dark) .home-tool-all:hover .home-tool-all-icon { background: rgba(0, 102, 204, 0.10); }

.home-tool-all-icon svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.home-tool-all-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}
html:not(.dark) .home-tool-all-title { color: var(--text-light); }

.home-tool-all-title em {
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
html:not(.dark) .home-tool-all-title em { color: var(--text-light); }

.home-tool-all-title em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -3px;
  bottom: 0.08em;
  height: 0.42em;
  background: rgba(0, 212, 255, 0.18);
  z-index: -1;
}
html:not(.dark) .home-tool-all-title em::after { background: rgba(0, 102, 204, 0.15); }

.home-tool-all-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  z-index: 2;
}
html:not(.dark) .home-tool-all-meta { color: var(--text-light-dim); }

/* STATS V3 */
.home-stats {
  padding: 80px 40px 100px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
html:not(.dark) .home-stats { border-top-color: var(--border-warm); }

.home-stats-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.home-stat {
  padding: 32px 32px 28px 0;
  border-right: 1px solid var(--border);
}
html:not(.dark) .home-stat { border-right-color: var(--border-warm); }

.home-stat:last-child {
  border-right: none;
}

.home-stat:not(:first-child) {
  padding-left: 32px;
}

.home-stat-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
html:not(.dark) .home-stat-num { color: var(--text-light); }

.home-stat-num em {
  font-style: italic;
  color: var(--cyan);
  font-size: 0.55em;
  font-weight: 400;
}

.home-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
html:not(.dark) .home-stat-label { color: var(--text-light-faint); }

/* MANIFESTO V3 */
.home-manifesto {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  z-index: 2;
}
html:not(.dark) .home-manifesto { border-top-color: var(--border-warm); }

.home-manifesto-orb {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  bottom: -340px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.30), rgba(208, 64, 192, 0.15) 35%, rgba(184, 160, 255, 0.08) 55%, transparent 72%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
html:not(.dark) .home-manifesto-orb {
  background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.15), rgba(208, 64, 192, 0.08) 35%, transparent 72%);
}

.home-manifesto-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.home-manifesto-mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
html:not(.dark) .home-manifesto-mark { color: var(--text-light-faint); }

.home-manifesto-mark::before,
.home-manifesto-mark::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--cyan);
}

.home-manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
html:not(.dark) .home-manifesto-quote { color: var(--text-light); }

.home-manifesto-quote em {
  font-style: italic;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
html:not(.dark) .home-manifesto-quote em { color: var(--text-light); }

.home-manifesto-quote em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 0.08em;
  height: 0.42em;
  background: rgba(0, 212, 255, 0.18);
  z-index: -1;
}
html:not(.dark) .home-manifesto-quote em::after { background: rgba(0, 102, 204, 0.15); }

.home-manifesto-sig {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
html:not(.dark) .home-manifesto-sig { color: var(--text-light-dim); }

.home-manifesto-sig strong {
  color: var(--text-primary);
  font-weight: 500;
}
html:not(.dark) .home-manifesto-sig strong { color: var(--text-light); }

/* FOOTER V3 (HOME ONLY) */
.home-footer-v3 {
  border-top: 1px solid var(--border);
  padding: 64px 40px 32px;
  background: var(--background-dark);
  position: relative;
  z-index: 2;
}
html:not(.dark) .home-footer-v3 {
  border-top-color: var(--border-warm);
  background: var(--bg-warm);
}

.home-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.home-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
html:not(.dark) .home-footer-top { border-bottom-color: var(--border-warm); }

.home-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-footer-col h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
html:not(.dark) .home-footer-col h4 { color: var(--text-light-faint); }

.home-footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}
html:not(.dark) .home-footer-col a { color: var(--text-light-mid); }

.home-footer-col a:hover {
  color: var(--text-primary);
}
html:not(.dark) .home-footer-col a:hover { color: var(--text-light); }

.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}
html:not(.dark) .home-footer-bottom { color: var(--text-light-faint); }

.home-footer-bottom span strong {
  color: var(--text-dim);
  font-weight: 500;
}
html:not(.dark) .home-footer-bottom span strong { color: var(--text-light-dim); }

/* RESPONSIVE V3 */
@media (max-width: 1100px) {
  .home-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(2) { border-right: none; }
  .home-stat:nth-child(1), .home-stat:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 32px; }
  html:not(.dark) .home-stat:nth-child(1), html:not(.dark) .home-stat:nth-child(2) { border-bottom-color: var(--border-warm); }
  .home-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .home-hero-visual { display: none; }
  .home-section-head { grid-template-columns: 1fr; gap: 24px; }
  .home-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .home-hero-v3 { padding: 48px 20px 0; }
  .home-hero-content { padding-bottom: 48px; }
  .home-tools { padding: 64px 20px 60px; }
  .home-stats { padding: 48px 20px 60px; }
  .home-manifesto { padding: 80px 20px; }
  .home-footer-v3 { padding: 48px 20px 32px; }
  .home-tools-grid { grid-template-columns: 1fr; }
  .home-stats-grid { grid-template-columns: 1fr; }
  .home-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 0; }
  html:not(.dark) .home-stat { border-bottom-color: var(--border-warm); }
  .home-stat:not(:first-child) { padding-left: 0; }
  .home-stat:last-child { border-bottom: none; }
  .home-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .home-footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
