/* ===================================================
   WinConvert – Premium Website Stylesheet
   =================================================== */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #6c63ff;
  --accent-2:     #a78bfa;
  --accent-dark:  #4f46e5;
  --surface:      #0f0f13;
  --surface-2:    #16161d;
  --surface-3:    #1e1e2a;
  --surface-4:    #26263a;
  --text:         #f0f0f5;
  --text-muted:   #8b8ba7;
  --text-faint:   #4a4a68;
  --border:       rgba(255,255,255,0.07);
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 32px rgba(0,0,0,0.45);
  --shadow-lg:    0 12px 60px rgba(0,0,0,0.6);
  --font:         'Inter', system-ui, sans-serif;
  --max-w:        1120px;
  --navbar-h:     68px;
}

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

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ol, ul { padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(108,99,255,.55); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ─── Gradient text ─── */
.gradient-text {
  background: linear-gradient(120deg, #a78bfa, #6c63ff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Badges ─── */
.badge, .section-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(108,99,255,.15);
  color: var(--accent-2);
  border: 1px solid rgba(108,99,255,.25);
  margin-bottom: 16px;
}
.badge--light {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}

/* ─── Inline link ─── */
.inline-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: #fff; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: rgba(15,15,19,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(15,15,19,.95); }

.nav-inner {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-icon { width: 26px; height: 26px; display: inline-block; }
.brand-name strong { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { margin-left: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--navbar-h) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(56,189,248,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: .8rem;
  color: var(--text-faint);
}

/* Context menu mockup */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.context-menu-mock {
  background: var(--surface-3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 6px 0;
  width: 260px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(108,99,255,.15);
  animation: floatMenu 4s ease-in-out infinite;
  font-size: .88rem;
}

@keyframes floatMenu {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.cm-item {
  padding: 7px 16px;
  color: var(--text-muted);
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}
.cm-item--section { color: var(--text-faint); font-size: .8rem; }
.cm-item--highlight {
  color: var(--text);
  font-weight: 600;
  background: rgba(108,99,255,.2);
  border-left: 2px solid var(--accent);
}
.cm-icon { font-size: .9rem; width: 14px; height: 14px; display: inline-block; filter: brightness(0) saturate(100%) invert(52%) sepia(80%) saturate(600%) hue-rotate(220deg) brightness(110%); vertical-align: middle; }
.cm-arrow { margin-left: auto; font-size: .75rem; color: var(--text-faint); }
.cm-divider { height: 1px; background: var(--border); margin: 4px 0; }
.cm-submenu .cm-item { padding-left: 24px; color: var(--text-muted); font-size: .83rem; }
.cm-item--more { color: var(--accent-2); font-size: .8rem; }

/* ===================================================
   FORMATS STRIP
   =================================================== */
.formats-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.formats-strip .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.strip-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.format-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.format-tags span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-4);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.format-tags .divider {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  padding: 0;
}

/* ===================================================
   SECTIONS
   =================================================== */
.section { padding: 100px 0; }
.section--alt { background: var(--surface-2); }
.section--dark {
  background: linear-gradient(180deg, var(--surface-3) 0%, #0a0a10 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin-bottom: 14px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,.6); }

/* ─── Features grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,.35);
  box-shadow: 0 8px 40px rgba(108,99,255,.12);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-icon img { width: 40px; height: 40px; filter: brightness(0) saturate(100%) invert(52%) sepia(80%) saturate(600%) hue-rotate(220deg) brightness(110%); }
.feature-icon img[src*="free.png"] { filter: none; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ─── Steps ─── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 40px 28px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(108,99,255,.4);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.step-arrow {
  font-size: 1.5rem;
  color: var(--text-faint);
  align-self: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ─── Security notice ─── */
.notice-card {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.notice-icon { font-size: 2.4rem; flex-shrink: 0; margin-top: 4px; }
.notice-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 12px;
}
.notice-body p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.notice-steps {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.notice-steps strong { display: block; margin-bottom: 12px; color: var(--text); }
.notice-steps ol { color: var(--text-muted); font-size: .93rem; }
.notice-steps li { margin-bottom: 8px; line-height: 1.6; }
.notice-steps code {
  background: rgba(255,255,255,.08);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: monospace;
  font-size: .88em;
  color: #a5f3fc;
}
.notice-tip {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ─── Download section ─── */
.download-section { text-align: center; }

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-3);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: var(--radius);
  padding: 24px 32px;
  max-width: 600px;
  margin: 0 auto 24px;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 0 0 1px rgba(108,99,255,.1), var(--shadow);
}
.download-info { display: flex; align-items: center; gap: 16px; }
.dl-icon { width: 44px; height: 44px; filter: brightness(0) saturate(100%) invert(52%) sepia(80%) saturate(600%) hue-rotate(220deg) brightness(110%); }
.dl-name { font-size: 1.05rem; font-weight: 700; }
.dl-meta { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.dl-btn { flex-shrink: 0; }

.dl-disclaimer {
  font-size: .82rem;
  color: var(--text-faint);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-brand .brand-name strong { color: var(--accent-2); }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: .8rem; color: var(--text-faint); }

/* ===================================================
   TERMS PAGE
   =================================================== */
.terms-hero {
  padding-top: calc(var(--navbar-h) + 60px);
  padding-bottom: 48px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.terms-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.terms-hero p { color: var(--text-muted); font-size: .9rem; }

.terms-body { padding: 60px 0 80px; }
.terms-container { max-width: 780px; }

.terms-alert {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #fca5a5;
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 48px;
}

.terms-section { margin-bottom: 44px; }
.terms-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.terms-section p { color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.terms-section ul, .terms-section ol { color: var(--text-muted); font-size: .95rem; }
.terms-section li { margin-bottom: 6px; line-height: 1.65; }

.terms-back { margin-top: 60px; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-visual { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 12px; }
  .step-arrow { transform: rotate(90deg); }
  .step { max-width: 100%; width: 100%; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .notice-card { flex-direction: column; padding: 24px 20px; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 70px 0; }
}

/* ===================================================
   DOWNLOAD DYNAMIC STATES
   =================================================== */
.dl-version-badge {
  display: inline-block;
  background: rgba(108,99,255,.18);
  color: var(--accent-2);
  border: 1px solid rgba(108,99,255,.35);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 600;
  vertical-align: middle;
}

.dl-skeleton {
  display: inline-block;
  width: 180px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-4) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-top: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dl-btn--disabled {
  opacity: .6;
  pointer-events: none;
}

.dl-card--error {
  border-color: rgba(239,68,68,.3);
}

.dl-all-versions {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ===================================================
   RELEASES PAGE
   =================================================== */
.releases-body { padding: 60px 0 100px; }
.releases-container { max-width: 860px; }

.releases-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.releases-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--surface-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.releases-error {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.release-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  transition: border-color .2s;
}
.release-card:hover { border-color: rgba(108,99,255,.35); }

.release-card--latest {
  border-color: rgba(108,99,255,.4);
  box-shadow: 0 0 0 1px rgba(108,99,255,.15), var(--shadow);
}

.release-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.release-meta { display: flex; flex-direction: column; gap: 6px; }

.release-latest-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  width: fit-content;
}

.release-pre-badge {
  display: inline-block;
  background: rgba(245,158,11,.12);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 600;
  width: fit-content;
}

.release-tag {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.release-date {
  font-size: .82rem;
  color: var(--text-muted);
}

.release-assets {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .8rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.release-body {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.release-body h3 { color: var(--text); font-size: 1rem; margin: 16px 0 6px; }
.release-body h4 { color: var(--text); font-size: .95rem; margin: 12px 0 4px; }
.release-body ul { padding-left: 1.4em; margin: 8px 0; }
.release-body li { margin-bottom: 4px; }
.release-body code {
  background: var(--surface-4);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .85em;
  color: var(--accent-2);
}
.release-body strong { color: var(--text); }
.release-body p { margin-bottom: 8px; }

@media (max-width: 600px) {
  .release-card { padding: 22px 18px; }
  .release-header { flex-direction: column; }
  .release-actions .btn { width: 100%; justify-content: center; }
}

